Deploying to gh-pages from @ maplibre/maplibre-rs@516d642079 🚀

This commit is contained in:
maxammann 2022-12-13 16:55:05 +00:00
parent b95d97883a
commit dee401452a
10 changed files with 59 additions and 39 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `MAX_PITCH` constant in crate `maplibre`."><meta name="keywords" content="rust, rustlang, rust-lang, MAX_PITCH"><title>MAX_PITCH in maplibre::render::camera - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In maplibre::render::camera</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../maplibre/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">maplibre</a>::<wbr><a href="../index.html">render</a>::<wbr><a href="index.html">camera</a>::<wbr><a class="constant" href="#">MAX_PITCH</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/maplibre/render/camera.rs.html#70">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>const MAX_PITCH: Rad&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.f64.html">f64</a>&gt;;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

View File

@ -0,0 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `MIN_PITCH` constant in crate `maplibre`."><meta name="keywords" content="rust, rustlang, rust-lang, MIN_PITCH"><title>MIN_PITCH in maplibre::render::camera - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In maplibre::render::camera</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../maplibre/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">maplibre</a>::<wbr><a href="../index.html">render</a>::<wbr><a href="index.html">camera</a>::<wbr><a class="constant" href="#">MIN_PITCH</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/maplibre/render/camera.rs.html#69">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>const MIN_PITCH: Rad&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.f64.html">f64</a>&gt;;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

View File

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Main camera"><meta name="keywords" content="rust, rustlang, rust-lang, camera"><title>maplibre::render::camera - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module camera</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../maplibre/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">maplibre</a>::<wbr><a href="../index.html">render</a>::<wbr><a class="mod" href="#">camera</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/maplibre/render/camera.rs.html#1-517">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Main camera</p>
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Camera.html" title="maplibre::render::camera::Camera struct">Camera</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.InvertedViewProjection.html" title="maplibre::render::camera::InvertedViewProjection struct">InvertedViewProjection</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.ModelViewProjection.html" title="maplibre::render::camera::ModelViewProjection struct">ModelViewProjection</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Perspective.html" title="maplibre::render::camera::Perspective struct">Perspective</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.ViewProjection.html" title="maplibre::render::camera::ViewProjection struct">ViewProjection</a></div></div></div><h2 id="constants" class="small-section-header"><a href="#constants">Constants</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.FLIP_Y.html" title="maplibre::render::camera::FLIP_Y constant">FLIP_Y</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.OPENGL_TO_WGPU_MATRIX.html" title="maplibre::render::camera::OPENGL_TO_WGPU_MATRIX constant">OPENGL_TO_WGPU_MATRIX</a></div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Main camera"><meta name="keywords" content="rust, rustlang, rust-lang, camera"><title>maplibre::render::camera - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module camera</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../maplibre/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">maplibre</a>::<wbr><a href="../index.html">render</a>::<wbr><a class="mod" href="#">camera</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/maplibre/render/camera.rs.html#1-526">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Main camera</p>
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Camera.html" title="maplibre::render::camera::Camera struct">Camera</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.InvertedViewProjection.html" title="maplibre::render::camera::InvertedViewProjection struct">InvertedViewProjection</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.ModelViewProjection.html" title="maplibre::render::camera::ModelViewProjection struct">ModelViewProjection</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Perspective.html" title="maplibre::render::camera::Perspective struct">Perspective</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.ViewProjection.html" title="maplibre::render::camera::ViewProjection struct">ViewProjection</a></div></div></div><h2 id="constants" class="small-section-header"><a href="#constants">Constants</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.FLIP_Y.html" title="maplibre::render::camera::FLIP_Y constant">FLIP_Y</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.MAX_PITCH.html" title="maplibre::render::camera::MAX_PITCH constant">MAX_PITCH</a><span title="Restricted Visibility">&nbsp;🔒</span> </div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.MIN_PITCH.html" title="maplibre::render::camera::MIN_PITCH constant">MIN_PITCH</a><span title="Restricted Visibility">&nbsp;🔒</span> </div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.OPENGL_TO_WGPU_MATRIX.html" title="maplibre::render::camera::OPENGL_TO_WGPU_MATRIX constant">OPENGL_TO_WGPU_MATRIX</a></div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

View File

@ -1 +1 @@
window.SIDEBAR_ITEMS = {"constant":[["FLIP_Y",""],["OPENGL_TO_WGPU_MATRIX",""]],"struct":[["Camera",""],["InvertedViewProjection",""],["ModelViewProjection",""],["Perspective",""],["ViewProjection",""]]};
window.SIDEBAR_ITEMS = {"constant":[["FLIP_Y",""],["MAX_PITCH",""],["MIN_PITCH",""],["OPENGL_TO_WGPU_MATRIX",""]],"struct":[["Camera",""],["InvertedViewProjection",""],["ModelViewProjection",""],["Perspective",""],["ViewProjection",""]]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3,4 +3,4 @@
fn <a href="#tymethod.ne" class="fnname">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;</a>Rhs, epsilon: Self::<a class="associatedtype" href="trait.SignificantlyDifferent.html#associatedtype.Epsilon" title="type maplibre::util::SignificantlyDifferent::Epsilon">Epsilon</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a>;
}</code></pre></div><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><div id="associatedtype.Epsilon" class="method has-srclink"><a class="srclink rightside" href="../../src/maplibre/util/mod.rs.html#59">source</a><h4 class="code-header">type <a href="#associatedtype.Epsilon" class="associatedtype">Epsilon</a></h4></div></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.ne" class="method has-srclink"><a class="srclink rightside" href="../../src/maplibre/util/mod.rs.html#63">source</a><h4 class="code-header">fn <a href="#tymethod.ne" class="fnname">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;</a>Rhs, epsilon: Self::<a class="associatedtype" href="trait.SignificantlyDifferent.html#associatedtype.Epsilon" title="type maplibre::util::SignificantlyDifferent::Epsilon">Epsilon</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></div></summary><div class="docblock"><p>This method tests for <code>self</code> and <code>other</code> values to be significantly different</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-SignificantlyDifferent%3CZoom%3E-for-Zoom" class="impl has-srclink"><a class="srclink rightside" href="../../src/maplibre/coords.rs.html#229-235">source</a><a href="#impl-SignificantlyDifferent%3CZoom%3E-for-Zoom" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.SignificantlyDifferent.html" title="trait maplibre::util::SignificantlyDifferent">SignificantlyDifferent</a>&lt;<a class="struct" href="../coords/struct.Zoom.html" title="struct maplibre::coords::Zoom">Zoom</a>&gt; for <a class="struct" href="../coords/struct.Zoom.html" title="struct maplibre::coords::Zoom">Zoom</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Epsilon-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Epsilon-1" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Epsilon" class="associatedtype">Epsilon</a> = <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.f64.html">f64</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-SignificantlyDifferent%3CCamera%3E-for-Camera" class="impl has-srclink"><a class="srclink rightside" href="../../src/maplibre/render/camera.rs.html#79-87">source</a><a href="#impl-SignificantlyDifferent%3CCamera%3E-for-Camera" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.SignificantlyDifferent.html" title="trait maplibre::util::SignificantlyDifferent">SignificantlyDifferent</a>&lt;<a class="struct" href="../render/camera/struct.Camera.html" title="struct maplibre::render::camera::Camera">Camera</a>&gt; for <a class="struct" href="../render/camera/struct.Camera.html" title="struct maplibre::render::camera::Camera">Camera</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Epsilon-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Epsilon-2" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Epsilon" class="associatedtype">Epsilon</a> = <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.f64.html">f64</a></h4></section></div></details></div><script src="../../implementors/maplibre/util/trait.SignificantlyDifferent.js" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-SignificantlyDifferent%3CZoom%3E-for-Zoom" class="impl has-srclink"><a class="srclink rightside" href="../../src/maplibre/coords.rs.html#229-235">source</a><a href="#impl-SignificantlyDifferent%3CZoom%3E-for-Zoom" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.SignificantlyDifferent.html" title="trait maplibre::util::SignificantlyDifferent">SignificantlyDifferent</a>&lt;<a class="struct" href="../coords/struct.Zoom.html" title="struct maplibre::coords::Zoom">Zoom</a>&gt; for <a class="struct" href="../coords/struct.Zoom.html" title="struct maplibre::coords::Zoom">Zoom</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Epsilon-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Epsilon-1" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Epsilon" class="associatedtype">Epsilon</a> = <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.f64.html">f64</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-SignificantlyDifferent%3CCamera%3E-for-Camera" class="impl has-srclink"><a class="srclink rightside" href="../../src/maplibre/render/camera.rs.html#82-90">source</a><a href="#impl-SignificantlyDifferent%3CCamera%3E-for-Camera" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.SignificantlyDifferent.html" title="trait maplibre::util::SignificantlyDifferent">SignificantlyDifferent</a>&lt;<a class="struct" href="../render/camera/struct.Camera.html" title="struct maplibre::render::camera::Camera">Camera</a>&gt; for <a class="struct" href="../render/camera/struct.Camera.html" title="struct maplibre::render::camera::Camera">Camera</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Epsilon-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Epsilon-2" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Epsilon" class="associatedtype">Epsilon</a> = <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.f64.html">f64</a></h4></section></div></details></div><script src="../../implementors/maplibre/util/trait.SignificantlyDifferent.js" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

File diff suppressed because one or more lines are too long

View File

@ -515,6 +515,15 @@
<span id="515">515</span>
<span id="516">516</span>
<span id="517">517</span>
<span id="518">518</span>
<span id="519">519</span>
<span id="520">520</span>
<span id="521">521</span>
<span id="522">522</span>
<span id="523">523</span>
<span id="524">524</span>
<span id="525">525</span>
<span id="526">526</span>
</pre><pre class="rust"><code><span class="doccomment">//! Main camera
</span><span class="kw">use </span>cgmath::{prelude::<span class="kw-2">*</span>, AbsDiffEq, Matrix4, Point2, Point3, Rad, Vector2, Vector3, Vector4};
@ -583,6 +592,9 @@
}
}
<span class="kw">const </span>MIN_PITCH: Rad&lt;f64&gt; = Rad(-<span class="number">0.5</span>);
<span class="kw">const </span>MAX_PITCH: Rad&lt;f64&gt; = Rad(<span class="number">0.5</span>);
<span class="attribute">#[derive(Debug, Clone)]
</span><span class="kw">pub struct </span>Camera {
position: Point3&lt;f64&gt;, <span class="comment">// The z axis never changes, the zoom is used instead
@ -604,7 +616,7 @@
}
<span class="kw">impl </span>Camera {
<span class="kw">pub fn </span>new&lt;V: Into&lt;Point3&lt;f64&gt;&gt;, Y: Into&lt;cgmath::Rad&lt;f64&gt;&gt;, P: Into&lt;cgmath::Rad&lt;f64&gt;&gt;&gt;(
<span class="kw">pub fn </span>new&lt;V: Into&lt;Point3&lt;f64&gt;&gt;, Y: Into&lt;Rad&lt;f64&gt;&gt;, P: Into&lt;Rad&lt;f64&gt;&gt;&gt;(
position: V,
yaw: Y,
pitch: P,
@ -620,14 +632,6 @@
}
}
<span class="kw">pub fn </span>move_to(<span class="kw-2">&amp;mut </span><span class="self">self</span>, point: Point3&lt;f64&gt;) {
<span class="self">self</span>.position = point;
}
<span class="kw">pub fn </span>move_relative(<span class="kw-2">&amp;mut </span><span class="self">self</span>, delta: Vector3&lt;f64&gt;) {
<span class="self">self</span>.position += delta;
}
<span class="kw">pub fn </span>resize(<span class="kw-2">&amp;mut </span><span class="self">self</span>, width: u32, height: u32) {
<span class="self">self</span>.width = width <span class="kw">as </span>f64;
<span class="self">self</span>.height = height <span class="kw">as </span>f64;
@ -881,7 +885,7 @@
<span class="self">self</span>.yaw
}
<span class="kw">pub fn </span>yaw_self&lt;P: Into&lt;Rad&lt;f64&gt;&gt;&gt;(<span class="kw-2">&amp;mut </span><span class="self">self</span>, delta: P) {
<span class="kw">pub fn </span>rotate&lt;P: Into&lt;Rad&lt;f64&gt;&gt;&gt;(<span class="kw-2">&amp;mut </span><span class="self">self</span>, delta: P) {
<span class="self">self</span>.yaw += delta.into();
}
@ -889,13 +893,33 @@
<span class="self">self</span>.pitch
}
<span class="kw">pub fn </span>pitch_self&lt;P: Into&lt;Rad&lt;f64&gt;&gt;&gt;(<span class="kw-2">&amp;mut </span><span class="self">self</span>, delta: P) {
<span class="self">self</span>.pitch += delta.into();
<span class="kw">pub fn </span>tilt&lt;P: Into&lt;Rad&lt;f64&gt;&gt;&gt;(<span class="kw-2">&amp;mut </span><span class="self">self</span>, delta: P) {
<span class="kw">let </span>new_pitch = <span class="self">self</span>.pitch + delta.into();
<span class="kw">if </span>new_pitch &lt;= MAX_PITCH &amp;&amp; new_pitch &gt;= MIN_PITCH {
<span class="self">self</span>.pitch = new_pitch;
}
}
<span class="kw">pub fn </span>move_relative(<span class="kw-2">&amp;mut </span><span class="self">self</span>, delta: Vector3&lt;f64&gt;) {
<span class="self">self</span>.position += delta;
}
<span class="kw">pub fn </span>move_to(<span class="kw-2">&amp;mut </span><span class="self">self</span>, new_position: Point3&lt;f64&gt;) {
<span class="self">self</span>.position = new_position;
}
<span class="kw">pub fn </span>position_vector(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; Vector3&lt;f64&gt; {
<span class="self">self</span>.position.to_vec()
}
<span class="kw">pub fn </span>homogenous_position(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; Vector4&lt;f64&gt; {
<span class="self">self</span>.position.to_homogeneous()
}
}
<span class="kw">pub struct </span>Perspective {
fovy: cgmath::Rad&lt;f64&gt;,
fovy: Rad&lt;f64&gt;,
znear: f64,
zfar: f64,
@ -903,13 +927,7 @@
}
<span class="kw">impl </span>Perspective {
<span class="kw">pub fn </span>new&lt;F: Into&lt;cgmath::Rad&lt;f64&gt;&gt;&gt;(
width: u32,
height: u32,
fovy: F,
znear: f64,
zfar: f64,
) -&gt; <span class="self">Self </span>{
<span class="kw">pub fn </span>new&lt;F: Into&lt;Rad&lt;f64&gt;&gt;&gt;(width: u32, height: u32, fovy: F, znear: f64, zfar: f64) -&gt; <span class="self">Self </span>{
<span class="kw">let </span>rad = fovy.into();
<span class="self">Self </span>{
current_projection: <span class="self">Self</span>::calc_matrix(width <span class="kw">as </span>f64 / height <span class="kw">as </span>f64, rad, znear, zfar),
@ -928,7 +946,7 @@
);
}
<span class="kw">fn </span>calc_matrix(aspect: f64, fovy: cgmath::Rad&lt;f64&gt;, znear: f64, zfar: f64) -&gt; Matrix4&lt;f64&gt; {
<span class="kw">fn </span>calc_matrix(aspect: f64, fovy: Rad&lt;f64&gt;, znear: f64, zfar: f64) -&gt; Matrix4&lt;f64&gt; {
OPENGL_TO_WGPU_MATRIX * cgmath::perspective(fovy, aspect, znear, zfar)
}
}