Expand description
Bounded two-dimensional primitives.
The XY-plane counterparts of crate::primitives3, following the same
rules: plain data with public fields, no validation in constructors, and no
hidden epsilon. A degenerate value stays representable so the algorithm
consuming it can judge it against its own Tolerance.
Structsยง
- Aabb2
- Axis-aligned two-dimensional bounding box.
- Polygon2
- A simple polygon in the XY-plane, without holes.
- Rectangle2
- A rectangle in the XY-plane, possibly rotated.
- Triangle2
- A two-dimensional triangle.