Skip to main content

Module math

Module math 

Source

Structs§

BoundingBox
An axis-aligned rectangle defined by its top-left position and dimensions.
Dimensions
Vector2

Enums§

AngleType
Classifies a rotation angle into common fast-path categories.

Functions§

classify_angle
Classifies a rotation in radians into an AngleType. Normalises to [0, 2π) first, then checks within EPS of each cardinal.
compute_rotated_aabb
Computes the axis-aligned bounding box of a rounded rectangle after rotation.