abstreet/geom
Dustin Carlino 37404044e3 Avoid crashing in PolyLine::dist_along due to floating point issues.
This was happening when trying to draw pedestrians sometimes.

Regenerate everything. Some maps/scenarios affected, but in tiny
imperceptible ways. No screenshot diff.
2022-01-24 20:47:02 +00:00
..
src Avoid crashing in PolyLine::dist_along due to floating point issues. 2022-01-24 20:47:02 +00:00
Cargo.toml Switch from std::fs to fs_err. When files aren't found, the error message actually includes the path! 2022-01-17 17:30:51 +00: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.