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

#688 in GUI

Download history 49536/week @ 2024-08-21 51530/week @ 2024-08-28 48784/week @ 2024-09-04 41106/week @ 2024-09-11 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 62084/week @ 2024-11-27 48669/week @ 2024-12-04

232,255 downloads per month
Used in 891 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