Opinionated 2D math library for building GUIs.
Includes vectors, positions, rectangles etc.
Conventions (unless otherwise specified):
- All angles are in radians
- X+ is right and Y+ is down.
- (0,0) is left top.
- Dimension order is always
x y
Integrating with other math libraries.
emath does not strive to become a general purpose or all-powerful math library.
For that, use something else (glam, nalgebra, …)
and enable the mint feature flag in emath to enable implicit conversion to/from emath.