33 releases (breaking)

new 0.31.0 Feb 4, 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

#860 in GUI

Download history 55920/week @ 2024-10-22 56223/week @ 2024-10-29 59355/week @ 2024-11-05 52781/week @ 2024-11-12 57944/week @ 2024-11-19 62177/week @ 2024-11-26 58551/week @ 2024-12-03 64644/week @ 2024-12-10 57814/week @ 2024-12-17 29610/week @ 2024-12-24 41098/week @ 2024-12-31 57062/week @ 2025-01-07 62775/week @ 2025-01-14 54659/week @ 2025-01-21 60331/week @ 2025-01-28 64562/week @ 2025-02-04

250,171 downloads per month
Used in 957 crates (17 directly)

MIT/Apache

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