This commit is contained in:
dabreegster 2021-01-12 20:49:26 +00:00
parent f5d4aa866d
commit f43c987e8e
10 changed files with 30 additions and 32 deletions

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 `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 id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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-b5501e76eef510ad/out/built.rs.html#53" 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;Tue, 12 Jan 2021 20:23:16 +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-b5501e76eef510ad/out/built.rs.html#53" 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;Tue, 12 Jan 2021 20:46:52 +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,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 `fix_angles` fn in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, fix_angles"><title>geom::polyline::fix_angles - 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 id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><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='../../geom/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">geom</a>::<wbr><a href="index.html">polyline</a></p><script>window.sidebarCurrent = {name: "fix_angles", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/geom/polyline.rs.html#832-855" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">geom</a>::<wbr><a href="index.html">polyline</a>::<wbr><a class="fn" href="">fix_angles</a></span></h1><pre class="rust fn">fn fix_angles(orig: &amp;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>, result: <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "geom";</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/geom/polyline.rs.html#831-854" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">geom</a>::<wbr><a href="index.html">polyline</a>::<wbr><a class="fn" href="">fix_angles</a></span></h1><pre class="rust fn">fn fix_angles(orig: &amp;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>, result: <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "geom";</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 `pts_to_line_string` fn in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, pts_to_line_string"><title>geom::polyline::pts_to_line_string - 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 id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><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='../../geom/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">geom</a>::<wbr><a href="index.html">polyline</a></p><script>window.sidebarCurrent = {name: "pts_to_line_string", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/geom/polyline.rs.html#872-878" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">geom</a>::<wbr><a href="index.html">polyline</a>::<wbr><a class="fn" href="">pts_to_line_string</a></span></h1><pre class="rust fn">fn pts_to_line_string(raw_pts: &amp;<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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "geom";</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/geom/polyline.rs.html#871-877" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">geom</a>::<wbr><a href="index.html">polyline</a>::<wbr><a class="fn" href="">pts_to_line_string</a></span></h1><pre class="rust fn">fn pts_to_line_string(raw_pts: &amp;<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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>&gt;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "geom";</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 `to_set` fn in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, to_set"><title>geom::polyline::to_set - 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 id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><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='../../geom/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">geom</a>::<wbr><a href="index.html">polyline</a></p><script>window.sidebarCurrent = {name: "to_set", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/geom/polyline.rs.html#858-870" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">geom</a>::<wbr><a href="index.html">polyline</a>::<wbr><a class="fn" href="">to_set</a></span></h1><pre class="rust fn">fn to_set(pts: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a>&lt;<a class="struct" href="../../geom/struct.HashablePt2D.html" title="struct geom::HashablePt2D">HashablePt2D</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a>&lt;<a class="struct" href="../../geom/struct.HashablePt2D.html" title="struct geom::HashablePt2D">HashablePt2D</a>&gt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "geom";</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/geom/polyline.rs.html#857-869" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">geom</a>::<wbr><a href="index.html">polyline</a>::<wbr><a class="fn" href="">to_set</a></span></h1><pre class="rust fn">fn to_set(pts: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a>&lt;<a class="struct" href="../../geom/struct.HashablePt2D.html" title="struct geom::HashablePt2D">HashablePt2D</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a>&lt;<a class="struct" href="../../geom/struct.HashablePt2D.html" title="struct geom::HashablePt2D">HashablePt2D</a>&gt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "geom";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

View File

@ -1,7 +1,7 @@
<!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 `polyline` mod in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, polyline"><title>geom::polyline - 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 id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><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='../../geom/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module polyline</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="#constants">Constants</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../index.html">geom</a></p><script>window.sidebarCurrent = {name: "polyline", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/geom/polyline.rs.html#1-878" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">geom</a>::<wbr><a class="mod" href="">polyline</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/geom/polyline.rs.html#1-877" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">geom</a>::<wbr><a class="mod" href="">polyline</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.PolyLine.html" title="geom::polyline::PolyLine struct">PolyLine</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.ArrowCap.html" title="geom::polyline::ArrowCap enum">ArrowCap</a></td><td class="docblock-short"></td></tr></table><h2 id="constants" class="section-header"><a href="#constants">Constants</a></h2>
<table><tr class="module-item"><td><a class="constant" href="constant.MITER_THRESHOLD.html" title="geom::polyline::MITER_THRESHOLD constant">MITER_THRESHOLD</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>

View File

@ -5,7 +5,7 @@
pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;,
length: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>,
}</pre></div><h2 id="fields" class="fields small-section-header">
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.pts" class="structfield small-section-header"><a href="#structfield.pts" class="anchor field"></a><code>pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;</code></span><span id="structfield.length" class="structfield small-section-header"><a href="#structfield.length" class="anchor field"></a><code>length: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/geom/polyline.rs.html#29-808" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#30-60" title="goto source code">[src]</a></h4><h4 id="method.must_new" class="method"><code>pub fn <a href="#method.must_new" class="fnname">must_new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#61-63" title="goto source code">[src]</a></h4><h4 id="method.unchecked_new" class="method"><code>pub fn <a href="#method.unchecked_new" class="fnname">unchecked_new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#66-73" title="goto source code">[src]</a></h4><div class="docblock"><p>Doesn't check for duplicates. Use at your own risk.</p>
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.pts" class="structfield small-section-header"><a href="#structfield.pts" class="anchor field"></a><code>pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;</code></span><span id="structfield.length" class="structfield small-section-header"><a href="#structfield.length" class="anchor field"></a><code>length: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/geom/polyline.rs.html#29-807" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#30-60" title="goto source code">[src]</a></h4><h4 id="method.must_new" class="method"><code>pub fn <a href="#method.must_new" class="fnname">must_new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#61-63" title="goto source code">[src]</a></h4><h4 id="method.unchecked_new" class="method"><code>pub fn <a href="#method.unchecked_new" class="fnname">unchecked_new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#66-73" title="goto source code">[src]</a></h4><div class="docblock"><p>Doesn't check for duplicates. Use at your own risk.</p>
</div><h4 id="method.deduping_new" class="method"><code>pub fn <a href="#method.deduping_new" class="fnname">deduping_new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#76-79" title="goto source code">[src]</a></h4><div class="docblock"><p>First dedupes adjacent points</p>
</div><h4 id="method.to_thick_ring" class="method"><code>pub fn <a href="#method.to_thick_ring" class="fnname">to_thick_ring</a>(&amp;self, width: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>) -&gt; <a class="struct" href="../../geom/struct.Ring.html" title="struct geom::Ring">Ring</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#82-90" title="goto source code">[src]</a></h4><div class="docblock"><p>Like make_polygons, but make sure the points actually form a ring.</p>
</div><h4 id="method.to_thick_boundary" class="method"><code>pub fn <a href="#method.to_thick_boundary" class="fnname">to_thick_boundary</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;self_width: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;boundary_width: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#92-110" title="goto source code">[src]</a></h4><h4 id="method.reversed" class="method"><code>pub fn <a href="#method.reversed" class="fnname">reversed</a>(&amp;self) -&gt; <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#112-116" title="goto source code">[src]</a></h4><h4 id="method.extend" class="method"><code>pub fn <a href="#method.extend" class="fnname">extend</a>(self, other: <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#118-162" title="goto source code">[src]</a></h4><h4 id="method.must_extend" class="method"><code>pub fn <a href="#method.must_extend" class="fnname">must_extend</a>(self, other: <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#163-165" title="goto source code">[src]</a></h4><h4 id="method.must_push" class="method"><code>pub fn <a href="#method.must_push" class="fnname">must_push</a>(self, pt: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#166-169" title="goto source code">[src]</a></h4><h4 id="method.append" class="method"><code>pub fn <a href="#method.append" class="fnname">append</a>(first: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;, second: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#172-183" title="goto source code">[src]</a></h4><div class="docblock"><p>One or both args might be empty.</p>
@ -16,21 +16,21 @@ usually does).</p>
</div><h4 id="method.make_polygons_with_miter_threshold" class="method"><code>pub fn <a href="#method.make_polygons_with_miter_threshold" class="fnname">make_polygons_with_miter_threshold</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;miter_threshold: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><br>) -&gt; <a class="struct" href="../../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#456-481" title="goto source code">[src]</a></h4><div class="docblock"><p>The resulting polygon is manually triangulated and may not have a valid outer Ring (but it
usually does).</p>
</div><h4 id="method.exact_dashed_polygons" class="method"><code>pub fn <a href="#method.exact_dashed_polygons" class="fnname">exact_dashed_polygons</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_len: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_separation: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</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/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#483-507" title="goto source code">[src]</a></h4><h4 id="method.dashed_lines" class="method"><code>pub fn <a href="#method.dashed_lines" class="fnname">dashed_lines</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_len: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_separation: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</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/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#510-521" title="goto source code">[src]</a></h4><div class="docblock"><p>Don't draw the dashes too close to the ends.</p>
</div><h4 id="method.maybe_make_arrow" class="method"><code>pub fn <a href="#method.maybe_make_arrow" class="fnname">maybe_make_arrow</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;thickness: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cap: <a class="enum" href="../../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#524-555" title="goto source code">[src]</a></h4><div class="docblock"><p>Fail if the length is too short.</p>
</div><h4 id="method.make_arrow" class="method"><code>pub fn <a href="#method.make_arrow" class="fnname">make_arrow</a>(&amp;self, thickness: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, cap: <a class="enum" href="../../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</a>) -&gt; <a class="struct" href="../../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#558-565" title="goto source code">[src]</a></h4><div class="docblock"><p>If the length is too short, just give up and make the thick line</p>
</div><h4 id="method.make_double_arrow" class="method"><code>pub fn <a href="#method.make_double_arrow" class="fnname">make_double_arrow</a>(&amp;self, thickness: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, cap: <a class="enum" href="../../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</a>) -&gt; <a class="struct" href="../../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#567-615" title="goto source code">[src]</a></h4><h4 id="method.dashed_arrow" class="method"><code>pub fn <a href="#method.dashed_arrow" class="fnname">dashed_arrow</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_len: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_separation: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cap: <a class="enum" href="../../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</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/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#617-639" title="goto source code">[src]</a></h4><h4 id="method.intersection" class="method"><code>pub fn <a href="#method.intersection" class="fnname">intersection</a>(&amp;self, other: &amp;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>, <a class="struct" href="../../geom/struct.Angle.html" title="struct geom::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#643-679" title="goto source code">[src]</a></h4><div class="docblock"><p>Also return the angle of the line where the hit was found</p>
</div><h4 id="method.intersection_infinite" class="method"><code>pub fn <a href="#method.intersection_infinite" class="fnname">intersection_infinite</a>(&amp;self, other: &amp;<a class="struct" href="../../geom/struct.InfiniteLine.html" title="struct geom::InfiniteLine">InfiniteLine</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#682-689" title="goto source code">[src]</a></h4><h4 id="method.get_slice_ending_at" class="method"><code>pub fn <a href="#method.get_slice_ending_at" class="fnname">get_slice_ending_at</a>(&amp;self, pt: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#693-713" title="goto source code">[src]</a></h4><div class="docblock"><p>Panics if the pt is not on the polyline. Returns None if the point is the first point
</div><h4 id="method.maybe_make_arrow" class="method"><code>pub fn <a href="#method.maybe_make_arrow" class="fnname">maybe_make_arrow</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;thickness: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cap: <a class="enum" href="../../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#524-554" title="goto source code">[src]</a></h4><div class="docblock"><p>Fail if the length is too short.</p>
</div><h4 id="method.make_arrow" class="method"><code>pub fn <a href="#method.make_arrow" class="fnname">make_arrow</a>(&amp;self, thickness: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, cap: <a class="enum" href="../../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</a>) -&gt; <a class="struct" href="../../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#557-564" title="goto source code">[src]</a></h4><div class="docblock"><p>If the length is too short, just give up and make the thick line</p>
</div><h4 id="method.make_double_arrow" class="method"><code>pub fn <a href="#method.make_double_arrow" class="fnname">make_double_arrow</a>(&amp;self, thickness: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, cap: <a class="enum" href="../../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</a>) -&gt; <a class="struct" href="../../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#566-614" title="goto source code">[src]</a></h4><h4 id="method.dashed_arrow" class="method"><code>pub fn <a href="#method.dashed_arrow" class="fnname">dashed_arrow</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_len: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_separation: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cap: <a class="enum" href="../../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</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/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#616-638" title="goto source code">[src]</a></h4><h4 id="method.intersection" class="method"><code>pub fn <a href="#method.intersection" class="fnname">intersection</a>(&amp;self, other: &amp;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>, <a class="struct" href="../../geom/struct.Angle.html" title="struct geom::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#642-678" title="goto source code">[src]</a></h4><div class="docblock"><p>Also return the angle of the line where the hit was found</p>
</div><h4 id="method.intersection_infinite" class="method"><code>pub fn <a href="#method.intersection_infinite" class="fnname">intersection_infinite</a>(&amp;self, other: &amp;<a class="struct" href="../../geom/struct.InfiniteLine.html" title="struct geom::InfiniteLine">InfiniteLine</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#681-688" title="goto source code">[src]</a></h4><h4 id="method.get_slice_ending_at" class="method"><code>pub fn <a href="#method.get_slice_ending_at" class="fnname">get_slice_ending_at</a>(&amp;self, pt: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#692-712" title="goto source code">[src]</a></h4><div class="docblock"><p>Panics if the pt is not on the polyline. Returns None if the point is the first point
(meaning the slice is empty).</p>
</div><h4 id="method.get_slice_starting_at" class="method"><code>pub fn <a href="#method.get_slice_starting_at" class="fnname">get_slice_starting_at</a>(&amp;self, pt: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#716-734" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns None if the point is the last point.</p>
</div><h4 id="method.dist_along_of_point" class="method"><code>pub fn <a href="#method.dist_along_of_point" class="fnname">dist_along_of_point</a>(&amp;self, pt: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <a class="struct" href="../../geom/struct.Angle.html" title="struct geom::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#736-746" title="goto source code">[src]</a></h4><h4 id="method.trim_to_endpts" class="method"><code>pub fn <a href="#method.trim_to_endpts" class="fnname">trim_to_endpts</a>(&amp;self, pt1: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>, pt2: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#748-756" title="goto source code">[src]</a></h4><h4 id="method.get_bounds" class="method"><code>pub fn <a href="#method.get_bounds" class="fnname">get_bounds</a>(&amp;self) -&gt; <a class="struct" href="../../geom/struct.Bounds.html" title="struct geom::Bounds">Bounds</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#758-760" title="goto source code">[src]</a></h4><h4 id="method.extend_to_length" class="method"><code>pub fn <a href="#method.extend_to_length" class="fnname">extend_to_length</a>(&amp;self, min_len: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>) -&gt; <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#764-782" title="goto source code">[src]</a></h4><div class="docblock"><p>If the current line is at least this long, return it. Otherwise, extend the end of it,
</div><h4 id="method.get_slice_starting_at" class="method"><code>pub fn <a href="#method.get_slice_starting_at" class="fnname">get_slice_starting_at</a>(&amp;self, pt: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#715-733" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns None if the point is the last point.</p>
</div><h4 id="method.dist_along_of_point" class="method"><code>pub fn <a href="#method.dist_along_of_point" class="fnname">dist_along_of_point</a>(&amp;self, pt: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <a class="struct" href="../../geom/struct.Angle.html" title="struct geom::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</code><a class="srclink" href="../../src/geom/polyline.rs.html#735-745" title="goto source code">[src]</a></h4><h4 id="method.trim_to_endpts" class="method"><code>pub fn <a href="#method.trim_to_endpts" class="fnname">trim_to_endpts</a>(&amp;self, pt1: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>, pt2: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#747-755" title="goto source code">[src]</a></h4><h4 id="method.get_bounds" class="method"><code>pub fn <a href="#method.get_bounds" class="fnname">get_bounds</a>(&amp;self) -&gt; <a class="struct" href="../../geom/struct.Bounds.html" title="struct geom::Bounds">Bounds</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#757-759" title="goto source code">[src]</a></h4><h4 id="method.extend_to_length" class="method"><code>pub fn <a href="#method.extend_to_length" class="fnname">extend_to_length</a>(&amp;self, min_len: <a class="struct" href="../../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>) -&gt; <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#763-781" title="goto source code">[src]</a></h4><div class="docblock"><p>If the current line is at least this long, return it. Otherwise, extend the end of it,
following the angle of the last line.</p>
</div><h4 id="method.to_geojson" class="method"><code>pub fn <a href="#method.to_geojson" class="fnname">to_geojson</a>(&amp;self, gps: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../geom/struct.GPSBounds.html" title="struct geom::GPSBounds">GPSBounds</a>&gt;) -&gt; Geometry</code><a class="srclink" href="../../src/geom/polyline.rs.html#785-797" title="goto source code">[src]</a></h4><div class="docblock"><p>Produces a GeoJSON linestring, optionally mapping the world-space points back to GPS.</p>
</div><h4 id="method.project_pt" class="method"><code>pub fn <a href="#method.project_pt" class="fnname">project_pt</a>(&amp;self, query: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#800-807" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the point on the polyline closest to the query.</p>
</div><h4 id="method.to_geojson" class="method"><code>pub fn <a href="#method.to_geojson" class="fnname">to_geojson</a>(&amp;self, gps: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../geom/struct.GPSBounds.html" title="struct geom::GPSBounds">GPSBounds</a>&gt;) -&gt; Geometry</code><a class="srclink" href="../../src/geom/polyline.rs.html#784-796" title="goto source code">[src]</a></h4><div class="docblock"><p>Produces a GeoJSON linestring, optionally mapping the world-space points back to GPS.</p>
</div><h4 id="method.project_pt" class="method"><code>pub fn <a href="#method.project_pt" class="fnname">project_pt</a>(&amp;self, query: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#799-806" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the point on the polyline closest to the query.</p>
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id="method.clone_from" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128-130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id="impl-Deserialize%3C%27de%3E" class="impl"><code class="in-band">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><a class="srclink" href="../../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.deserialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="type" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></code><a class="srclink" href="../../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></div><h3 id="impl-Display" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl-Display" class="anchor"></a><a class="srclink" href="../../src/geom/polyline.rs.html#810-830" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-1" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#811-829" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id="impl-Display" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl-Display" class="anchor"></a><a class="srclink" href="../../src/geom/polyline.rs.html#809-829" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-1" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#810-828" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id="impl-PartialEq%3CPolyLine%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt; for <a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl-PartialEq%3CPolyLine%3E" class="anchor"></a><a class="srclink" href="../../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id="method.ne" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;<a class="struct" href="../../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>

View File

@ -5,7 +5,7 @@
pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;,
length: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>,
}</pre></div><h2 id="fields" class="fields small-section-header">
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.pts" class="structfield small-section-header"><a href="#structfield.pts" class="anchor field"></a><code>pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;</code></span><span id="structfield.length" class="structfield small-section-header"><a href="#structfield.length" class="anchor field"></a><code>length: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../src/geom/polyline.rs.html#29-808" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#30-60" title="goto source code">[src]</a></h4><h4 id="method.must_new" class="method"><code>pub fn <a href="#method.must_new" class="fnname">must_new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../src/geom/polyline.rs.html#61-63" title="goto source code">[src]</a></h4><h4 id="method.unchecked_new" class="method"><code>pub fn <a href="#method.unchecked_new" class="fnname">unchecked_new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../src/geom/polyline.rs.html#66-73" title="goto source code">[src]</a></h4><div class="docblock"><p>Doesn't check for duplicates. Use at your own risk.</p>
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.pts" class="structfield small-section-header"><a href="#structfield.pts" class="anchor field"></a><code>pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;</code></span><span id="structfield.length" class="structfield small-section-header"><a href="#structfield.length" class="anchor field"></a><code>length: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../src/geom/polyline.rs.html#29-807" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#30-60" title="goto source code">[src]</a></h4><h4 id="method.must_new" class="method"><code>pub fn <a href="#method.must_new" class="fnname">must_new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../src/geom/polyline.rs.html#61-63" title="goto source code">[src]</a></h4><h4 id="method.unchecked_new" class="method"><code>pub fn <a href="#method.unchecked_new" class="fnname">unchecked_new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../src/geom/polyline.rs.html#66-73" title="goto source code">[src]</a></h4><div class="docblock"><p>Doesn't check for duplicates. Use at your own risk.</p>
</div><h4 id="method.deduping_new" class="method"><code>pub fn <a href="#method.deduping_new" class="fnname">deduping_new</a>(pts: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#76-79" title="goto source code">[src]</a></h4><div class="docblock"><p>First dedupes adjacent points</p>
</div><h4 id="method.to_thick_ring" class="method"><code>pub fn <a href="#method.to_thick_ring" class="fnname">to_thick_ring</a>(&amp;self, width: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>) -&gt; <a class="struct" href="../geom/struct.Ring.html" title="struct geom::Ring">Ring</a></code><a class="srclink" href="../src/geom/polyline.rs.html#82-90" title="goto source code">[src]</a></h4><div class="docblock"><p>Like make_polygons, but make sure the points actually form a ring.</p>
</div><h4 id="method.to_thick_boundary" class="method"><code>pub fn <a href="#method.to_thick_boundary" class="fnname">to_thick_boundary</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;self_width: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;boundary_width: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#92-110" title="goto source code">[src]</a></h4><h4 id="method.reversed" class="method"><code>pub fn <a href="#method.reversed" class="fnname">reversed</a>(&amp;self) -&gt; <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../src/geom/polyline.rs.html#112-116" title="goto source code">[src]</a></h4><h4 id="method.extend" class="method"><code>pub fn <a href="#method.extend" class="fnname">extend</a>(self, other: <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#118-162" title="goto source code">[src]</a></h4><h4 id="method.must_extend" class="method"><code>pub fn <a href="#method.must_extend" class="fnname">must_extend</a>(self, other: <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../src/geom/polyline.rs.html#163-165" title="goto source code">[src]</a></h4><h4 id="method.must_push" class="method"><code>pub fn <a href="#method.must_push" class="fnname">must_push</a>(self, pt: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../src/geom/polyline.rs.html#166-169" title="goto source code">[src]</a></h4><h4 id="method.append" class="method"><code>pub fn <a href="#method.append" class="fnname">append</a>(first: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;, second: <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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<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/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#172-183" title="goto source code">[src]</a></h4><div class="docblock"><p>One or both args might be empty.</p>
@ -16,21 +16,21 @@ usually does).</p>
</div><h4 id="method.make_polygons_with_miter_threshold" class="method"><code>pub fn <a href="#method.make_polygons_with_miter_threshold" class="fnname">make_polygons_with_miter_threshold</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;miter_threshold: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><br>) -&gt; <a class="struct" href="../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a></code><a class="srclink" href="../src/geom/polyline.rs.html#456-481" title="goto source code">[src]</a></h4><div class="docblock"><p>The resulting polygon is manually triangulated and may not have a valid outer Ring (but it
usually does).</p>
</div><h4 id="method.exact_dashed_polygons" class="method"><code>pub fn <a href="#method.exact_dashed_polygons" class="fnname">exact_dashed_polygons</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_len: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_separation: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</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/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#483-507" title="goto source code">[src]</a></h4><h4 id="method.dashed_lines" class="method"><code>pub fn <a href="#method.dashed_lines" class="fnname">dashed_lines</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_len: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_separation: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</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/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#510-521" title="goto source code">[src]</a></h4><div class="docblock"><p>Don't draw the dashes too close to the ends.</p>
</div><h4 id="method.maybe_make_arrow" class="method"><code>pub fn <a href="#method.maybe_make_arrow" class="fnname">maybe_make_arrow</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;thickness: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cap: <a class="enum" href="../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#524-555" title="goto source code">[src]</a></h4><div class="docblock"><p>Fail if the length is too short.</p>
</div><h4 id="method.make_arrow" class="method"><code>pub fn <a href="#method.make_arrow" class="fnname">make_arrow</a>(&amp;self, thickness: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, cap: <a class="enum" href="../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</a>) -&gt; <a class="struct" href="../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a></code><a class="srclink" href="../src/geom/polyline.rs.html#558-565" title="goto source code">[src]</a></h4><div class="docblock"><p>If the length is too short, just give up and make the thick line</p>
</div><h4 id="method.make_double_arrow" class="method"><code>pub fn <a href="#method.make_double_arrow" class="fnname">make_double_arrow</a>(&amp;self, thickness: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, cap: <a class="enum" href="../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</a>) -&gt; <a class="struct" href="../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a></code><a class="srclink" href="../src/geom/polyline.rs.html#567-615" title="goto source code">[src]</a></h4><h4 id="method.dashed_arrow" class="method"><code>pub fn <a href="#method.dashed_arrow" class="fnname">dashed_arrow</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_len: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_separation: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cap: <a class="enum" href="../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</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/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#617-639" title="goto source code">[src]</a></h4><h4 id="method.intersection" class="method"><code>pub fn <a href="#method.intersection" class="fnname">intersection</a>(&amp;self, other: &amp;<a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>, <a class="struct" href="../geom/struct.Angle.html" title="struct geom::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#643-679" title="goto source code">[src]</a></h4><div class="docblock"><p>Also return the angle of the line where the hit was found</p>
</div><h4 id="method.intersection_infinite" class="method"><code>pub fn <a href="#method.intersection_infinite" class="fnname">intersection_infinite</a>(&amp;self, other: &amp;<a class="struct" href="../geom/struct.InfiniteLine.html" title="struct geom::InfiniteLine">InfiniteLine</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#682-689" title="goto source code">[src]</a></h4><h4 id="method.get_slice_ending_at" class="method"><code>pub fn <a href="#method.get_slice_ending_at" class="fnname">get_slice_ending_at</a>(&amp;self, pt: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#693-713" title="goto source code">[src]</a></h4><div class="docblock"><p>Panics if the pt is not on the polyline. Returns None if the point is the first point
</div><h4 id="method.maybe_make_arrow" class="method"><code>pub fn <a href="#method.maybe_make_arrow" class="fnname">maybe_make_arrow</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;thickness: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cap: <a class="enum" href="../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#524-554" title="goto source code">[src]</a></h4><div class="docblock"><p>Fail if the length is too short.</p>
</div><h4 id="method.make_arrow" class="method"><code>pub fn <a href="#method.make_arrow" class="fnname">make_arrow</a>(&amp;self, thickness: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, cap: <a class="enum" href="../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</a>) -&gt; <a class="struct" href="../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a></code><a class="srclink" href="../src/geom/polyline.rs.html#557-564" title="goto source code">[src]</a></h4><div class="docblock"><p>If the length is too short, just give up and make the thick line</p>
</div><h4 id="method.make_double_arrow" class="method"><code>pub fn <a href="#method.make_double_arrow" class="fnname">make_double_arrow</a>(&amp;self, thickness: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, cap: <a class="enum" href="../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</a>) -&gt; <a class="struct" href="../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</a></code><a class="srclink" href="../src/geom/polyline.rs.html#566-614" title="goto source code">[src]</a></h4><h4 id="method.dashed_arrow" class="method"><code>pub fn <a href="#method.dashed_arrow" class="fnname">dashed_arrow</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_len: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dash_separation: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cap: <a class="enum" href="../geom/enum.ArrowCap.html" title="enum geom::ArrowCap">ArrowCap</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/struct.Polygon.html" title="struct geom::Polygon">Polygon</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#616-638" title="goto source code">[src]</a></h4><h4 id="method.intersection" class="method"><code>pub fn <a href="#method.intersection" class="fnname">intersection</a>(&amp;self, other: &amp;<a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>, <a class="struct" href="../geom/struct.Angle.html" title="struct geom::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#642-678" title="goto source code">[src]</a></h4><div class="docblock"><p>Also return the angle of the line where the hit was found</p>
</div><h4 id="method.intersection_infinite" class="method"><code>pub fn <a href="#method.intersection_infinite" class="fnname">intersection_infinite</a>(&amp;self, other: &amp;<a class="struct" href="../geom/struct.InfiniteLine.html" title="struct geom::InfiniteLine">InfiniteLine</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#681-688" title="goto source code">[src]</a></h4><h4 id="method.get_slice_ending_at" class="method"><code>pub fn <a href="#method.get_slice_ending_at" class="fnname">get_slice_ending_at</a>(&amp;self, pt: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#692-712" title="goto source code">[src]</a></h4><div class="docblock"><p>Panics if the pt is not on the polyline. Returns None if the point is the first point
(meaning the slice is empty).</p>
</div><h4 id="method.get_slice_starting_at" class="method"><code>pub fn <a href="#method.get_slice_starting_at" class="fnname">get_slice_starting_at</a>(&amp;self, pt: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#716-734" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns None if the point is the last point.</p>
</div><h4 id="method.dist_along_of_point" class="method"><code>pub fn <a href="#method.dist_along_of_point" class="fnname">dist_along_of_point</a>(&amp;self, pt: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <a class="struct" href="../geom/struct.Angle.html" title="struct geom::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#736-746" title="goto source code">[src]</a></h4><h4 id="method.trim_to_endpts" class="method"><code>pub fn <a href="#method.trim_to_endpts" class="fnname">trim_to_endpts</a>(&amp;self, pt1: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>, pt2: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../src/geom/polyline.rs.html#748-756" title="goto source code">[src]</a></h4><h4 id="method.get_bounds" class="method"><code>pub fn <a href="#method.get_bounds" class="fnname">get_bounds</a>(&amp;self) -&gt; <a class="struct" href="../geom/struct.Bounds.html" title="struct geom::Bounds">Bounds</a></code><a class="srclink" href="../src/geom/polyline.rs.html#758-760" title="goto source code">[src]</a></h4><h4 id="method.extend_to_length" class="method"><code>pub fn <a href="#method.extend_to_length" class="fnname">extend_to_length</a>(&amp;self, min_len: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>) -&gt; <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../src/geom/polyline.rs.html#764-782" title="goto source code">[src]</a></h4><div class="docblock"><p>If the current line is at least this long, return it. Otherwise, extend the end of it,
</div><h4 id="method.get_slice_starting_at" class="method"><code>pub fn <a href="#method.get_slice_starting_at" class="fnname">get_slice_starting_at</a>(&amp;self, pt: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#715-733" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns None if the point is the last point.</p>
</div><h4 id="method.dist_along_of_point" class="method"><code>pub fn <a href="#method.dist_along_of_point" class="fnname">dist_along_of_point</a>(&amp;self, pt: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>, <a class="struct" href="../geom/struct.Angle.html" title="struct geom::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</code><a class="srclink" href="../src/geom/polyline.rs.html#735-745" title="goto source code">[src]</a></h4><h4 id="method.trim_to_endpts" class="method"><code>pub fn <a href="#method.trim_to_endpts" class="fnname">trim_to_endpts</a>(&amp;self, pt1: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>, pt2: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../src/geom/polyline.rs.html#747-755" title="goto source code">[src]</a></h4><h4 id="method.get_bounds" class="method"><code>pub fn <a href="#method.get_bounds" class="fnname">get_bounds</a>(&amp;self) -&gt; <a class="struct" href="../geom/struct.Bounds.html" title="struct geom::Bounds">Bounds</a></code><a class="srclink" href="../src/geom/polyline.rs.html#757-759" title="goto source code">[src]</a></h4><h4 id="method.extend_to_length" class="method"><code>pub fn <a href="#method.extend_to_length" class="fnname">extend_to_length</a>(&amp;self, min_len: <a class="struct" href="../geom/struct.Distance.html" title="struct geom::Distance">Distance</a>) -&gt; <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../src/geom/polyline.rs.html#763-781" title="goto source code">[src]</a></h4><div class="docblock"><p>If the current line is at least this long, return it. Otherwise, extend the end of it,
following the angle of the last line.</p>
</div><h4 id="method.to_geojson" class="method"><code>pub fn <a href="#method.to_geojson" class="fnname">to_geojson</a>(&amp;self, gps: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../geom/struct.GPSBounds.html" title="struct geom::GPSBounds">GPSBounds</a>&gt;) -&gt; Geometry</code><a class="srclink" href="../src/geom/polyline.rs.html#785-797" title="goto source code">[src]</a></h4><div class="docblock"><p>Produces a GeoJSON linestring, optionally mapping the world-space points back to GPS.</p>
</div><h4 id="method.project_pt" class="method"><code>pub fn <a href="#method.project_pt" class="fnname">project_pt</a>(&amp;self, query: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a></code><a class="srclink" href="../src/geom/polyline.rs.html#800-807" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the point on the polyline closest to the query.</p>
</div><h4 id="method.to_geojson" class="method"><code>pub fn <a href="#method.to_geojson" class="fnname">to_geojson</a>(&amp;self, gps: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../geom/struct.GPSBounds.html" title="struct geom::GPSBounds">GPSBounds</a>&gt;) -&gt; Geometry</code><a class="srclink" href="../src/geom/polyline.rs.html#784-796" title="goto source code">[src]</a></h4><div class="docblock"><p>Produces a GeoJSON linestring, optionally mapping the world-space points back to GPS.</p>
</div><h4 id="method.project_pt" class="method"><code>pub fn <a href="#method.project_pt" class="fnname">project_pt</a>(&amp;self, query: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -&gt; <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a></code><a class="srclink" href="../src/geom/polyline.rs.html#799-806" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the point on the polyline closest to the query.</p>
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a class="srclink" href="../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id="method.clone_from" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128-130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id="impl-Deserialize%3C%27de%3E" class="impl"><code class="in-band">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><a class="srclink" href="../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.deserialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="type" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></code><a class="srclink" href="../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></div><h3 id="impl-Display" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl-Display" class="anchor"></a><a class="srclink" href="../src/geom/polyline.rs.html#810-830" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-1" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/geom/polyline.rs.html#811-829" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id="impl-Display" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl-Display" class="anchor"></a><a class="srclink" href="../src/geom/polyline.rs.html#809-829" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-1" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/geom/polyline.rs.html#810-828" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id="impl-PartialEq%3CPolyLine%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>&gt; for <a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a></code><a href="#impl-PartialEq%3CPolyLine%3E" class="anchor"></a><a class="srclink" href="../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id="method.ne" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;<a class="struct" href="../geom/struct.PolyLine.html" title="struct geom::PolyLine">PolyLine</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/geom/polyline.rs.html#21" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>

View File

@ -1057,7 +1057,7 @@
<span class="ident">MapName</span>::<span class="ident">new</span>(<span class="string">&quot;krakow&quot;</span>, <span class="string">&quot;center&quot;</span>),
<span class="ident">MapName</span>::<span class="ident">seattle</span>(<span class="string">&quot;lakeslice&quot;</span>),
<span class="ident">MapName</span>::<span class="ident">seattle</span>(<span class="string">&quot;montlake&quot;</span>),
<span class="ident">MapName</span>::<span class="ident">new</span>(<span class="string">&quot;london&quot;</span>, <span class="string">&quot;southbank&quot;</span>),
<span class="ident">MapName</span>::<span class="ident">new</span>(<span class="string">&quot;cambridge&quot;</span>, <span class="string">&quot;trumpington&quot;</span>),
<span class="ident">MapName</span>::<span class="ident">seattle</span>(<span class="string">&quot;udistrict&quot;</span>),
],
));

View File

@ -122,7 +122,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.49.0 (e1884a8e3 2020-12-29)&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;Tue, 12 Jan 2021 20:23:16 +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;Tue, 12 Jan 2021 20:46:52 +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

@ -878,7 +878,6 @@
<span id="875">875</span>
<span id="876">876</span>
<span id="877">877</span>
<span id="878">878</span>
</pre><div class="example-wrap"><pre class="rust ">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">HashSet</span>;
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fmt</span>;
@ -1407,10 +1406,9 @@
<span class="kw">let</span> <span class="ident">head_size</span> <span class="op">=</span> <span class="ident">thickness</span> <span class="op">*</span> <span class="number">2.0</span>;
<span class="kw">let</span> <span class="ident">triangle_height</span> <span class="op">=</span> <span class="ident">head_size</span> <span class="op">/</span> <span class="number">2.0_f64</span>.<span class="ident">sqrt</span>();
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">length</span>() <span class="op">&lt;</span> <span class="ident">triangle_height</span> <span class="op">+</span> <span class="ident">EPSILON_DIST</span> {
<span class="kw">return</span> <span class="prelude-val">None</span>;
}
<span class="kw">let</span> <span class="ident">slice</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">exact_slice</span>(<span class="ident">Distance</span>::<span class="ident">ZERO</span>, <span class="self">self</span>.<span class="ident">length</span>() <span class="op">-</span> <span class="ident">triangle_height</span>);
<span class="kw">let</span> <span class="ident">slice</span> <span class="op">=</span> <span class="self">self</span>
.<span class="ident">maybe_exact_slice</span>(<span class="ident">Distance</span>::<span class="ident">ZERO</span>, <span class="self">self</span>.<span class="ident">length</span>() <span class="op">-</span> <span class="ident">triangle_height</span>)
.<span class="ident">ok</span>()<span class="question-mark">?</span>;
<span class="kw">let</span> <span class="ident">angle</span> <span class="op">=</span> <span class="ident">slice</span>.<span class="ident">last_pt</span>().<span class="ident">angle_to</span>(<span class="self">self</span>.<span class="ident">last_pt</span>());
<span class="kw">let</span> <span class="ident">corner1</span> <span class="op">=</span> <span class="self">self</span>