32 releases (breaking)

0.30.0 Dec 16, 2024
0.29.1 Oct 1, 2024
0.29.0 Sep 26, 2024
0.28.1 Jul 5, 2024
0.10.0 Feb 28, 2021

#887 in GUI

Download history 39840/week @ 2024-09-18 47600/week @ 2024-09-25 48133/week @ 2024-10-02 49268/week @ 2024-10-09 55947/week @ 2024-10-16 55794/week @ 2024-10-23 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 45904/week @ 2025-01-01

202,573 downloads per month
Used in 932 crates (17 directly)

MIT/Apache

120KB
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

~230KB