abstreet/rustdoc/geom/index.html
2021-05-17 17:48:01 +00:00

32 lines
12 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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 `geom` crate."><meta name="keywords" content="rust, rustlang, rust-lang, geom"><title>geom - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../geom/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Crate geom</p><div class="block version"><p>Version 0.1.0</p></div><div class="sidebar-elems"><a id="all-types" href="all.html"><p>See all geom's items</p></a><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"></p><div id="sidebar-vars" data-name="geom" data-ty="mod" data-relpath="../"></div></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Crate <a class="mod" href="">geom</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../src/geom/lib.rs.html#1-94" title="goto source code">[src]</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
<table><tr class="module-item"><td><a class="mod" href="angle/index.html" title="geom::angle mod">angle</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="bounds/index.html" title="geom::bounds mod">bounds</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="circle/index.html" title="geom::circle mod">circle</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="distance/index.html" title="geom::distance mod">distance</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="duration/index.html" title="geom::duration mod">duration</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="find_closest/index.html" title="geom::find_closest mod">find_closest</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="gps/index.html" title="geom::gps mod">gps</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="line/index.html" title="geom::line mod">line</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="percent/index.html" title="geom::percent mod">percent</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="polygon/index.html" title="geom::polygon mod">polygon</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="polyline/index.html" title="geom::polyline mod">polyline</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="pt/index.html" title="geom::pt mod">pt</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="ring/index.html" title="geom::ring mod">ring</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="speed/index.html" title="geom::speed mod">speed</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="stats/index.html" title="geom::stats mod">stats</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="time/index.html" title="geom::time mod">time</a></td><td class="docblock-short"></td></tr></table><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
<table><tr class="module-item"><td><a class="struct" href="struct.Angle.html" title="geom::Angle struct">Angle</a></td><td class="docblock-short"><p>An angle, stored in radians.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Bounds.html" title="geom::Bounds struct">Bounds</a></td><td class="docblock-short"><p>Represents a rectangular boundary of <code>Pt2D</code> points.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Circle.html" title="geom::Circle struct">Circle</a></td><td class="docblock-short"><p>A circle, defined by a center and radius.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.CornerRadii.html" title="geom::CornerRadii struct">CornerRadii</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Distance.html" title="geom::Distance struct">Distance</a></td><td class="docblock-short"><p>A distance, in meters. Can be negative.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Duration.html" title="geom::Duration struct">Duration</a></td><td class="docblock-short"><p>A duration, in seconds. Can be negative.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.FindClosest.html" title="geom::FindClosest struct">FindClosest</a></td><td class="docblock-short"><p>A quad-tree to quickly find the closest points to some polylines.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.GPSBounds.html" title="geom::GPSBounds struct">GPSBounds</a></td><td class="docblock-short"><p>Represents a rectangular boundary of <code>LonLat</code> points. After building one of these, <code>LonLat</code>s
can be transformed into <code>Pt2D</code>s, treating the top-left of the boundary as (0, 0), and growing
to the right and down (screen-drawing order, not Cartesian) in meters.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.HashablePt2D.html" title="geom::HashablePt2D struct">HashablePt2D</a></td><td class="docblock-short"><p>This represents world space, NOT LonLat.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Histogram.html" title="geom::Histogram struct">Histogram</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.InfiniteLine.html" title="geom::InfiniteLine struct">InfiniteLine</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Line.html" title="geom::Line struct">Line</a></td><td class="docblock-short"><p>A line segment.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.LonLat.html" title="geom::LonLat struct">LonLat</a></td><td class="docblock-short"><p>Represents a (longitude, latitude) point.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Percent.html" title="geom::Percent struct">Percent</a></td><td class="docblock-short"><p>Most of the time, [0, 1]. But some callers may go outside this range.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.PolyLine.html" title="geom::PolyLine struct">PolyLine</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Polygon.html" title="geom::Polygon struct">Polygon</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Pt2D.html" title="geom::Pt2D struct">Pt2D</a></td><td class="docblock-short"><p>This represents world-space in meters.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Ring.html" title="geom::Ring struct">Ring</a></td><td class="docblock-short"><p>Maybe a misnomer, but like a PolyLine, but closed.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Speed.html" title="geom::Speed struct">Speed</a></td><td class="docblock-short"><p>In meters per second. Can be negative.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Time.html" title="geom::Time struct">Time</a></td><td class="docblock-short"><p>In seconds since midnight. Cant be negative.</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Triangle.html" title="geom::Triangle struct">Triangle</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.UnitFmt.html" title="geom::UnitFmt struct">UnitFmt</a></td><td class="docblock-short"><p>Specifies how to stringify different geom objects.</p>
</td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
<table><tr class="module-item"><td><a class="enum" href="enum.ArrowCap.html" title="geom::ArrowCap enum">ArrowCap</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="enum" href="enum.Statistic.html" title="geom::Statistic enum">Statistic</a></td><td class="docblock-short"></td></tr></table><h2 id="constants" class="section-header"><a href="#constants">Constants</a></h2>
<table><tr class="module-item"><td><a class="constant" href="constant.EPSILON_DIST.html" title="geom::EPSILON_DIST constant">EPSILON_DIST</a></td><td class="docblock-short"></td></tr></table><h2 id="traits" class="section-header"><a href="#traits">Traits</a></h2>
<table><tr class="module-item"><td><a class="trait" href="trait.HgramValue.html" title="geom::HgramValue trait">HgramValue</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.trim_f64.html" title="geom::trim_f64 fn">trim_f64</a></td><td class="docblock-short"><p>Reduce the precision of an f64. This helps ensure serialization is idempotent (everything is
exacly the same before and after saving/loading). Ideally wed use some kind of proper
fixed-precision type instead of f64.</p>
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="geom" data-search-js="../search-index.js"></div>
<script src="../main.js"></script></body></html>