27 releases (breaking)

0.27.2 Apr 2, 2024
0.27.1 Mar 29, 2024
0.26.2 Feb 14, 2024
0.24.1 Nov 30, 2023
0.10.0 Feb 28, 2021

#455 in GUI

Download history 27611/week @ 2024-01-26 28800/week @ 2024-02-02 33693/week @ 2024-02-09 35681/week @ 2024-02-16 34434/week @ 2024-02-23 37027/week @ 2024-03-01 39728/week @ 2024-03-08 33746/week @ 2024-03-15 39507/week @ 2024-03-22 36945/week @ 2024-03-29 35994/week @ 2024-04-05 42700/week @ 2024-04-12 43291/week @ 2024-04-19 39590/week @ 2024-04-26 35287/week @ 2024-05-03 30231/week @ 2024-05-10

154,765 downloads per month
Used in 686 crates (11 directly)

MIT/Apache

98KB
2.5K 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

~245KB