44 releases (26 breaking)
Uses new Rust 2024
| 0.34.2 | May 4, 2026 |
|---|---|
| 0.34.1 | Mar 27, 2026 |
| 0.33.3 | Dec 11, 2025 |
| 0.33.2 | Nov 13, 2025 |
| 0.10.0 | Feb 28, 2021 |
#867 in GUI
1,360,135 downloads per month
Used in 1,731 crates
(29 directly)
145KB
3.5K
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
document_features::document_features!())]
emath - egui math library
A bare-bones 2D math library with types and functions useful for GUI building.
Made for egui.
Dependencies
~210KB