Skip to main content

Module geometry

Module geometry 

Source
Expand description

Basic 2D geometry types.

All coordinates are in first-quadrant (Y-up) space unless otherwise noted. Origin is bottom-left. Positive Y goes upward.

Structs§

Point
A 2D point in first-quadrant (Y-up) coordinates.
Rect
An axis-aligned rectangle in first-quadrant (Y-up) coordinates.
Size
A 2D size (width × height), always non-negative.