This commit is contained in:
dabreegster 2020-10-19 18:09:24 +00:00
parent 314c850c14
commit ac0b5b7e05
33 changed files with 163 additions and 89 deletions

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="API documentation for the Rust `hex` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, hex"><title>game::colors::hex - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>game</a>::<wbr><a href='index.html'>colors</a></p><script>window.sidebarCurrent = {name: 'hex', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/game/colors.rs.html#338-340' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>colors</a>::<wbr><a class="fn" href=''>hex</a></span></h1><pre class='rust fn'>fn hex(x: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; Color</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/game/colors.rs.html#366-368' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>colors</a>::<wbr><a class="fn" href=''>hex</a></span></h1><pre class='rust fn'>fn hex(x: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; Color</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></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="API documentation for the Rust `modulo_color` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, modulo_color"><title>game::colors::modulo_color - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>game</a>::<wbr><a href='index.html'>colors</a></p><script>window.sidebarCurrent = {name: 'modulo_color', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/game/colors.rs.html#333-335' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>colors</a>::<wbr><a class="fn" href=''>modulo_color</a></span></h1><pre class='rust fn'>fn modulo_color(colors: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;Color&gt;, idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; Color</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/game/colors.rs.html#361-363' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>game</a>::<wbr><a href='index.html'>colors</a>::<wbr><a class="fn" href=''>modulo_color</a></span></h1><pre class='rust fn'>fn modulo_color(colors: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;Color&gt;, idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; Color</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -1,5 +1,5 @@
<!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 `colors` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, colors"><title>game::colors - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module colors</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>game</a></p><script>window.sidebarCurrent = {name: 'colors', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/game/colors.rs.html#1-506' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>game</a>::<wbr><a class="mod" href=''>colors</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/game/colors.rs.html#1-546' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>game</a>::<wbr><a class="mod" href=''>colors</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table><tr class='module-item'><td><a class="struct" href="struct.ColorScheme.html" title='game::colors::ColorScheme struct'>ColorScheme</a></td><td class='docblock-short'></td></tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
<table><tr class='module-item'><td><a class="enum" href="enum.ColorSchemeChoice.html" title='game::colors::ColorSchemeChoice enum'>ColorSchemeChoice</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
<table><tr class='module-item'><td><a class="fn" href="fn.hex.html" title='game::colors::hex fn'>hex</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.modulo_color.html" title='game::colors::modulo_color fn'>modulo_color</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
<!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 `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-e788b46a21eaee2a/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = &quot;Sat, 17 Oct 2020 14:57:00 +0000&quot;;</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-e788b46a21eaee2a/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = &quot;Mon, 19 Oct 2020 18:06:57 +0000&quot;;</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></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="API documentation for the Rust `calculate_border_arrows` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, calculate_border_arrows"><title>game::render::intersection::calculate_border_arrows - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a></p><script>window.sidebarCurrent = {name: 'calculate_border_arrows', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#242-296' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a>::<wbr><a class="fn" href=''>calculate_border_arrows</a></span></h1><pre class='rust fn'>fn calculate_border_arrows(<br>&nbsp;&nbsp;&nbsp;&nbsp;i: &amp;<a class="struct" href="../../../map_model/objects/intersection/struct.Intersection.html" title="struct map_model::objects::intersection::Intersection">Intersection</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;r: &amp;<a class="struct" href="../../../map_model/objects/road/struct.Road.html" title="struct map_model::objects::road::Road">Road</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#245-299' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a>::<wbr><a class="fn" href=''>calculate_border_arrows</a></span></h1><pre class='rust fn'>fn calculate_border_arrows(<br>&nbsp;&nbsp;&nbsp;&nbsp;i: &amp;<a class="struct" href="../../../map_model/objects/intersection/struct.Intersection.html" title="struct map_model::objects::intersection::Intersection">Intersection</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;r: &amp;<a class="struct" href="../../../map_model/objects/road/struct.Road.html" title="struct map_model::objects::road::Road">Road</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></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="API documentation for the Rust `calculate_corners` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, calculate_corners"><title>game::render::intersection::calculate_corners - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a></p><script>window.sidebarCurrent = {name: 'calculate_corners', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#193-238' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a>::<wbr><a class="fn" href=''>calculate_corners</a></span></h1><pre class='rust fn'>pub fn calculate_corners(i: &amp;<a class="struct" href="../../../map_model/objects/intersection/struct.Intersection.html" title="struct map_model::objects::intersection::Intersection">Intersection</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#196-241' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a>::<wbr><a class="fn" href=''>calculate_corners</a></span></h1><pre class='rust fn'>pub fn calculate_corners(i: &amp;<a class="struct" href="../../../map_model/objects/intersection/struct.Intersection.html" title="struct map_model::objects::intersection::Intersection">Intersection</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></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="API documentation for the Rust `make_crosswalk` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_crosswalk"><title>game::render::intersection::make_crosswalk - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a></p><script>window.sidebarCurrent = {name: 'make_crosswalk', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#308-366' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a>::<wbr><a class="fn" href=''>make_crosswalk</a></span></h1><pre class='rust fn'>pub fn make_crosswalk(<br>&nbsp;&nbsp;&nbsp;&nbsp;batch: &amp;mut GeomBatch, <br>&nbsp;&nbsp;&nbsp;&nbsp;turn: &amp;<a class="struct" href="../../../map_model/objects/turn/struct.Turn.html" title="struct map_model::objects::turn::Turn">Turn</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cs: &amp;<a class="struct" href="../../../game/colors/struct.ColorScheme.html" title="struct game::colors::ColorScheme">ColorScheme</a><br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#311-371' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a>::<wbr><a class="fn" href=''>make_crosswalk</a></span></h1><pre class='rust fn'>pub fn make_crosswalk(<br>&nbsp;&nbsp;&nbsp;&nbsp;batch: &amp;mut GeomBatch, <br>&nbsp;&nbsp;&nbsp;&nbsp;turn: &amp;<a class="struct" href="../../../map_model/objects/turn/struct.Turn.html" title="struct map_model::objects::turn::Turn">Turn</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cs: &amp;<a class="struct" href="../../../game/colors/struct.ColorScheme.html" title="struct game::colors::ColorScheme">ColorScheme</a><br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></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="API documentation for the Rust `make_octagon` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_octagon"><title>game::render::intersection::make_octagon - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a></p><script>window.sidebarCurrent = {name: 'make_octagon', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#299-306' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a>::<wbr><a class="fn" href=''>make_octagon</a></span></h1><pre class='rust fn'>fn make_octagon(center: <a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, radius: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, facing: <a class="struct" href="../../../geom/angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a>) -&gt; <a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#302-309' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a>::<wbr><a class="fn" href=''>make_octagon</a></span></h1><pre class='rust fn'>fn make_octagon(center: <a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, radius: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, facing: <a class="struct" href="../../../geom/angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a>) -&gt; <a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></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="API documentation for the Rust `make_rainbow_crosswalk` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_rainbow_crosswalk"><title>game::render::intersection::make_rainbow_crosswalk - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a></p><script>window.sidebarCurrent = {name: 'make_rainbow_crosswalk', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#368-416' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a>::<wbr><a class="fn" href=''>make_rainbow_crosswalk</a></span></h1><pre class='rust fn'>fn make_rainbow_crosswalk(batch: &amp;mut GeomBatch, turn: &amp;<a class="struct" href="../../../map_model/objects/turn/struct.Turn.html" title="struct map_model::objects::turn::Turn">Turn</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#373-421' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a>::<wbr><a class="fn" href=''>make_rainbow_crosswalk</a></span></h1><pre class='rust fn'>fn make_rainbow_crosswalk(batch: &amp;mut GeomBatch, turn: &amp;<a class="struct" href="../../../map_model/objects/turn/struct.Turn.html" title="struct map_model::objects::turn::Turn">Turn</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></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="API documentation for the Rust `perp_line` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, perp_line"><title>game::render::intersection::perp_line - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a></p><script>window.sidebarCurrent = {name: 'perp_line', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#419-423' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a>::<wbr><a class="fn" href=''>perp_line</a></span></h1><pre class='rust fn'>fn perp_line(l: <a class="struct" href="../../../geom/line/struct.Line.html" title="struct geom::line::Line">Line</a>, length: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>) -&gt; <a class="struct" href="../../../geom/line/struct.Line.html" title="struct geom::line::Line">Line</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#424-428' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>intersection</a>::<wbr><a class="fn" href=''>perp_line</a></span></h1><pre class='rust fn'>fn perp_line(l: <a class="struct" href="../../../geom/line/struct.Line.html" title="struct geom::line::Line">Line</a>, length: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>) -&gt; <a class="struct" href="../../../geom/line/struct.Line.html" title="struct geom::line::Line">Line</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1,4 +1,4 @@
<!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 `intersection` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, intersection"><title>game::render::intersection - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module intersection</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a></p><script>window.sidebarCurrent = {name: 'intersection', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#1-423' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>intersection</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/intersection.rs.html#1-428' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>intersection</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table><tr class='module-item'><td><a class="struct" href="struct.DrawIntersection.html" title='game::render::intersection::DrawIntersection struct'>DrawIntersection</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
<table><tr class='module-item'><td><a class="fn" href="fn.calculate_border_arrows.html" title='game::render::intersection::calculate_border_arrows fn'>calculate_border_arrows</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.calculate_corners.html" title='game::render::intersection::calculate_corners fn'>calculate_corners</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_crosswalk.html" title='game::render::intersection::make_crosswalk fn'>make_crosswalk</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_octagon.html" title='game::render::intersection::make_octagon fn'>make_octagon</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_rainbow_crosswalk.html" title='game::render::intersection::make_rainbow_crosswalk fn'>make_rainbow_crosswalk</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.perp_line.html" title='game::render::intersection::perp_line fn'>perp_line</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

File diff suppressed because one or more lines are too long

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="API documentation for the Rust `calculate_driving_lines` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, calculate_driving_lines"><title>game::render::lane::calculate_driving_lines - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a></p><script>window.sidebarCurrent = {name: 'calculate_driving_lines', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#283-303' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a>::<wbr><a class="fn" href=''>calculate_driving_lines</a></span></h1><pre class='rust fn'>fn calculate_driving_lines(lane: &amp;<a class="struct" href="../../../map_model/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>, parent: &amp;<a class="struct" href="../../../map_model/objects/road/struct.Road.html" title="struct map_model::objects::road::Road">Road</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#274-294' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a>::<wbr><a class="fn" href=''>calculate_driving_lines</a></span></h1><pre class='rust fn'>fn calculate_driving_lines(lane: &amp;<a class="struct" href="../../../map_model/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>, parent: &amp;<a class="struct" href="../../../map_model/objects/road/struct.Road.html" title="struct map_model::objects::road::Road">Road</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></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="API documentation for the Rust `calculate_one_way_markings` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, calculate_one_way_markings"><title>game::render::lane::calculate_one_way_markings - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a></p><script>window.sidebarCurrent = {name: 'calculate_one_way_markings', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#362-393' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a>::<wbr><a class="fn" href=''>calculate_one_way_markings</a></span></h1><pre class='rust fn'>fn calculate_one_way_markings(lane: &amp;<a class="struct" href="../../../map_model/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>, parent: &amp;<a class="struct" href="../../../map_model/objects/road/struct.Road.html" title="struct map_model::objects::road::Road">Road</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#353-384' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a>::<wbr><a class="fn" href=''>calculate_one_way_markings</a></span></h1><pre class='rust fn'>fn calculate_one_way_markings(lane: &amp;<a class="struct" href="../../../map_model/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>, parent: &amp;<a class="struct" href="../../../map_model/objects/road/struct.Road.html" title="struct map_model::objects::road::Road">Road</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></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="API documentation for the Rust `calculate_parking_lines` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, calculate_parking_lines"><title>game::render::lane::calculate_parking_lines - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a></p><script>window.sidebarCurrent = {name: 'calculate_parking_lines', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#245-278' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a>::<wbr><a class="fn" href=''>calculate_parking_lines</a></span></h1><pre class='rust fn'>fn calculate_parking_lines(lane: &amp;<a class="struct" href="../../../map_model/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#236-269' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a>::<wbr><a class="fn" href=''>calculate_parking_lines</a></span></h1><pre class='rust fn'>fn calculate_parking_lines(lane: &amp;<a class="struct" href="../../../map_model/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>, map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></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="API documentation for the Rust `calculate_sidewalk_lines` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, calculate_sidewalk_lines"><title>game::render::lane::calculate_sidewalk_lines - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a></p><script>window.sidebarCurrent = {name: 'calculate_sidewalk_lines', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#224-243' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a>::<wbr><a class="fn" href=''>calculate_sidewalk_lines</a></span></h1><pre class='rust fn'>fn calculate_sidewalk_lines(lane: &amp;<a class="struct" href="../../../map_model/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#215-234' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a>::<wbr><a class="fn" href=''>calculate_sidewalk_lines</a></span></h1><pre class='rust fn'>fn calculate_sidewalk_lines(lane: &amp;<a class="struct" href="../../../map_model/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></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="API documentation for the Rust `calculate_turn_markings` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, calculate_turn_markings"><title>game::render::lane::calculate_turn_markings - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a></p><script>window.sidebarCurrent = {name: 'calculate_turn_markings', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#305-360' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a>::<wbr><a class="fn" href=''>calculate_turn_markings</a></span></h1><pre class='rust fn'>fn calculate_turn_markings(map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, lane: &amp;<a class="struct" href="../../../map_model/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#296-351' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a>::<wbr><a class="fn" href=''>calculate_turn_markings</a></span></h1><pre class='rust fn'>fn calculate_turn_markings(map: &amp;<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, lane: &amp;<a class="struct" href="../../../map_model/objects/lane/struct.Lane.html" title="struct map_model::objects::lane::Lane">Lane</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></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="API documentation for the Rust `perp_line` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, perp_line"><title>game::render::lane::perp_line - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a></p><script>window.sidebarCurrent = {name: 'perp_line', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#218-222' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a>::<wbr><a class="fn" href=''>perp_line</a></span></h1><pre class='rust fn'>fn perp_line(l: <a class="struct" href="../../../geom/line/struct.Line.html" title="struct geom::line::Line">Line</a>, length: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>) -&gt; <a class="struct" href="../../../geom/line/struct.Line.html" title="struct geom::line::Line">Line</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#209-213' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>lane</a>::<wbr><a class="fn" href=''>perp_line</a></span></h1><pre class='rust fn'>fn perp_line(l: <a class="struct" href="../../../geom/line/struct.Line.html" title="struct geom::line::Line">Line</a>, length: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>) -&gt; <a class="struct" href="../../../geom/line/struct.Line.html" title="struct geom::line::Line">Line</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -1,4 +1,4 @@
<!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 `lane` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, lane"><title>game::render::lane - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module lane</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a></p><script>window.sidebarCurrent = {name: 'lane', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#1-393' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>lane</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/lane.rs.html#1-384' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>lane</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table><tr class='module-item'><td><a class="struct" href="struct.DrawLane.html" title='game::render::lane::DrawLane struct'>DrawLane</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
<table><tr class='module-item'><td><a class="fn" href="fn.calculate_driving_lines.html" title='game::render::lane::calculate_driving_lines fn'>calculate_driving_lines</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.calculate_one_way_markings.html" title='game::render::lane::calculate_one_way_markings fn'>calculate_one_way_markings</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.calculate_parking_lines.html" title='game::render::lane::calculate_parking_lines fn'>calculate_parking_lines</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.calculate_sidewalk_lines.html" title='game::render::lane::calculate_sidewalk_lines fn'>calculate_sidewalk_lines</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.calculate_turn_markings.html" title='game::render::lane::calculate_turn_markings fn'>calculate_turn_markings</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.perp_line.html" title='game::render::lane::perp_line fn'>perp_line</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
<!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 `parking_lot` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, parking_lot"><title>game::render::parking_lot - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module parking_lot</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a></p><script>window.sidebarCurrent = {name: 'parking_lot', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/parking_lot.rs.html#1-128' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>parking_lot</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/parking_lot.rs.html#1-127' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>parking_lot</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table><tr class='module-item'><td><a class="struct" href="struct.DrawParkingLot.html" title='game::render::parking_lot::DrawParkingLot struct'>DrawParkingLot</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
<!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 `road` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, road"><title>game::render::road - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module road</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a></p><script>window.sidebarCurrent = {name: 'road', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/road.rs.html#1-134' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>road</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/game/render/road.rs.html#1-136' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>road</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table><tr class='module-item'><td><a class="struct" href="struct.DrawRoad.html" title='game::render::road::DrawRoad struct'>DrawRoad</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -505,6 +505,46 @@
<span id="504">504</span>
<span id="505">505</span>
<span id="506">506</span>
<span id="507">507</span>
<span id="508">508</span>
<span id="509">509</span>
<span id="510">510</span>
<span id="511">511</span>
<span id="512">512</span>
<span id="513">513</span>
<span id="514">514</span>
<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>
<span id="527">527</span>
<span id="528">528</span>
<span id="529">529</span>
<span id="530">530</span>
<span id="531">531</span>
<span id="532">532</span>
<span id="533">533</span>
<span id="534">534</span>
<span id="535">535</span>
<span id="536">536</span>
<span id="537">537</span>
<span id="538">538</span>
<span id="539">539</span>
<span id="540">540</span>
<span id="541">541</span>
<span id="542">542</span>
<span id="543">543</span>
<span id="544">544</span>
<span id="545">545</span>
<span id="546">546</span>
</pre><div class="example-wrap"><pre class="rust ">
<span class="kw">use</span> <span class="ident">map_model</span>::<span class="ident">osm</span>::<span class="ident">RoadRank</span>;
<span class="kw">use</span> <span class="ident">map_model</span>::<span class="ident">LaneType</span>;
@ -584,9 +624,9 @@
<span class="ident">parking_lane</span>: <span class="ident">Color</span>,
<span class="ident">bike_lane</span>: <span class="ident">Color</span>,
<span class="ident">sidewalk</span>: <span class="ident">Color</span>,
<span class="kw">pub</span> <span class="ident">sidewalk_lines</span>: <span class="ident">Color</span>,
<span class="kw">pub</span> <span class="ident">general_road_marking</span>: <span class="ident">Color</span>,
<span class="kw">pub</span> <span class="ident">road_center_line</span>: <span class="ident">Color</span>,
<span class="kw">pub</span> <span class="ident">sidewalk_lines</span>: <span class="prelude-ty">Option</span><span class="op">&lt;</span><span class="ident">Color</span><span class="op">&gt;</span>,
<span class="ident">general_road_marking</span>: <span class="ident">Color</span>,
<span class="ident">road_center_line</span>: <span class="ident">Color</span>,
<span class="kw">pub</span> <span class="ident">light_rail_track</span>: <span class="ident">Color</span>,
<span class="kw">pub</span> <span class="ident">private_road</span>: <span class="ident">Color</span>,
<span class="ident">unzoomed_highway</span>: <span class="ident">Color</span>,
@ -703,7 +743,7 @@
<span class="ident">parking_lane</span>: <span class="ident">Color</span>::<span class="ident">grey</span>(<span class="number">0.2</span>),
<span class="ident">bike_lane</span>: <span class="ident">Color</span>::<span class="ident">rgb</span>(<span class="number">15</span>, <span class="number">125</span>, <span class="number">75</span>),
<span class="ident">sidewalk</span>: <span class="ident">Color</span>::<span class="ident">grey</span>(<span class="number">0.8</span>),
<span class="ident">sidewalk_lines</span>: <span class="ident">Color</span>::<span class="ident">grey</span>(<span class="number">0.7</span>),
<span class="ident">sidewalk_lines</span>: <span class="prelude-val">Some</span>(<span class="ident">Color</span>::<span class="ident">grey</span>(<span class="number">0.7</span>)),
<span class="ident">general_road_marking</span>: <span class="ident">Color</span>::<span class="ident">WHITE</span>,
<span class="ident">road_center_line</span>: <span class="ident">Color</span>::<span class="ident">YELLOW</span>,
<span class="ident">light_rail_track</span>: <span class="ident">hex</span>(<span class="string">&quot;#844204&quot;</span>),
@ -812,10 +852,16 @@
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">zoomed_road_surface</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">lane</span>: <span class="ident">LaneType</span>, <span class="ident">rank</span>: <span class="ident">RoadRank</span>) <span class="op">-&gt;</span> <span class="ident">Color</span> {
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">scheme</span> {
<span class="ident">ColorSchemeChoice</span>::<span class="ident">FadedZoom</span> <span class="op">=&gt;</span> <span class="kw">match</span> <span class="ident">rank</span> {
<span class="ident">RoadRank</span>::<span class="ident">Highway</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#BEB2C0&quot;</span>),
<span class="ident">RoadRank</span>::<span class="ident">Arterial</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#B6BDC5&quot;</span>),
<span class="ident">RoadRank</span>::<span class="ident">Local</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#C6CDD5&quot;</span>),
<span class="ident">ColorSchemeChoice</span>::<span class="ident">FadedZoom</span> <span class="op">=&gt;</span> <span class="kw">match</span> <span class="ident">lane</span> {
<span class="ident">LaneType</span>::<span class="ident">Sidewalk</span> <span class="op">|</span> <span class="ident">LaneType</span>::<span class="ident">Shoulder</span> <span class="op">=&gt;</span> <span class="kw">match</span> <span class="ident">rank</span> {
<span class="ident">RoadRank</span>::<span class="ident">Highway</span> <span class="op">|</span> <span class="ident">RoadRank</span>::<span class="ident">Arterial</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#F2F2F2&quot;</span>),
<span class="ident">RoadRank</span>::<span class="ident">Local</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#DBDDE5&quot;</span>),
},
<span class="kw">_</span> <span class="op">=&gt;</span> <span class="kw">match</span> <span class="ident">rank</span> {
<span class="ident">RoadRank</span>::<span class="ident">Highway</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#F89E59&quot;</span>),
<span class="ident">RoadRank</span>::<span class="ident">Arterial</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#F2D163&quot;</span>),
<span class="ident">RoadRank</span>::<span class="ident">Local</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#FFFFFF&quot;</span>),
},
},
<span class="ident">ColorSchemeChoice</span>::<span class="ident">NegativeSpace</span> <span class="op">=&gt;</span> <span class="ident">Color</span>::<span class="ident">BLACK</span>,
<span class="kw">_</span> <span class="op">=&gt;</span> <span class="kw">match</span> <span class="ident">lane</span> {
@ -836,6 +882,28 @@
<span class="kw">_</span> <span class="op">=&gt;</span> <span class="self">self</span>.<span class="ident">normal_intersection</span>,
}
}
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">road_center_line</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">rank</span>: <span class="ident">RoadRank</span>) <span class="op">-&gt;</span> <span class="ident">Color</span> {
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">scheme</span> {
<span class="ident">ColorSchemeChoice</span>::<span class="ident">FadedZoom</span> <span class="op">=&gt;</span> <span class="kw">match</span> <span class="ident">rank</span> {
<span class="ident">RoadRank</span>::<span class="ident">Highway</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#60564D&quot;</span>),
<span class="ident">RoadRank</span>::<span class="ident">Arterial</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#585858&quot;</span>),
<span class="ident">RoadRank</span>::<span class="ident">Local</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#1C1C1C&quot;</span>),
},
<span class="kw">_</span> <span class="op">=&gt;</span> <span class="self">self</span>.<span class="ident">road_center_line</span>,
}
}
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">general_road_marking</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">rank</span>: <span class="ident">RoadRank</span>) <span class="op">-&gt;</span> <span class="ident">Color</span> {
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">scheme</span> {
<span class="ident">ColorSchemeChoice</span>::<span class="ident">FadedZoom</span> <span class="op">=&gt;</span> <span class="kw">match</span> <span class="ident">rank</span> {
<span class="ident">RoadRank</span>::<span class="ident">Highway</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#FFFFFF&quot;</span>),
<span class="ident">RoadRank</span>::<span class="ident">Arterial</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#FFFFFF&quot;</span>),
<span class="ident">RoadRank</span>::<span class="ident">Local</span> <span class="op">=&gt;</span> <span class="ident">hex</span>(<span class="string">&quot;#BABBBF&quot;</span>),
},
<span class="kw">_</span> <span class="op">=&gt;</span> <span class="self">self</span>.<span class="ident">general_road_marking</span>,
}
}
}
<span class="kw">fn</span> <span class="ident">modulo_color</span>(<span class="ident">colors</span>: <span class="kw-2">&amp;</span><span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Color</span><span class="op">&gt;</span>, <span class="ident">idx</span>: <span class="ident">usize</span>) <span class="op">-&gt;</span> <span class="ident">Color</span> {
@ -906,7 +974,7 @@
<span class="ident">cs</span>.<span class="ident">driving_lane</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#384173&quot;</span>);
<span class="ident">cs</span>.<span class="ident">parking_lane</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#4B5485&quot;</span>);
<span class="ident">cs</span>.<span class="ident">sidewalk</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#89ABD9&quot;</span>);
<span class="ident">cs</span>.<span class="ident">sidewalk_lines</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#4B5485&quot;</span>);
<span class="ident">cs</span>.<span class="ident">sidewalk_lines</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">hex</span>(<span class="string">&quot;#4B5485&quot;</span>));
<span class="ident">cs</span>.<span class="ident">general_road_marking</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#89ABD9&quot;</span>);
<span class="ident">cs</span>.<span class="ident">map_background</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#589D54&quot;</span>).<span class="ident">into</span>(); <span class="comment">// #153F14</span>
<span class="ident">cs</span>.<span class="ident">ped_crowd</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#DD5444&quot;</span>);
@ -932,7 +1000,7 @@
<span class="ident">cs</span>.<span class="ident">road_center_line</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#DB952E&quot;</span>);
<span class="ident">cs</span>.<span class="ident">general_road_marking</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#D6D6D6&quot;</span>);
<span class="ident">cs</span>.<span class="ident">sidewalk</span> <span class="op">=</span> <span class="ident">cs</span>.<span class="ident">general_road_marking</span>;
<span class="ident">cs</span>.<span class="ident">sidewalk_lines</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#707070&quot;</span>);
<span class="ident">cs</span>.<span class="ident">sidewalk_lines</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">hex</span>(<span class="string">&quot;#707070&quot;</span>));
<span class="ident">cs</span>.<span class="ident">bike_lane</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#72CE36&quot;</span>);
<span class="ident">cs</span>.<span class="ident">bus_lane</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#AD302D&quot;</span>);
<span class="ident">cs</span>
@ -977,7 +1045,7 @@
<span class="ident">cs</span>.<span class="ident">bike_lane</span> <span class="op">=</span> <span class="ident">road</span>;
<span class="ident">cs</span>.<span class="ident">bus_lane</span> <span class="op">=</span> <span class="ident">road</span>;
<span class="ident">cs</span>.<span class="ident">sidewalk</span> <span class="op">=</span> <span class="ident">Color</span>::<span class="ident">grey</span>(<span class="number">0.3</span>);
<span class="ident">cs</span>.<span class="ident">sidewalk_lines</span> <span class="op">=</span> <span class="ident">road</span>;
<span class="ident">cs</span>.<span class="ident">sidewalk_lines</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">road</span>);
<span class="ident">cs</span>.<span class="ident">normal_intersection</span> <span class="op">=</span> <span class="ident">road</span>;
<span class="ident">cs</span>.<span class="ident">general_road_marking</span> <span class="op">=</span> <span class="ident">cs</span>.<span class="ident">building_outline</span>;
<span class="ident">cs</span>.<span class="ident">road_center_line</span> <span class="op">=</span> <span class="ident">cs</span>.<span class="ident">general_road_marking</span>;
@ -987,7 +1055,19 @@
}
<span class="kw">fn</span> <span class="ident">faded_zoom</span>() <span class="op">-&gt;</span> <span class="ident">ColorScheme</span> {
<span class="kw">let</span> <span class="ident">cs</span> <span class="op">=</span> <span class="ident">ColorScheme</span>::<span class="ident">standard</span>();
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">cs</span> <span class="op">=</span> <span class="ident">ColorScheme</span>::<span class="ident">standard</span>();
<span class="ident">cs</span>.<span class="ident">unzoomed_highway</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#F89E59&quot;</span>);
<span class="ident">cs</span>.<span class="ident">unzoomed_arterial</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#F2D163&quot;</span>);
<span class="ident">cs</span>.<span class="ident">unzoomed_residential</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#FFFFFF&quot;</span>);
<span class="ident">cs</span>.<span class="ident">sidewalk_lines</span> <span class="op">=</span> <span class="prelude-val">None</span>;
<span class="ident">cs</span>.<span class="ident">map_background</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#E5E4E1&quot;</span>).<span class="ident">into</span>();
<span class="ident">cs</span>.<span class="ident">grass</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#B6E59E&quot;</span>).<span class="ident">into</span>();
<span class="ident">cs</span>.<span class="ident">water</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#75CFF0&quot;</span>).<span class="ident">into</span>();
<span class="ident">cs</span>.<span class="ident">residential_building</span> <span class="op">=</span> <span class="ident">hex</span>(<span class="string">&quot;#DCD9D6&quot;</span>);
<span class="ident">cs</span>.<span class="ident">commerical_building</span> <span class="op">=</span> <span class="ident">cs</span>.<span class="ident">residential_building</span>;
<span class="ident">cs</span>
}
@ -1003,7 +1083,7 @@
<span class="ident">cs</span>.<span class="ident">road_center_line</span> <span class="op">=</span> <span class="ident">nonempty_space</span>;
<span class="ident">cs</span>.<span class="ident">stop_sign</span> <span class="op">=</span> <span class="ident">nonempty_space</span>;
<span class="ident">cs</span>.<span class="ident">stop_sign_pole</span> <span class="op">=</span> <span class="ident">nonempty_space</span>;
<span class="ident">cs</span>.<span class="ident">sidewalk_lines</span> <span class="op">=</span> <span class="ident">nonempty_space</span>;
<span class="ident">cs</span>.<span class="ident">sidewalk_lines</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">nonempty_space</span>);
<span class="ident">cs</span>.<span class="ident">parking_lot</span> <span class="op">=</span> <span class="ident">nonempty_space</span>;
<span class="ident">cs</span>.<span class="ident">grass</span> <span class="op">=</span> <span class="ident">nonempty_space</span>.<span class="ident">into</span>();
<span class="ident">cs</span>.<span class="ident">water</span> <span class="op">=</span> <span class="ident">nonempty_space</span>.<span class="ident">into</span>();

View File

@ -112,7 +112,7 @@
<span class="doccomment">/// The output of `rustdoc -V`</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;rustdoc 1.47.0 (18bf6b4f0 2020-10-07)&quot;</span>;
<span class="doccomment">/// The built-time in RFC2822, UTC</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;Sat, 17 Oct 2020 14:57:00 +0000&quot;</span>;
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;Mon, 19 Oct 2020 18:06:57 +0000&quot;</span>;
<span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;x86_64&quot;</span>;
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>

View File

@ -422,6 +422,11 @@
<span id="421">421</span>
<span id="422">422</span>
<span id="423">423</span>
<span id="424">424</span>
<span id="425">425</span>
<span id="426">426</span>
<span id="427">427</span>
<span id="428">428</span>
</pre><div class="example-wrap"><pre class="rust ">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">cell</span>::<span class="ident">RefCell</span>;
@ -491,7 +496,10 @@
<span class="kw">match</span> <span class="ident">i</span>.<span class="ident">intersection_type</span> {
<span class="ident">IntersectionType</span>::<span class="ident">Border</span> <span class="op">=&gt;</span> {
<span class="kw">let</span> <span class="ident">r</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_r</span>(<span class="kw-2">*</span><span class="ident">i</span>.<span class="ident">roads</span>.<span class="ident">iter</span>().<span class="ident">next</span>().<span class="ident">unwrap</span>());
<span class="ident">default_geom</span>.<span class="ident">extend</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">road_center_line</span>, <span class="ident">calculate_border_arrows</span>(<span class="ident">i</span>, <span class="ident">r</span>, <span class="ident">map</span>));
<span class="ident">default_geom</span>.<span class="ident">extend</span>(
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">road_center_line</span>(<span class="ident">r</span>.<span class="ident">get_rank</span>()),
<span class="ident">calculate_border_arrows</span>(<span class="ident">i</span>, <span class="ident">r</span>, <span class="ident">map</span>),
);
}
<span class="ident">IntersectionType</span>::<span class="ident">StopSign</span> <span class="op">=&gt;</span> {
<span class="kw">for</span> <span class="ident">ss</span> <span class="kw">in</span> <span class="ident">map</span>.<span class="ident">get_stop_sign</span>(<span class="ident">i</span>.<span class="ident">id</span>).<span class="ident">roads</span>.<span class="ident">values</span>() {
@ -770,8 +778,10 @@
<span class="kw">let</span> <span class="ident">pt1</span> <span class="op">=</span> <span class="ident">line</span>.<span class="ident">dist_along</span>(<span class="ident">dist_along</span>).<span class="ident">expect</span>(<span class="kw-2">&amp;</span><span class="ident">err</span>);
<span class="comment">// Reuse perp_line. Project away an arbitrary amount</span>
<span class="kw">let</span> <span class="ident">pt2</span> <span class="op">=</span> <span class="ident">pt1</span>.<span class="ident">project_away</span>(<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">1.0</span>), <span class="ident">turn</span>.<span class="ident">angle</span>());
<span class="kw">let</span> <span class="ident">general_road_marking</span> <span class="op">=</span>
<span class="ident">cs</span>.<span class="ident">general_road_marking</span>(<span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">turn</span>.<span class="ident">id</span>.<span class="ident">parent</span>).<span class="ident">get_rank</span>(<span class="ident">map</span>));
<span class="ident">batch</span>.<span class="ident">push</span>(
<span class="ident">cs</span>.<span class="ident">general_road_marking</span>,
<span class="ident">general_road_marking</span>,
<span class="ident">perp_line</span>(<span class="ident">Line</span>::<span class="ident">must_new</span>(<span class="ident">pt1</span>, <span class="ident">pt2</span>), <span class="ident">width</span>).<span class="ident">make_polygons</span>(<span class="ident">CROSSWALK_LINE_THICKNESS</span>),
);
@ -781,7 +791,7 @@
.<span class="ident">expect</span>(<span class="kw-2">&amp;</span><span class="ident">err</span>);
<span class="kw">let</span> <span class="ident">pt4</span> <span class="op">=</span> <span class="ident">pt3</span>.<span class="ident">project_away</span>(<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">1.0</span>), <span class="ident">turn</span>.<span class="ident">angle</span>());
<span class="ident">batch</span>.<span class="ident">push</span>(
<span class="ident">cs</span>.<span class="ident">general_road_marking</span>,
<span class="ident">general_road_marking</span>,
<span class="ident">perp_line</span>(<span class="ident">Line</span>::<span class="ident">must_new</span>(<span class="ident">pt3</span>, <span class="ident">pt4</span>), <span class="ident">width</span>).<span class="ident">make_polygons</span>(<span class="ident">CROSSWALK_LINE_THICKNESS</span>),
);

View File

@ -383,15 +383,6 @@
<span id="382">382</span>
<span id="383">383</span>
<span id="384">384</span>
<span id="385">385</span>
<span id="386">386</span>
<span id="387">387</span>
<span id="388">388</span>
<span id="389">389</span>
<span id="390">390</span>
<span id="391">391</span>
<span id="392">392</span>
<span id="393">393</span>
</pre><div class="example-wrap"><pre class="rust ">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">cell</span>::<span class="ident">RefCell</span>;
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">HashMap</span>;
@ -440,42 +431,33 @@
<span class="self">self</span>.<span class="ident">polygon</span>.<span class="ident">clone</span>(),
);
}
<span class="kw">let</span> <span class="ident">general_road_marking</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">general_road_marking</span>(<span class="ident">road</span>.<span class="ident">get_rank</span>());
<span class="kw">match</span> <span class="ident">lane</span>.<span class="ident">lane_type</span> {
<span class="ident">LaneType</span>::<span class="ident">Sidewalk</span> <span class="op">=&gt;</span> {
<span class="ident">draw</span>.<span class="ident">extend</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">sidewalk_lines</span>, <span class="ident">calculate_sidewalk_lines</span>(<span class="ident">lane</span>));
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">c</span>) <span class="op">=</span> <span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">sidewalk_lines</span> {
<span class="ident">draw</span>.<span class="ident">extend</span>(<span class="ident">c</span>, <span class="ident">calculate_sidewalk_lines</span>(<span class="ident">lane</span>));
}
}
<span class="ident">LaneType</span>::<span class="ident">Shoulder</span> <span class="op">=&gt;</span> {}
<span class="ident">LaneType</span>::<span class="ident">Parking</span> <span class="op">=&gt;</span> {
<span class="ident">draw</span>.<span class="ident">extend</span>(
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">general_road_marking</span>,
<span class="ident">calculate_parking_lines</span>(<span class="ident">lane</span>, <span class="ident">map</span>),
);
<span class="ident">draw</span>.<span class="ident">extend</span>(<span class="ident">general_road_marking</span>, <span class="ident">calculate_parking_lines</span>(<span class="ident">lane</span>, <span class="ident">map</span>));
}
<span class="ident">LaneType</span>::<span class="ident">Driving</span> <span class="op">|</span> <span class="ident">LaneType</span>::<span class="ident">Bus</span> <span class="op">=&gt;</span> {
<span class="ident">draw</span>.<span class="ident">extend</span>(
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">general_road_marking</span>,
<span class="ident">calculate_driving_lines</span>(<span class="ident">lane</span>, <span class="ident">road</span>),
);
<span class="ident">draw</span>.<span class="ident">extend</span>(
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">general_road_marking</span>,
<span class="ident">calculate_turn_markings</span>(<span class="ident">map</span>, <span class="ident">lane</span>),
);
<span class="ident">draw</span>.<span class="ident">extend</span>(
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">general_road_marking</span>,
<span class="ident">calculate_one_way_markings</span>(<span class="ident">lane</span>, <span class="ident">road</span>),
);
<span class="ident">draw</span>.<span class="ident">extend</span>(<span class="ident">general_road_marking</span>, <span class="ident">calculate_driving_lines</span>(<span class="ident">lane</span>, <span class="ident">road</span>));
<span class="ident">draw</span>.<span class="ident">extend</span>(<span class="ident">general_road_marking</span>, <span class="ident">calculate_turn_markings</span>(<span class="ident">map</span>, <span class="ident">lane</span>));
<span class="ident">draw</span>.<span class="ident">extend</span>(<span class="ident">general_road_marking</span>, <span class="ident">calculate_one_way_markings</span>(<span class="ident">lane</span>, <span class="ident">road</span>));
}
<span class="ident">LaneType</span>::<span class="ident">Biking</span> <span class="op">=&gt;</span> {}
<span class="ident">LaneType</span>::<span class="ident">SharedLeftTurn</span> <span class="op">=&gt;</span> {
<span class="kw">let</span> <span class="ident">thickness</span> <span class="op">=</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.25</span>);
<span class="ident">draw</span>.<span class="ident">push</span>(
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">road_center_line</span>,
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">road_center_line</span>(<span class="ident">road</span>.<span class="ident">get_rank</span>()),
<span class="ident">lane</span>.<span class="ident">lane_center_pts</span>
.<span class="ident">must_shift_right</span>((<span class="ident">lane</span>.<span class="ident">width</span> <span class="op">-</span> <span class="ident">thickness</span>) <span class="op">/</span> <span class="number">2.0</span>)
.<span class="ident">make_polygons</span>(<span class="ident">thickness</span>),
);
<span class="ident">draw</span>.<span class="ident">push</span>(
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">road_center_line</span>,
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">road_center_line</span>(<span class="ident">road</span>.<span class="ident">get_rank</span>()),
<span class="ident">lane</span>.<span class="ident">lane_center_pts</span>
.<span class="ident">must_shift_left</span>((<span class="ident">lane</span>.<span class="ident">width</span> <span class="op">-</span> <span class="ident">thickness</span>) <span class="op">/</span> <span class="number">2.0</span>)
.<span class="ident">make_polygons</span>(<span class="ident">thickness</span>),

View File

@ -126,7 +126,6 @@
<span id="125">125</span>
<span id="126">126</span>
<span id="127">127</span>
<span id="128">128</span>
</pre><div class="example-wrap"><pre class="rust ">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">cell</span>::<span class="ident">RefCell</span>;
@ -197,14 +196,13 @@
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">batch</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">new</span>();
<span class="comment">// TODO This isn&#39;t getting clipped to the parking lot boundary properly, so just stick</span>
<span class="comment">// this on the lowest order for now.</span>
<span class="kw">let</span> <span class="ident">rank</span> <span class="op">=</span> <span class="ident">app</span>
.<span class="ident">primary</span>
.<span class="ident">map</span>
.<span class="ident">get_parent</span>(<span class="ident">lot</span>.<span class="ident">sidewalk_pos</span>.<span class="ident">lane</span>())
.<span class="ident">get_rank</span>();
<span class="ident">batch</span>.<span class="ident">push</span>(
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">zoomed_road_surface</span>(
<span class="ident">LaneType</span>::<span class="ident">Sidewalk</span>,
<span class="ident">app</span>.<span class="ident">primary</span>
.<span class="ident">map</span>
.<span class="ident">get_parent</span>(<span class="ident">lot</span>.<span class="ident">sidewalk_pos</span>.<span class="ident">lane</span>())
.<span class="ident">get_rank</span>(),
),
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">zoomed_road_surface</span>(<span class="ident">LaneType</span>::<span class="ident">Sidewalk</span>, <span class="ident">rank</span>),
<span class="ident">front_path_line</span>.<span class="ident">make_polygons</span>(<span class="ident">NORMAL_LANE_THICKNESS</span>),
);
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">parking_lot</span>, <span class="ident">lot</span>.<span class="ident">polygon</span>.<span class="ident">clone</span>());
@ -223,7 +221,7 @@
<span class="kw">let</span> <span class="ident">right</span> <span class="op">=</span> <span class="ident">pt</span>.<span class="ident">project_away</span>(<span class="ident">width</span> <span class="op">/</span> <span class="number">2.0</span>, <span class="ident">angle</span>.<span class="ident">rotate_degs</span>(<span class="op">-</span><span class="number">90.0</span>));
<span class="ident">batch</span>.<span class="ident">push</span>(
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">general_road_marking</span>,
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">general_road_marking</span>(<span class="ident">rank</span>),
<span class="ident">PolyLine</span>::<span class="ident">must_new</span>(<span class="macro">vec</span><span class="macro">!</span>[
<span class="ident">left</span>.<span class="ident">project_away</span>(<span class="ident">height</span>, <span class="kw-2">*</span><span class="ident">angle</span>),
<span class="ident">left</span>,

View File

@ -133,6 +133,8 @@
<span id="132">132</span>
<span id="133">133</span>
<span id="134">134</span>
<span id="135">135</span>
<span id="136">136</span>
</pre><div class="example-wrap"><pre class="rust ">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">cell</span>::<span class="ident">RefCell</span>;
@ -178,10 +180,11 @@
<span class="kw">if</span> <span class="ident">draw_center_line</span>.<span class="ident">is_none</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">batch</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">new</span>();
<span class="kw">let</span> <span class="ident">r</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_r</span>(<span class="self">self</span>.<span class="ident">id</span>);
<span class="kw">let</span> <span class="ident">center_color</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">road_center_line</span>(<span class="ident">r</span>.<span class="ident">get_rank</span>());
<span class="kw">let</span> <span class="ident">color</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">r</span>.<span class="ident">is_private</span>() {
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">road_center_line</span>.<span class="ident">lerp</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">private_road</span>, <span class="number">0.5</span>)
<span class="ident">center_color</span>.<span class="ident">lerp</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">private_road</span>, <span class="number">0.5</span>)
} <span class="kw">else</span> {
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">road_center_line</span>
<span class="ident">center_color</span>
};
<span class="comment">// Draw a center line every time two driving/bike/bus lanes of opposite direction are</span>
@ -217,10 +220,11 @@
<span class="kw">if</span> <span class="ident">r</span>.<span class="ident">center_pts</span>.<span class="ident">length</span>() <span class="op">&gt;=</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">30.0</span>) <span class="op">&amp;&amp;</span> <span class="ident">name</span> <span class="op">!=</span> <span class="string">&quot;???&quot;</span> {
<span class="comment">// TODO If it&#39;s definitely straddling bus/bike lanes, change the color? Or</span>
<span class="comment">// even easier, just skip the center lines?</span>
<span class="kw">let</span> <span class="ident">center_color</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">road_center_line</span>(<span class="ident">r</span>.<span class="ident">get_rank</span>());
<span class="kw">let</span> <span class="ident">fg</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">r</span>.<span class="ident">is_private</span>() {
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">road_center_line</span>.<span class="ident">lerp</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">private_road</span>, <span class="number">0.5</span>)
<span class="ident">center_color</span>.<span class="ident">lerp</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">private_road</span>, <span class="number">0.5</span>)
} <span class="kw">else</span> {
<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">road_center_line</span>
<span class="ident">center_color</span>
};
<span class="kw">let</span> <span class="ident">bg</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">r</span>.<span class="ident">is_private</span>() {
<span class="ident">app</span>.<span class="ident">cs</span>