34 releases (breaking)

0.31.1 Mar 5, 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

#121 in Math

Download history 54840/week @ 2025-01-26 72740/week @ 2025-02-02 148615/week @ 2025-02-09 144054/week @ 2025-02-16 188392/week @ 2025-02-23 204617/week @ 2025-03-02 208244/week @ 2025-03-09 184653/week @ 2025-03-16 181849/week @ 2025-03-23 166113/week @ 2025-03-30 156493/week @ 2025-04-06 134795/week @ 2025-04-13 133468/week @ 2025-04-20 142200/week @ 2025-04-27 140182/week @ 2025-05-04 118377/week @ 2025-05-11

542,981 downloads per month
Used in 1,053 crates (20 directly)

MIT/Apache

130KB
3K SLoC

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


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.

Dependencies

~220KB

OSZAR »