abstreet/geom
Dustin Carlino d98f18bb18 Create a more careful API for handling one-way roads everywhere, in
preparation for modifying them in the LTN tool.

Regenerated everything. This had some effects on overlapping road
shrinking, mostly positive. Screenshot diffs all changed, since I
switched laptops again.
2022-05-27 17:01:36 +01:00
..
src Create a more careful API for handling one-way roads everywhere, in 2022-05-27 17:01:36 +01:00
Cargo.toml update to geo 0.20.1 2022-04-22 18:13:36 +01:00
README.md Document as much of geom as I can before my battery dies. And a mechanical API changes, Angle::new_degs -> Angle::degrees 2020-10-19 19:55:05 -05:00

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.