mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-26 07:52:05 +03:00
07738d2cef
* introduce "pill" to be explicit about fully rounded, vs a "None" radius * no-op transition to CornerRadii * popup button to spec * restore "fully rounded" layout behavior * use plain light to better show highlight * persistent split to spec (for day theme anyway) * remove night-theme colors for speed panel * fixup docs for pill * CR: remove unnecessary `row` * CR: remove outdated doc * import order |
||
---|---|---|
.. | ||
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
.