Expand description
A plain 2D vector that is not WGS84-normalized.
The geometry layer (crate::Wgs84Aabb in particular) needs a raw
(dx, dy) extent that can legitimately exceed 360 / 180 degrees or be
negative — unlike crate::Wgs84, whose constructor wraps longitude and
clamps latitude. Reusing Wgs84 for a size/extent would silently corrupt
those values via normalization, so this small struct is used instead.
Faithful port of python/src/ndslive/math/vec2.py.
Structs§
- Vec2
- A raw, un-normalized 2D vector
(x, y).