34 releases (breaking)
0.31.1 | Mar 5, 2025 |
---|---|
0.30.0 | Dec 16, 2024 |
0.29.1 | Oct 1, 2024 |
0.28.1 | Jul 5, 2024 |
0.10.0 | Feb 28, 2021 |
#1315 in GUI
697,652 downloads per month
Used in 1,012 crates
(19 directly)
130KB
3K
SLoC
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
.
Feature flags
emath - egui math library
A bare-bones 2D math library with types and functions useful for GUI building.
Made for egui
.
Dependencies
~220KB