<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="API documentation for the Rust `geom` crate."><metaname="keywords"content="rust, rustlang, rust-lang, geom"><title>geom - Rust</title><linkrel="stylesheet"type="text/css"href="../normalize.css"><linkrel="stylesheet"type="text/css"href="../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../light.css"id="themeStyle"><linkrel="stylesheet"type="text/css"href="../dark.css"disabled><linkrel="stylesheet"type="text/css"href="../ayu.css"disabled><scriptid="default-settings"></script><scriptsrc="../storage.js"></script><scriptsrc="../crates.js"></script><noscript><linkrel="stylesheet"href="../noscript.css"></noscript><linkrel="icon"type="image/svg+xml"href="../favicon.svg"><linkrel="alternate icon"type="image/png"href="../favicon-16x16.png"><linkrel="alternate icon"type="image/png"href="../favicon-32x32.png"><styletype="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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="sidebar"><divclass="sidebar-menu"role="button">☰</div><ahref='../geom/index.html'><divclass='logo-container rust-logo'><imgsrc='../rust-logo.png'alt='logo'></div></a><h2class="location">Crate geom</h2><divclass="block version"><divclass="narrow-helper"></div><p>Version 0.1.0</p></div><divclass="sidebar-elems"><aid="all-types"href="all.html"><p>See all geom's items</p></a><divclass="block items"><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><divid="sidebar-vars"data-name="geom"data-ty="mod"data-relpath=""></div><scriptdefersrc="sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"title="themes"><imgwidth="18"height="18"alt="Pick another theme!"src="../brush.svg"></button><divid="theme-choices"role="menu"></div></div><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"disabledautocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><buttontype="button"id="help-button"title="help">?</button><aid="settings-menu"href="../settings.html"title="settings"><imgwidth="18"height="18"alt="Change settings"src="../wheel.svg"></a></div></form></nav><sectionid="main"class="content"><h1class="fqn"><spanclass="in-band">Crate <aclass="mod"href="#">geom</a><buttonid="copy-path"onclick="copy_path(this)"title="copy path"><imgsrc="../clipboard.svg"width="19"height="18"alt="Copy item import"title="Copy item import to clipboard"></button></span><spanclass="out-of-band"><spanid="render-detail"><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass="inner">−</span>]</a></span><aclass="srclink"href="../src/geom/lib.rs.html#1-139"title="goto source code">[src]</a></span></h1><h2id="modules"class="section-header"><ahref="#modules">Modules</a></h2>
<divclass="item-table"><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><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><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><divclass="item-left module-item"><aclass="struct"href="struct.CornerRadii.html"title="geom::CornerRadii struct">CornerRadii</a></div><divclass="item-right docblock-short"></div><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><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><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><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><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><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><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><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><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><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><divclass="item-left module-item"><aclass="struct"href="struct.Triangle.html"title="geom::Triangle struct">Triangle</a></div><divclass="item-right docblock-short"></div><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-left module-item"><aclass="fn"href="fn.deserialize_f64.html"title="geom::deserialize_f64 fn">deserialize_f64</a></div><divclass="item-right docblock-short"><p>Deserializes a trimmed <code>f64</code> from an <code>i32</code>.</p>
</div><divclass="item-left module-item"><aclass="fn"href="fn.serialize_f64.html"title="geom::serialize_f64 fn">serialize_f64</a></div><divclass="item-right docblock-short"><p>Serializes a trimmed <code>f64</code> as an <code>i32</code> to save space.</p>
</div><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