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 47637/week @ 2024-09-26 48121/week @ 2024-10-03 52627/week @ 2024-10-10 54252/week @ 2024-10-17 55984/week @ 2024-10-24 57680/week @ 2024-10-31 56201/week @ 2024-11-07 55291/week @ 2024-11-14 59623/week @ 2024-11-21 61241/week @ 2024-11-28 61098/week @ 2024-12-05 63965/week @ 2024-12-12 44501/week @ 2024-12-19 29042/week @ 2024-12-26 51612/week @ 2025-01-02 59193/week @ 2025-01-09

195,927 downloads per month
Used in 937 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