abstreet/geom
James Nebeker 891ea04e90
Issue 173 (#885)
* implemented logic to invert a polyline based on the quadrant of the polyline's angle

* Fixes for PR #885 on Issue #173.

* Reverted changes to render_curvey

Because of borrow checker limitations, I reverted the changes to the way
we call render_curvey. It is now called twice, depending on whether the
road is curved or straight. I also enclosed the implementation in an
ALWAYS-FALSE if else statement in order to deactivate it until some
remaining issues with text label rendering are resolved.

* Fix formatting

Co-authored-by: jamesneb <jnebeker@truckitapp.com>
Co-authored-by: Dustin Carlino <dabreegster@gmail.com>
2022-03-25 06:23:06 -07:00
..
src Issue 173 (#885) 2022-03-25 06:23:06 -07:00
Cargo.toml Upgrade all geo dependencies! No behavioral difference 2022-02-22 16:45:49 +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.