33 releases (breaking)

0.31.0 Feb 4, 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

#960 in GUI

Download history 56582/week @ 2024-10-30 58290/week @ 2024-11-06 54408/week @ 2024-11-13 58413/week @ 2024-11-20 61813/week @ 2024-11-27 60159/week @ 2024-12-04 63974/week @ 2024-12-11 52394/week @ 2024-12-18 28153/week @ 2024-12-25 45592/week @ 2025-01-01 56440/week @ 2025-01-08 62298/week @ 2025-01-15 56104/week @ 2025-01-22 61771/week @ 2025-01-29 83279/week @ 2025-02-05 129641/week @ 2025-02-12

338,664 downloads per month
Used in 963 crates (17 directly)

MIT/Apache

130KB
3K SLoC

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.


lib.rs:

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

Dependencies

~220KB