mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-26 16:02:23 +03:00
6119042b4f
result is usually a Ring. This gets lanes to render in the GeoJSON export. #440 Ideally all Polygons would be expressed as an outer Ring and some optional inner Rings. There are a few cases where this is hard, and we instead just rely on the triangulation for rendering and point containment and give up on GeoJSON export. Not regenerating all maps yet -- zero screenshot diff, the map file does change, but not sure how. |
||
---|---|---|
.. | ||
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
.