mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-01 02:33:54 +03:00
fd3b0e2a14
* abstutil: Fix compilation failure * map_gui: Fix compilation * traffic_signal_data: Fix compilation failure * map_model: Fix compilation failure * abstutil: Fix doctests * abstio: Fix most clippy warnings * abstutil: Fix most clippy warnings * collisions: Fix clippy warning * convert_osm: Fix clippy warnings * sim: Fix most clippy warnings * geom: Fix clippy warnings * kml: Fix clippy warnings * map_model: Fix most clippy warnings * fifteen_min: Fix clippy warnings * game: Fix many clippy warnings * Disable some noisy clippy warnings * headless: Fix clippy warnings * importer: Fix clippy warnings * map_editor: Fix clippy warnings * map_gui: Fix clippy warnings * osm_viewer: Fix clippy warnings * parking_mapper: Fix most clippy warnings * popdat: Fix clippy warnings * santa: Fix clippy warnings * sumo: Fix clippy warnings * traffic_seitan: Fix clippy warning * updater: Fix clippy warnings * widgetry: Fix clippy warnings * tests: Fix some clippy warnings * Fix compilation on stable Rust * Simplify unwrapping * Make use of `Entry` more readable * Fix formatting * Fix code that was broken in the refactoring * Apply cargo +stable fmt * Fix code that was broken in the refactoring, second try * Remove `Default` impls that are equivalent to `new` * Remove obsolete clippy wrapper * Avoid turbofish * Prefer `unwrap_or_else` over allowing `clippy::or_fun_call` * Remove redundant `into_iter` * Fix typo * Prefer `&& false` over commenting code out * Fix some clippy warnings Co-authored-by: Dustin Carlino <dabreegster@gmail.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
geom
This crate contains primitive types used by A/B Street. It's unclear if other
apps will have any use for this crate. In some cases, geom
just wraps much
more polished APIs, like rust-geo
. In others, it has its own geometric
algorithms, but they likely have many bugs and make use-case-driven assumptions.
So, be warned if you use this.
Contents
Many of the types are geometric: Pt2D
, Ring
, Distance
, Line
,
InfiniteLine
, FindClosest
, Circle
, Angle
, LonLat
, Bounds
,
GPSBounds
, PolyLine
, Polygon
, Triangle
.
Some involve time: Time
, Duration
, Speed
.
And there's also a Percent
wrapper and a Histogram
.