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

Download history 351970/week @ 2026-01-23 317908/week @ 2026-01-30 239953/week @ 2026-02-06 229158/week @ 2026-02-13 244670/week @ 2026-02-20 241058/week @ 2026-02-27 257968/week @ 2026-03-06 262519/week @ 2026-03-13 264375/week @ 2026-03-20 300838/week @ 2026-03-27 317418/week @ 2026-04-03 347578/week @ 2026-04-10 303807/week @ 2026-04-17 338088/week @ 2026-04-24 322522/week @ 2026-05-01 330439/week @ 2026-05-08

1,360,135 downloads per month
Used in 1,731 crates (29 directly)

MIT/Apache

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

Latest version Documentation unsafe forbidden MIT Apache

A bare-bones 2D math library with types and functions useful for GUI building.

Made for egui.

Dependencies

~210KB