31 releases (breaking)

0.29.1 Oct 1, 2024
0.28.1 Jul 5, 2024
0.27.1 Mar 29, 2024
0.24.1 Nov 30, 2023
0.10.0 Feb 28, 2021

#691 in GUI

Download history 51100/week @ 2024-08-04 58992/week @ 2024-08-11 49890/week @ 2024-08-18 53845/week @ 2024-08-25 48512/week @ 2024-09-01 43966/week @ 2024-09-08 37961/week @ 2024-09-15 47861/week @ 2024-09-22 46349/week @ 2024-09-29 46496/week @ 2024-10-06 57220/week @ 2024-10-13 53488/week @ 2024-10-20 56444/week @ 2024-10-27 60643/week @ 2024-11-03 53217/week @ 2024-11-10 54350/week @ 2024-11-17

229,211 downloads per month
Used in 873 crates (16 directly)

MIT/Apache

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

~225KB