mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
deploy: 70d2d1115e
This commit is contained in:
parent
5e9ba6d65d
commit
e53b3594ae
@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-3c7487281029702d/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Fri, 04 Sep 2020 19:36:05 +0000";</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
|
||||
<!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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-3c7487281029702d/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Fri, 04 Sep 2020 20:29:35 +0000";</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>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="List of all items in this crate"><meta name="keywords" content="rust, rustlang, rust-lang"><title>List of all items in this crate</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="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../geom/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span>
|
||||
</span>
|
||||
<span class='in-band'>List of all items</span></h1><h3 id='Structs'>Structs</h3><ul class='structs docblock'><li><a href='struct.Angle.html'>Angle</a></li><li><a href='struct.Bounds.html'>Bounds</a></li><li><a href='struct.Circle.html'>Circle</a></li><li><a href='struct.Distance.html'>Distance</a></li><li><a href='struct.Duration.html'>Duration</a></li><li><a href='struct.FindClosest.html'>FindClosest</a></li><li><a href='struct.GPSBounds.html'>GPSBounds</a></li><li><a href='struct.HashablePt2D.html'>HashablePt2D</a></li><li><a href='struct.Histogram.html'>Histogram</a></li><li><a href='struct.InfiniteLine.html'>InfiniteLine</a></li><li><a href='struct.Line.html'>Line</a></li><li><a href='struct.LonLat.html'>LonLat</a></li><li><a href='struct.Percent.html'>Percent</a></li><li><a href='struct.PolyLine.html'>PolyLine</a></li><li><a href='struct.Polygon.html'>Polygon</a></li><li><a href='struct.Pt2D.html'>Pt2D</a></li><li><a href='struct.Ring.html'>Ring</a></li><li><a href='struct.Speed.html'>Speed</a></li><li><a href='struct.Time.html'>Time</a></li><li><a href='struct.Triangle.html'>Triangle</a></li><li><a href='angle/struct.Angle.html'>angle::Angle</a></li><li><a href='bounds/struct.Bounds.html'>bounds::Bounds</a></li><li><a href='bounds/struct.GPSBounds.html'>bounds::GPSBounds</a></li><li><a href='circle/struct.Circle.html'>circle::Circle</a></li><li><a href='distance/struct.Distance.html'>distance::Distance</a></li><li><a href='duration/struct.Duration.html'>duration::Duration</a></li><li><a href='find_closest/struct.FindClosest.html'>find_closest::FindClosest</a></li><li><a href='gps/struct.LonLat.html'>gps::LonLat</a></li><li><a href='line/struct.InfiniteLine.html'>line::InfiniteLine</a></li><li><a href='line/struct.Line.html'>line::Line</a></li><li><a href='percent/struct.Percent.html'>percent::Percent</a></li><li><a href='polygon/struct.Polygon.html'>polygon::Polygon</a></li><li><a href='polygon/struct.Triangle.html'>polygon::Triangle</a></li><li><a href='polyline/struct.PolyLine.html'>polyline::PolyLine</a></li><li><a href='pt/struct.HashablePt2D.html'>pt::HashablePt2D</a></li><li><a href='pt/struct.Pt2D.html'>pt::Pt2D</a></li><li><a href='ring/struct.Ring.html'>ring::Ring</a></li><li><a href='speed/struct.Speed.html'>speed::Speed</a></li><li><a href='stats/struct.Histogram.html'>stats::Histogram</a></li><li><a href='time/struct.Time.html'>time::Time</a></li></ul><h3 id='Enums'>Enums</h3><ul class='enums docblock'><li><a href='enum.ArrowCap.html'>ArrowCap</a></li><li><a href='enum.Statistic.html'>Statistic</a></li><li><a href='polyline/enum.ArrowCap.html'>polyline::ArrowCap</a></li><li><a href='stats/enum.Statistic.html'>stats::Statistic</a></li></ul><h3 id='Traits'>Traits</h3><ul class='traits docblock'><li><a href='trait.HgramValue.html'>HgramValue</a></li><li><a href='stats/trait.HgramValue.html'>stats::HgramValue</a></li></ul><h3 id='Functions'>Functions</h3><ul class='functions docblock'><li><a href='find_closest/fn.pts_to_line_string.html'>find_closest::pts_to_line_string</a></li><li><a href='line/fn.is_counter_clockwise.html'>line::is_counter_clockwise</a></li><li><a href='polygon/fn.from_geo.html'>polygon::from_geo</a></li><li><a href='polygon/fn.from_multi.html'>polygon::from_multi</a></li><li><a href='polygon/fn.to_geo.html'>polygon::to_geo</a></li><li><a href='polyline/fn.fix_angles.html'>polyline::fix_angles</a></li><li><a href='polyline/fn.to_set.html'>polyline::to_set</a></li><li><a href='fn.trim_f64.html'>trim_f64</a></li></ul><h3 id='Constants'>Constants</h3><ul class='constants docblock'><li><a href='constant.EPSILON_DIST.html'>EPSILON_DIST</a></li><li><a href='circle/constant.TRIANGLES_PER_CIRCLE.html'>circle::TRIANGLES_PER_CIRCLE</a></li><li><a href='polyline/constant.MITER_THRESHOLD.html'>polyline::MITER_THRESHOLD</a></li></ul></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>
|
||||
<span class='in-band'>List of all items</span></h1><h3 id='Structs'>Structs</h3><ul class='structs docblock'><li><a href='struct.Angle.html'>Angle</a></li><li><a href='struct.Bounds.html'>Bounds</a></li><li><a href='struct.Circle.html'>Circle</a></li><li><a href='struct.Distance.html'>Distance</a></li><li><a href='struct.Duration.html'>Duration</a></li><li><a href='struct.FindClosest.html'>FindClosest</a></li><li><a href='struct.GPSBounds.html'>GPSBounds</a></li><li><a href='struct.HashablePt2D.html'>HashablePt2D</a></li><li><a href='struct.Histogram.html'>Histogram</a></li><li><a href='struct.InfiniteLine.html'>InfiniteLine</a></li><li><a href='struct.Line.html'>Line</a></li><li><a href='struct.LonLat.html'>LonLat</a></li><li><a href='struct.Percent.html'>Percent</a></li><li><a href='struct.PolyLine.html'>PolyLine</a></li><li><a href='struct.Polygon.html'>Polygon</a></li><li><a href='struct.Pt2D.html'>Pt2D</a></li><li><a href='struct.Ring.html'>Ring</a></li><li><a href='struct.Speed.html'>Speed</a></li><li><a href='struct.Time.html'>Time</a></li><li><a href='struct.Triangle.html'>Triangle</a></li><li><a href='angle/struct.Angle.html'>angle::Angle</a></li><li><a href='bounds/struct.Bounds.html'>bounds::Bounds</a></li><li><a href='bounds/struct.GPSBounds.html'>bounds::GPSBounds</a></li><li><a href='circle/struct.Circle.html'>circle::Circle</a></li><li><a href='distance/struct.Distance.html'>distance::Distance</a></li><li><a href='duration/struct.Duration.html'>duration::Duration</a></li><li><a href='find_closest/struct.FindClosest.html'>find_closest::FindClosest</a></li><li><a href='gps/struct.LonLat.html'>gps::LonLat</a></li><li><a href='line/struct.InfiniteLine.html'>line::InfiniteLine</a></li><li><a href='line/struct.Line.html'>line::Line</a></li><li><a href='percent/struct.Percent.html'>percent::Percent</a></li><li><a href='polygon/struct.Polygon.html'>polygon::Polygon</a></li><li><a href='polygon/struct.Triangle.html'>polygon::Triangle</a></li><li><a href='polyline/struct.PolyLine.html'>polyline::PolyLine</a></li><li><a href='pt/struct.HashablePt2D.html'>pt::HashablePt2D</a></li><li><a href='pt/struct.Pt2D.html'>pt::Pt2D</a></li><li><a href='ring/struct.Ring.html'>ring::Ring</a></li><li><a href='speed/struct.Speed.html'>speed::Speed</a></li><li><a href='stats/struct.Histogram.html'>stats::Histogram</a></li><li><a href='time/struct.Time.html'>time::Time</a></li></ul><h3 id='Enums'>Enums</h3><ul class='enums docblock'><li><a href='enum.ArrowCap.html'>ArrowCap</a></li><li><a href='enum.Statistic.html'>Statistic</a></li><li><a href='polyline/enum.ArrowCap.html'>polyline::ArrowCap</a></li><li><a href='stats/enum.Statistic.html'>stats::Statistic</a></li></ul><h3 id='Traits'>Traits</h3><ul class='traits docblock'><li><a href='trait.HgramValue.html'>HgramValue</a></li><li><a href='stats/trait.HgramValue.html'>stats::HgramValue</a></li></ul><h3 id='Functions'>Functions</h3><ul class='functions docblock'><li><a href='find_closest/fn.pts_to_line_string.html'>find_closest::pts_to_line_string</a></li><li><a href='line/fn.is_counter_clockwise.html'>line::is_counter_clockwise</a></li><li><a href='polygon/fn.downsize.html'>polygon::downsize</a></li><li><a href='polygon/fn.from_geo.html'>polygon::from_geo</a></li><li><a href='polygon/fn.from_multi.html'>polygon::from_multi</a></li><li><a href='polygon/fn.to_geo.html'>polygon::to_geo</a></li><li><a href='polyline/fn.fix_angles.html'>polyline::fix_angles</a></li><li><a href='polyline/fn.to_set.html'>polyline::to_set</a></li><li><a href='fn.trim_f64.html'>trim_f64</a></li></ul><h3 id='Constants'>Constants</h3><ul class='constants docblock'><li><a href='constant.EPSILON_DIST.html'>EPSILON_DIST</a></li><li><a href='circle/constant.TRIANGLES_PER_CIRCLE.html'>circle::TRIANGLES_PER_CIRCLE</a></li><li><a href='polyline/constant.MITER_THRESHOLD.html'>polyline::MITER_THRESHOLD</a></li></ul></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>
|
1
rustdoc/geom/polygon/fn.downsize.html
Normal file
1
rustdoc/geom/polygon/fn.downsize.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `downsize` fn in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, downsize"><title>geom::polygon::downsize - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../geom/index.html'><div class='logo-container'><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'>polygon</a></p><script>window.sidebarCurrent = {name: 'downsize', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../src/geom/polygon.rs.html#484-494' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>geom</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="fn" href=''>downsize</a></span></h1><pre class='rust fn'>fn downsize(input: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</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>
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `from_geo` fn in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, from_geo"><title>geom::polygon::from_geo - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../geom/index.html'><div class='logo-container'><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'>polygon</a></p><script>window.sidebarCurrent = {name: 'from_geo', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../src/geom/polygon.rs.html#464-473' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>geom</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="fn" href=''>from_geo</a></span></h1><pre class='rust fn'>fn from_geo(p: Polygon<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>) -> <a class="struct" href="../../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</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>
|
||||
<!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 `from_geo` fn in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, from_geo"><title>geom::polygon::from_geo - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../geom/index.html'><div class='logo-container'><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'>polygon</a></p><script>window.sidebarCurrent = {name: 'from_geo', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../src/geom/polygon.rs.html#469-478' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>geom</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="fn" href=''>from_geo</a></span></h1><pre class='rust fn'>fn from_geo(p: Polygon<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>) -> <a class="struct" href="../../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</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>
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `from_multi` fn in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, from_multi"><title>geom::polygon::from_multi - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../geom/index.html'><div class='logo-container'><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'>polygon</a></p><script>window.sidebarCurrent = {name: 'from_multi', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../src/geom/polygon.rs.html#475-477' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>geom</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="fn" href=''>from_multi</a></span></h1><pre class='rust fn'>fn from_multi(multi: MultiPolygon<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</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>
|
||||
<!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 `from_multi` fn in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, from_multi"><title>geom::polygon::from_multi - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../geom/index.html'><div class='logo-container'><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'>polygon</a></p><script>window.sidebarCurrent = {name: 'from_multi', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../src/geom/polygon.rs.html#480-482' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>geom</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="fn" href=''>from_multi</a></span></h1><pre class='rust fn'>fn from_multi(multi: MultiPolygon<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../geom/struct.Polygon.html" title="struct geom::Polygon">Polygon</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>
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `to_geo` fn in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, to_geo"><title>geom::polygon::to_geo - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../geom/index.html'><div class='logo-container'><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'>polygon</a></p><script>window.sidebarCurrent = {name: 'to_geo', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../src/geom/polygon.rs.html#453-462' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>geom</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="fn" href=''>to_geo</a></span></h1><pre class='rust fn'>fn to_geo(pts: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>>) -> Polygon<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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>
|
||||
<!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_geo` fn in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, to_geo"><title>geom::polygon::to_geo - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../geom/index.html'><div class='logo-container'><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'>polygon</a></p><script>window.sidebarCurrent = {name: 'to_geo', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../src/geom/polygon.rs.html#458-467' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>geom</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="fn" href=''>to_geo</a></span></h1><pre class='rust fn'>fn to_geo(pts: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>>) -> Polygon<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `polygon` mod in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, polygon"><title>geom::polygon - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../geom/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module polygon</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>geom</a></p><script>window.sidebarCurrent = {name: 'polygon', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../src/geom/polygon.rs.html#1-477' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>geom</a>::<wbr><a class="mod" href=''>polygon</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<!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 `polygon` mod in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, polygon"><title>geom::polygon - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../geom/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module polygon</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>geom</a></p><script>window.sidebarCurrent = {name: 'polygon', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../src/geom/polygon.rs.html#1-494' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>geom</a>::<wbr><a class="mod" href=''>polygon</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.Polygon.html" title='geom::polygon::Polygon struct'>Polygon</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Triangle.html" title='geom::polygon::Triangle struct'>Triangle</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.from_geo.html" title='geom::polygon::from_geo fn'>from_geo</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.from_multi.html" title='geom::polygon::from_multi fn'>from_multi</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.to_geo.html" title='geom::polygon::to_geo fn'>to_geo</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "geom";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.downsize.html" title='geom::polygon::downsize fn'>downsize</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.from_geo.html" title='geom::polygon::from_geo fn'>from_geo</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.from_multi.html" title='geom::polygon::from_multi fn'>from_multi</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.to_geo.html" title='geom::polygon::to_geo fn'>to_geo</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "geom";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
initSidebarItems({"fn":[["from_geo",""],["from_multi",""],["to_geo",""]],"struct":[["Polygon",""],["Triangle",""]]});
|
||||
initSidebarItems({"fn":[["downsize",""],["from_geo",""],["from_multi",""],["to_geo",""]],"struct":[["Polygon",""],["Triangle",""]]});
|
File diff suppressed because one or more lines are too long
@ -1,11 +1,11 @@
|
||||
<!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 `Triangle` struct in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, Triangle"><title>geom::polygon::Triangle - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[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">☰</div><a href='../../geom/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Triangle</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.pt1">pt1</a><a href="#structfield.pt2">pt2</a><a href="#structfield.pt3">pt3</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.contains_pt">contains_pt</a><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../index.html'>geom</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'Triangle', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../src/geom/polygon.rs.html#414-418' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>geom</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="struct" href=''>Triangle</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct Triangle {
|
||||
<!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 `Triangle` struct in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, Triangle"><title>geom::polygon::Triangle - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[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">☰</div><a href='../../geom/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Triangle</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.pt1">pt1</a><a href="#structfield.pt2">pt2</a><a href="#structfield.pt3">pt3</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.contains_pt">contains_pt</a><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../index.html'>geom</a>::<wbr><a href='index.html'>polygon</a></p><script>window.sidebarCurrent = {name: 'Triangle', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../src/geom/polygon.rs.html#419-423' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>geom</a>::<wbr><a href='index.html'>polygon</a>::<wbr><a class="struct" href=''>Triangle</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct Triangle {
|
||||
pub pt1: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>,
|
||||
pub pt2: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>,
|
||||
pub pt3: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>,
|
||||
}</pre></div><h2 id='fields' class='fields small-section-header'>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.pt1" class="structfield small-section-header"><a href="#structfield.pt1" class="anchor field"></a><code>pt1: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a></code></span><span id="structfield.pt2" class="structfield small-section-header"><a href="#structfield.pt2" class="anchor field"></a><code>pt2: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a></code></span><span id="structfield.pt3" class="structfield small-section-header"><a href="#structfield.pt3" class="anchor field"></a><code>pt3: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</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.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/geom/polygon.rs.html#420-451' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code>pub(crate) fn <a href='#method.new' class='fnname'>new</a>(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>, pt3: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -> <a class="struct" href="../../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a class='srclink' href='../../src/geom/polygon.rs.html#421-423' title='goto source code'>[src]</a></h4><h4 id='method.contains_pt' class="method"><code>fn <a href='#method.contains_pt' class='fnname'>contains_pt</a>(&self, pt: <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.bool.html">bool</a></code><a class='srclink' href='../../src/geom/polygon.rs.html#425-450' title='goto source code'>[src]</a></h4></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.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../src/geom/polygon.rs.html#413' 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>(&self) -> <a class="struct" href="../../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a class='srclink' href='../../src/geom/polygon.rs.html#413' 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>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.pt1" class="structfield small-section-header"><a href="#structfield.pt1" class="anchor field"></a><code>pt1: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a></code></span><span id="structfield.pt2" class="structfield small-section-header"><a href="#structfield.pt2" class="anchor field"></a><code>pt2: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a></code></span><span id="structfield.pt3" class="structfield small-section-header"><a href="#structfield.pt3" class="anchor field"></a><code>pt3: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</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.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/geom/polygon.rs.html#425-456' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code>pub(crate) fn <a href='#method.new' class='fnname'>new</a>(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>, pt3: <a class="struct" href="../../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -> <a class="struct" href="../../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a class='srclink' href='../../src/geom/polygon.rs.html#426-428' title='goto source code'>[src]</a></h4><h4 id='method.contains_pt' class="method"><code>fn <a href='#method.contains_pt' class='fnname'>contains_pt</a>(&self, pt: <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.bool.html">bool</a></code><a class='srclink' href='../../src/geom/polygon.rs.html#430-455' title='goto source code'>[src]</a></h4></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.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../src/geom/polygon.rs.html#418' 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>(&self) -> <a class="struct" href="../../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a class='srclink' href='../../src/geom/polygon.rs.html#418' 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>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</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#131-133' 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.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../../src/geom/polygon.rs.html#413' 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>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <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/polygon.rs.html#413' 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-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.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../../src/geom/polygon.rs.html#418' 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>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <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/polygon.rs.html#418' 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></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,11 +1,11 @@
|
||||
<!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 `Triangle` struct in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, Triangle"><title>geom::Triangle - 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="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[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">☰</div><a href='../geom/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Triangle</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.pt1">pt1</a><a href="#structfield.pt2">pt2</a><a href="#structfield.pt3">pt3</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.contains_pt">contains_pt</a><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='index.html'>geom</a></p><script>window.sidebarCurrent = {name: 'Triangle', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../src/geom/polygon.rs.html#414-418' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>geom</a>::<wbr><a class="struct" href=''>Triangle</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct Triangle {
|
||||
<!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 `Triangle` struct in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, Triangle"><title>geom::Triangle - 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="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[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">☰</div><a href='../geom/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Triangle</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.pt1">pt1</a><a href="#structfield.pt2">pt2</a><a href="#structfield.pt3">pt3</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.contains_pt">contains_pt</a><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='index.html'>geom</a></p><script>window.sidebarCurrent = {name: 'Triangle', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../src/geom/polygon.rs.html#419-423' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>geom</a>::<wbr><a class="struct" href=''>Triangle</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct Triangle {
|
||||
pub pt1: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>,
|
||||
pub pt2: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>,
|
||||
pub pt3: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>,
|
||||
}</pre></div><h2 id='fields' class='fields small-section-header'>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.pt1" class="structfield small-section-header"><a href="#structfield.pt1" class="anchor field"></a><code>pt1: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a></code></span><span id="structfield.pt2" class="structfield small-section-header"><a href="#structfield.pt2" class="anchor field"></a><code>pt2: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a></code></span><span id="structfield.pt3" class="structfield small-section-header"><a href="#structfield.pt3" class="anchor field"></a><code>pt3: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</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.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/geom/polygon.rs.html#420-451' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code>pub(crate) fn <a href='#method.new' class='fnname'>new</a>(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>, pt3: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -> <a class="struct" href="../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a class='srclink' href='../src/geom/polygon.rs.html#421-423' title='goto source code'>[src]</a></h4><h4 id='method.contains_pt' class="method"><code>fn <a href='#method.contains_pt' class='fnname'>contains_pt</a>(&self, pt: <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.bool.html">bool</a></code><a class='srclink' href='../src/geom/polygon.rs.html#425-450' title='goto source code'>[src]</a></h4></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.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/geom/polygon.rs.html#413' 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>(&self) -> <a class="struct" href="../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a class='srclink' href='../src/geom/polygon.rs.html#413' 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>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.pt1" class="structfield small-section-header"><a href="#structfield.pt1" class="anchor field"></a><code>pt1: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a></code></span><span id="structfield.pt2" class="structfield small-section-header"><a href="#structfield.pt2" class="anchor field"></a><code>pt2: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a></code></span><span id="structfield.pt3" class="structfield small-section-header"><a href="#structfield.pt3" class="anchor field"></a><code>pt3: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</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.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/geom/polygon.rs.html#425-456' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code>pub(crate) fn <a href='#method.new' class='fnname'>new</a>(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>, pt3: <a class="struct" href="../geom/struct.Pt2D.html" title="struct geom::Pt2D">Pt2D</a>) -> <a class="struct" href="../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a class='srclink' href='../src/geom/polygon.rs.html#426-428' title='goto source code'>[src]</a></h4><h4 id='method.contains_pt' class="method"><code>fn <a href='#method.contains_pt' class='fnname'>contains_pt</a>(&self, pt: <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.bool.html">bool</a></code><a class='srclink' href='../src/geom/polygon.rs.html#430-455' title='goto source code'>[src]</a></h4></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.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/geom/polygon.rs.html#418' 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>(&self) -> <a class="struct" href="../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a class='srclink' href='../src/geom/polygon.rs.html#418' 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>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</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#131-133' 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.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/geom/polygon.rs.html#413' 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>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <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/polygon.rs.html#413' 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-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.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/geom/polygon.rs.html#418' 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>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <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/polygon.rs.html#418' 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></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../geom/struct.Triangle.html" title="struct geom::Triangle">Triangle</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
|
@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `map` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, map"><title>map_model::map - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_model/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module map</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class='location'><a href='../index.html'>map_model</a></p><script>window.sidebarCurrent = {name: 'map', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../src/map_model/map.rs.html#1-636' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>map_model</a>::<wbr><a class="mod" href=''>map</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<!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 `map` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, map"><title>map_model::map - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_model/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module map</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class='location'><a href='../index.html'>map_model</a></p><script>window.sidebarCurrent = {name: 'map', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><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'>−</span>]</a></span><a class='srclink' href='../../src/map_model/map.rs.html#1-640' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>map_model</a>::<wbr><a class="mod" href=''>map</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.MapConfig.html" title='map_model::map::MapConfig struct'>MapConfig</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "map_model";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -111,7 +111,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">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"rustdoc 1.46.0 (04488afe3 2020-08-24)"</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">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Fri, 04 Sep 2020 19:36:05 +0000"</span>;
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Fri, 04 Sep 2020 20:29:35 +0000"</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">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"x86_64"</span>;
|
||||
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>
|
||||
|
@ -475,19 +475,37 @@
|
||||
<span id="475">475</span>
|
||||
<span id="476">476</span>
|
||||
<span id="477">477</span>
|
||||
<span id="478">478</span>
|
||||
<span id="479">479</span>
|
||||
<span id="480">480</span>
|
||||
<span id="481">481</span>
|
||||
<span id="482">482</span>
|
||||
<span id="483">483</span>
|
||||
<span id="484">484</span>
|
||||
<span id="485">485</span>
|
||||
<span id="486">486</span>
|
||||
<span id="487">487</span>
|
||||
<span id="488">488</span>
|
||||
<span id="489">489</span>
|
||||
<span id="490">490</span>
|
||||
<span id="491">491</span>
|
||||
<span id="492">492</span>
|
||||
<span id="493">493</span>
|
||||
<span id="494">494</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">Angle</span>, <span class="ident">Bounds</span>, <span class="ident">Distance</span>, <span class="ident">HashablePt2D</span>, <span class="ident">PolyLine</span>, <span class="ident">Pt2D</span>, <span class="ident">Ring</span>};
|
||||
<span class="kw">use</span> <span class="ident">geo</span>::<span class="ident">algorithm</span>::<span class="ident">area</span>::<span class="ident">Area</span>;
|
||||
<span class="kw">use</span> <span class="ident">geo</span>::<span class="ident">algorithm</span>::<span class="ident">convexhull</span>::<span class="ident">ConvexHull</span>;
|
||||
<span class="kw">use</span> <span class="ident">geo_booleanop</span>::<span class="ident">boolean</span>::<span class="ident">BooleanOp</span>;
|
||||
<span class="kw">use</span> <span class="ident">serde</span>::{<span class="ident">Deserialize</span>, <span class="ident">Serialize</span>};
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">convert</span>::<span class="ident">TryFrom</span>;
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fmt</span>;
|
||||
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Serialize</span>, <span class="ident">Deserialize</span>, <span class="ident">Clone</span>, <span class="ident">Debug</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Polygon</span> {
|
||||
<span class="ident">points</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Pt2D</span><span class="op">></span>,
|
||||
<span class="comment">// Groups of three indices make up the triangles</span>
|
||||
<span class="ident">indices</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">usize</span><span class="op">></span>,
|
||||
<span class="ident">indices</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">u16</span><span class="op">></span>,
|
||||
|
||||
<span class="comment">// If the polygon has holes, explicitly store all the rings (the one outer and all of the</span>
|
||||
<span class="comment">// inner) so they can later be used to generate outlines and such. If the polygon has no holes,</span>
|
||||
@ -506,7 +524,7 @@
|
||||
<span class="ident">vertices</span>.<span class="ident">push</span>(<span class="ident">pt</span>.<span class="ident">x</span>());
|
||||
<span class="ident">vertices</span>.<span class="ident">push</span>(<span class="ident">pt</span>.<span class="ident">y</span>());
|
||||
}
|
||||
<span class="kw">let</span> <span class="ident">indices</span> <span class="op">=</span> <span class="ident">earcutr</span>::<span class="ident">earcut</span>(<span class="kw-2">&</span><span class="ident">vertices</span>, <span class="kw-2">&</span><span class="ident">Vec</span>::<span class="ident">new</span>(), <span class="number">2</span>);
|
||||
<span class="kw">let</span> <span class="ident">indices</span> <span class="op">=</span> <span class="ident">downsize</span>(<span class="ident">earcutr</span>::<span class="ident">earcut</span>(<span class="kw-2">&</span><span class="ident">vertices</span>, <span class="kw-2">&</span><span class="ident">Vec</span>::<span class="ident">new</span>(), <span class="number">2</span>));
|
||||
|
||||
<span class="ident">Polygon</span> {
|
||||
<span class="ident">points</span>: <span class="ident">orig_pts</span>.<span class="ident">clone</span>(),
|
||||
@ -527,7 +545,7 @@
|
||||
})
|
||||
.<span class="ident">collect</span>();
|
||||
<span class="kw">let</span> (<span class="ident">vertices</span>, <span class="ident">holes</span>, <span class="ident">dims</span>) <span class="op">=</span> <span class="ident">earcutr</span>::<span class="ident">flatten</span>(<span class="kw-2">&</span><span class="ident">geojson_style</span>);
|
||||
<span class="kw">let</span> <span class="ident">indices</span> <span class="op">=</span> <span class="ident">earcutr</span>::<span class="ident">earcut</span>(<span class="kw-2">&</span><span class="ident">vertices</span>, <span class="kw-2">&</span><span class="ident">holes</span>, <span class="ident">dims</span>);
|
||||
<span class="kw">let</span> <span class="ident">indices</span> <span class="op">=</span> <span class="ident">downsize</span>(<span class="ident">earcutr</span>::<span class="ident">earcut</span>(<span class="kw-2">&</span><span class="ident">vertices</span>, <span class="kw-2">&</span><span class="ident">holes</span>, <span class="ident">dims</span>));
|
||||
|
||||
<span class="ident">Polygon</span> {
|
||||
<span class="ident">points</span>: <span class="ident">vertices</span>
|
||||
@ -542,7 +560,7 @@
|
||||
<span class="comment">// TODO Doesn't remember rings yet</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">from_geojson</span>(<span class="ident">raw</span>: <span class="kw-2">&</span><span class="ident">Vec</span><span class="op"><</span><span class="ident">Vec</span><span class="op"><</span><span class="ident">Vec</span><span class="op"><</span><span class="ident">f64</span><span class="op">></span><span class="op">></span><span class="op">></span>) <span class="op">-</span><span class="op">></span> <span class="ident">Polygon</span> {
|
||||
<span class="kw">let</span> (<span class="ident">vertices</span>, <span class="ident">holes</span>, <span class="ident">dims</span>) <span class="op">=</span> <span class="ident">earcutr</span>::<span class="ident">flatten</span>(<span class="ident">raw</span>);
|
||||
<span class="kw">let</span> <span class="ident">indices</span> <span class="op">=</span> <span class="ident">earcutr</span>::<span class="ident">earcut</span>(<span class="kw-2">&</span><span class="ident">vertices</span>, <span class="kw-2">&</span><span class="ident">holes</span>, <span class="ident">dims</span>);
|
||||
<span class="kw">let</span> <span class="ident">indices</span> <span class="op">=</span> <span class="ident">downsize</span>(<span class="ident">earcutr</span>::<span class="ident">earcut</span>(<span class="kw-2">&</span><span class="ident">vertices</span>, <span class="kw-2">&</span><span class="ident">holes</span>, <span class="ident">dims</span>));
|
||||
<span class="ident">Polygon</span> {
|
||||
<span class="ident">points</span>: <span class="ident">vertices</span>
|
||||
.<span class="ident">chunks</span>(<span class="number">2</span>)
|
||||
@ -559,7 +577,7 @@
|
||||
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">indices</span>.<span class="ident">len</span>() <span class="op">%</span> <span class="number">3</span> <span class="op">=</span><span class="op">=</span> <span class="number">0</span>);
|
||||
<span class="ident">Polygon</span> {
|
||||
<span class="ident">points</span>,
|
||||
<span class="ident">indices</span>,
|
||||
<span class="ident">indices</span>: <span class="ident">downsize</span>(<span class="ident">indices</span>),
|
||||
<span class="ident">rings</span>: <span class="prelude-val">None</span>,
|
||||
}
|
||||
}
|
||||
@ -576,15 +594,15 @@
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">triangles</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Triangle</span><span class="op">></span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
<span class="kw">for</span> <span class="ident">slice</span> <span class="kw">in</span> <span class="self">self</span>.<span class="ident">indices</span>.<span class="ident">chunks_exact</span>(<span class="number">3</span>) {
|
||||
<span class="ident">triangles</span>.<span class="ident">push</span>(<span class="ident">Triangle</span>::<span class="ident">new</span>(
|
||||
<span class="self">self</span>.<span class="ident">points</span>[<span class="ident">slice</span>[<span class="number">0</span>]],
|
||||
<span class="self">self</span>.<span class="ident">points</span>[<span class="ident">slice</span>[<span class="number">1</span>]],
|
||||
<span class="self">self</span>.<span class="ident">points</span>[<span class="ident">slice</span>[<span class="number">2</span>]],
|
||||
<span class="self">self</span>.<span class="ident">points</span>[<span class="ident">slice</span>[<span class="number">0</span>] <span class="kw">as</span> <span class="ident">usize</span>],
|
||||
<span class="self">self</span>.<span class="ident">points</span>[<span class="ident">slice</span>[<span class="number">1</span>] <span class="kw">as</span> <span class="ident">usize</span>],
|
||||
<span class="self">self</span>.<span class="ident">points</span>[<span class="ident">slice</span>[<span class="number">2</span>] <span class="kw">as</span> <span class="ident">usize</span>],
|
||||
));
|
||||
}
|
||||
<span class="ident">triangles</span>
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">raw_for_rendering</span>(<span class="kw-2">&</span><span class="self">self</span>) <span class="op">-</span><span class="op">></span> (<span class="kw-2">&</span><span class="ident">Vec</span><span class="op"><</span><span class="ident">Pt2D</span><span class="op">></span>, <span class="kw-2">&</span><span class="ident">Vec</span><span class="op"><</span><span class="ident">usize</span><span class="op">></span>) {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">raw_for_rendering</span>(<span class="kw-2">&</span><span class="self">self</span>) <span class="op">-</span><span class="op">></span> (<span class="kw-2">&</span><span class="ident">Vec</span><span class="op"><</span><span class="ident">Pt2D</span><span class="op">></span>, <span class="kw-2">&</span><span class="ident">Vec</span><span class="op"><</span><span class="ident">u16</span><span class="op">></span>) {
|
||||
(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">points</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">indices</span>)
|
||||
}
|
||||
|
||||
@ -745,12 +763,16 @@
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">union</span>(<span class="self">self</span>, <span class="ident">other</span>: <span class="ident">Polygon</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Polygon</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">points</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">points</span>;
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">indices</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">indices</span>;
|
||||
<span class="kw">let</span> <span class="ident">offset</span> <span class="op">=</span> <span class="ident">points</span>.<span class="ident">len</span>();
|
||||
<span class="kw">let</span> <span class="ident">offset</span> <span class="op">=</span> <span class="ident">points</span>.<span class="ident">len</span>() <span class="kw">as</span> <span class="ident">u16</span>;
|
||||
<span class="ident">points</span>.<span class="ident">extend</span>(<span class="ident">other</span>.<span class="ident">points</span>);
|
||||
<span class="kw">for</span> <span class="ident">idx</span> <span class="kw">in</span> <span class="ident">other</span>.<span class="ident">indices</span> {
|
||||
<span class="ident">indices</span>.<span class="ident">push</span>(<span class="ident">offset</span> <span class="op">+</span> <span class="ident">idx</span>);
|
||||
}
|
||||
<span class="ident">Polygon</span>::<span class="ident">precomputed</span>(<span class="ident">points</span>, <span class="ident">indices</span>)
|
||||
<span class="ident">Polygon</span> {
|
||||
<span class="ident">points</span>,
|
||||
<span class="ident">indices</span>,
|
||||
<span class="ident">rings</span>: <span class="prelude-val">None</span>,
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">union_all</span>(<span class="kw-2">mut</span> <span class="ident">list</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Polygon</span><span class="op">></span>) <span class="op">-</span><span class="op">></span> <span class="ident">Polygon</span> {
|
||||
@ -953,5 +975,17 @@
|
||||
<span class="kw">fn</span> <span class="ident">from_multi</span>(<span class="ident">multi</span>: <span class="ident">geo</span>::<span class="ident">MultiPolygon</span><span class="op"><</span><span class="ident">f64</span><span class="op">></span>) <span class="op">-</span><span class="op">></span> <span class="ident">Vec</span><span class="op"><</span><span class="ident">Polygon</span><span class="op">></span> {
|
||||
<span class="ident">multi</span>.<span class="ident">into_iter</span>().<span class="ident">map</span>(<span class="ident">from_geo</span>).<span class="ident">collect</span>()
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">downsize</span>(<span class="ident">input</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">usize</span><span class="op">></span>) <span class="op">-</span><span class="op">></span> <span class="ident">Vec</span><span class="op"><</span><span class="ident">u16</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">output</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
<span class="kw">for</span> <span class="ident">x</span> <span class="kw">in</span> <span class="ident">input</span> {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">x</span>) <span class="op">=</span> <span class="ident">u16</span>::<span class="ident">try_from</span>(<span class="ident">x</span>) {
|
||||
<span class="ident">output</span>.<span class="ident">push</span>(<span class="ident">x</span>);
|
||||
} <span class="kw">else</span> {
|
||||
<span class="macro">panic</span><span class="macro">!</span>(<span class="string">"{} can't fit in u16, some polygon is too huge"</span>, <span class="ident">x</span>);
|
||||
}
|
||||
}
|
||||
<span class="ident">output</span>
|
||||
}
|
||||
</pre></div>
|
||||
</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 src="../../source-script.js"></script><script src="../../source-files.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -634,6 +634,10 @@
|
||||
<span id="634">634</span>
|
||||
<span id="635">635</span>
|
||||
<span id="636">636</span>
|
||||
<span id="637">637</span>
|
||||
<span id="638">638</span>
|
||||
<span id="639">639</span>
|
||||
<span id="640">640</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">raw</span>::{<span class="ident">DrivingSide</span>, <span class="ident">OriginalRoad</span>, <span class="ident">RawMap</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{
|
||||
@ -664,6 +668,10 @@
|
||||
|
||||
<span class="kw">if</span> <span class="bool-val">false</span> {
|
||||
<span class="kw">use</span> <span class="ident">abstutil</span>::{<span class="ident">prettyprint_usize</span>, <span class="ident">serialized_size_bytes</span>};
|
||||
<span class="macro">println</span><span class="macro">!</span>(
|
||||
<span class="string">"Total map size: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">serialized_size_bytes</span>(<span class="kw-2">&</span><span class="ident">map</span>))
|
||||
);
|
||||
<span class="macro">println</span><span class="macro">!</span>(
|
||||
<span class="string">"- {} roads: {} bytes"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">map</span>.<span class="ident">roads</span>.<span class="ident">len</span>()),
|
||||
|
@ -567,7 +567,7 @@
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">indices</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">u32</span><span class="op">></span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
|
||||
<span class="kw">for</span> (<span class="ident">color</span>, <span class="ident">poly</span>) <span class="kw">in</span> <span class="ident">batch</span>.<span class="ident">consume</span>() {
|
||||
<span class="kw">let</span> <span class="ident">idx_offset</span> <span class="op">=</span> <span class="ident">vertices</span>.<span class="ident">len</span>();
|
||||
<span class="kw">let</span> <span class="ident">idx_offset</span> <span class="op">=</span> <span class="ident">vertices</span>.<span class="ident">len</span>() <span class="kw">as</span> <span class="ident">u32</span>;
|
||||
<span class="kw">let</span> (<span class="ident">pts</span>, <span class="ident">raw_indices</span>) <span class="op">=</span> <span class="ident">poly</span>.<span class="ident">raw_for_rendering</span>();
|
||||
<span class="kw">for</span> <span class="ident">pt</span> <span class="kw">in</span> <span class="ident">pts</span> {
|
||||
<span class="kw">let</span> <span class="ident">style</span> <span class="op">=</span> <span class="ident">color</span>.<span class="ident">style</span>(<span class="kw-2">*</span><span class="ident">pt</span>);
|
||||
@ -581,7 +581,7 @@
|
||||
]);
|
||||
}
|
||||
<span class="kw">for</span> <span class="ident">idx</span> <span class="kw">in</span> <span class="ident">raw_indices</span> {
|
||||
<span class="ident">indices</span>.<span class="ident">push</span>((<span class="ident">idx_offset</span> <span class="op">+</span> <span class="kw-2">*</span><span class="ident">idx</span>) <span class="kw">as</span> <span class="ident">u32</span>);
|
||||
<span class="ident">indices</span>.<span class="ident">push</span>(<span class="ident">idx_offset</span> <span class="op">+</span> (<span class="kw-2">*</span><span class="ident">idx</span> <span class="kw">as</span> <span class="ident">u32</span>));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user