<noscript><linkrel="stylesheet"href="../noscript.css"></noscript><linkrel="alternate icon"type="image/png"href="../favicon-16x16.png"><linkrel="alternate icon"type="image/png"href="../favicon-32x32.png"><linkrel="icon"type="image/svg+xml"href="../favicon.svg"></head><bodyclass="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle">☰</button><aclass="sidebar-logo"href="../geom/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../rust-logo.svg"alt="logo"></div>
</a><h2class="location"><ahref="#">Crate geom</a></h2><divclass="sidebar-elems"><divclass="block"><ul><liclass="version">Version 0.1.0</li><li><aid="all-types"href="all.html">All Items</a></li></div></ul><section><divclass="block"><ul><li><ahref="#modules">Modules</a></li><li><ahref="#structs">Structs</a></li><li><ahref="#enums">Enums</a></li><li><ahref="#constants">Constants</a></li><li><ahref="#traits">Traits</a></li><li><ahref="#functions">Functions</a></li></ul></div></section><divid="sidebar-vars"data-name="geom"data-ty="mod"data-relpath=""></div><scriptdefersrc="sidebar-items.js"></script></div></nav><main><divclass="width-limiter"><divclass="sub-container"><aclass="sub-logo-container"href="../geom/index.html"><imgclass="rust-logo"src="../rust-logo.svg"alt="logo"></a><navclass="sub"><divclass="theme-picker hidden"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"title="themes"><imgwidth="22"height="22"alt="Pick another theme!"src="../brush.svg"></button><divid="theme-choices"role="menu"></div></div><formclass="search-form"><divclass="search-container"><span></span><inputclass="search-input"name="search"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"><buttontype="button"id="help-button"title="help">?</button><aid="settings-menu"href="../settings.html"title="settings"><imgwidth="22"height="22"alt="Change settings"src="../wheel.svg"></a></div></form></nav></div><sectionid="main-content"class="content"><divclass="main-heading">
<h1class="fqn"><spanclass="in-band">Crate <aclass="mod"href="#">geom</a><buttonid="copy-path"onclick="copy_path(this)"title="Copy item path to clipboard"><imgsrc="../clipboard.svg"width="19"height="18"alt="Copy item path"></button></span></h1><spanclass="out-of-band"><aclass="srclink"href="../src/geom/lib.rs.html#1-140">source</a> · <aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass="inner">−</span>]</a></span></div><h2id="modules"class="small-section-header"><ahref="#modules">Modules</a></h2>
<divclass="item-table"><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="angle/index.html"title="geom::angle mod">angle</a><spantitle="Restricted Visibility"> 🔒</span></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="bounds/index.html"title="geom::bounds mod">bounds</a><spantitle="Restricted Visibility"> 🔒</span></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="circle/index.html"title="geom::circle mod">circle</a><spantitle="Restricted Visibility"> 🔒</span></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="mod"href="conversions/index.html"title="geom::conversions mod">conversions</a><spantitle="Restricted Visibility"> 🔒</span></div><divclass="item-right docblock-short"><p>Conversions between this crate and <code>geo</code>. Long-term, we should think about directly using <code>geo</code>
<divclass="item-table"><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.Angle.html"title="geom::Angle struct">Angle</a></div><divclass="item-right docblock-short"><p>An angle, stored in radians.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.Bounds.html"title="geom::Bounds struct">Bounds</a></div><divclass="item-right docblock-short"><p>Represents a rectangular boundary of <code>Pt2D</code> points.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.Circle.html"title="geom::Circle struct">Circle</a></div><divclass="item-right docblock-short"><p>A circle, defined by a center and radius.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.CornerRadii.html"title="geom::CornerRadii struct">CornerRadii</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.Distance.html"title="geom::Distance struct">Distance</a></div><divclass="item-right docblock-short"><p>A distance, in meters. Can be negative.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.Duration.html"title="geom::Duration struct">Duration</a></div><divclass="item-right docblock-short"><p>A duration, in seconds. Can be negative.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.FindClosest.html"title="geom::FindClosest struct">FindClosest</a></div><divclass="item-right docblock-short"><p>A quad-tree to quickly find the closest points to some polylines.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.GPSBounds.html"title="geom::GPSBounds struct">GPSBounds</a></div><divclass="item-right docblock-short"><p>Represents a rectangular boundary of <code>LonLat</code> points. After building one of these, <code>LonLat</code>s
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.HashablePt2D.html"title="geom::HashablePt2D struct">HashablePt2D</a></div><divclass="item-right docblock-short"><p>This represents world space, NOT LonLat.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.LonLat.html"title="geom::LonLat struct">LonLat</a></div><divclass="item-right docblock-short"><p>Represents a (longitude, latitude) point.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.Percent.html"title="geom::Percent struct">Percent</a></div><divclass="item-right docblock-short"><p>Most of the time, [0, 1]. But some callers may go outside this range.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.Ring.html"title="geom::Ring struct">Ring</a></div><divclass="item-right docblock-short"><p>Maybe a misnomer, but like a PolyLine, but closed.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.Speed.html"title="geom::Speed struct">Speed</a></div><divclass="item-right docblock-short"><p>In meters per second. Can be negative.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.Time.html"title="geom::Time struct">Time</a></div><divclass="item-right docblock-short"><p>In seconds since midnight. Can’t be negative.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.Triangle.html"title="geom::Triangle struct">Triangle</a></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left module-item"><aclass="struct"href="struct.UnitFmt.html"title="geom::UnitFmt struct">UnitFmt</a></div><divclass="item-right docblock-short"><p>Specifies how to stringify different geom objects.</p>
<divclass="item-table"><divclass="item-row"><divclass="item-left module-item"><aclass="fn"href="fn.deserialize_f64.html"title="geom::deserialize_f64 fn">deserialize_f64</a><spantitle="Restricted Visibility"> 🔒</span></div><divclass="item-right docblock-short"><p>Deserializes a trimmed <code>f64</code> from an <code>i32</code>.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="fn"href="fn.serialize_f64.html"title="geom::serialize_f64 fn">serialize_f64</a><spantitle="Restricted Visibility"> 🔒</span></div><divclass="item-right docblock-short"><p>Serializes a trimmed <code>f64</code> as an <code>i32</code> to save space.</p>
</div></div><divclass="item-row"><divclass="item-left module-item"><aclass="fn"href="fn.trim_f64.html"title="geom::trim_f64 fn">trim_f64</a></div><divclass="item-right docblock-short"><p>Reduce the precision of an f64. This helps ensure serialization is idempotent (everything is