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

Download history 31011/week @ 2024-12-23 36340/week @ 2024-12-30 58665/week @ 2025-01-06 62103/week @ 2025-01-13 55705/week @ 2025-01-20 55575/week @ 2025-01-27 73804/week @ 2025-02-03 149496/week @ 2025-02-10 147951/week @ 2025-02-17 187129/week @ 2025-02-24 203005/week @ 2025-03-03 212472/week @ 2025-03-10 181992/week @ 2025-03-17 181698/week @ 2025-03-24 166624/week @ 2025-03-31 154711/week @ 2025-04-07

697,652 downloads per month
Used in 1,012 crates (19 directly)

MIT/Apache

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

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

~220KB