Are we game yet?

Math

Linear algebra libraries, quaternions, color conversion and more

Crates

  • bvh

    A fast BVH using SAH

    • Latest version:
      0.12.0
    • Downloads:
      1,554,165
    • Recent downloads:
      383,549
    • License:
      MIT
    • Stars:
      265
    • Last activity:
      2025-11-16
  • cgmath

    A linear algebra and mathematics library for computer graphics.

    • Latest version:
      0.18.0
    • Downloads:
      8,699,879
    • Recent downloads:
      1,188,568
    • License:
      Apache-2.0
    • Stars:
      1,197
    • Last activity:
      2024-12-07
  • dual_quaternion

    A type-agnostic dual-quaternion math library

    • Latest version:
      0.3.0
    • Downloads:
      8,683
    • Recent downloads:
      197
    • License:
      MIT
    • Stars:
      6
    • Last activity:
      2025-12-06
  • euclid

    Geometry primitives

    • Latest version:
      0.22.13
    • Downloads:
      21,000,421
    • Recent downloads:
      5,957,077
    • License:
      MIT OR Apache-2.0
    • Stars:
      479
    • Last activity:
      2026-01-17
  • euler

    Mathematics library for 3D computer graphics

    • Latest version:
      0.4.1
    • Downloads:
      386,809
    • Recent downloads:
      76,733
    • License:
      MIT/Apache-2.0
    • Stars:
      24
    • Last activity:
      2023-09-20
  • generic-matrix

    Manipulations and data types that represent 2d matrix.

    • Latest version:
      0.2.2
    • Downloads:
      34,524
    • Recent downloads:
      402
    • License:
      MIT OR Apache-2.0
    • Stars:
      5
    • Last activity:
      2024-11-30
  • ggmath

    A math library for games and graphics with support for generics and SIMD.

    • Latest version:
      0.16.2
    • Downloads:
      11,113
    • Recent downloads:
      249
    • License:
      MIT OR Apache-2.0
    • Stars:
      5
    • Last activity:
      2026-02-28
  • glam

    A simple and fast 3D math library for games and graphics

    • Latest version:
      0.32.0
    • Downloads:
      47,379,086
    • Recent downloads:
      23,184,933
    • License:
      MIT OR Apache-2.0
    • Stars:
      1,902
    • Last activity:
      2026-02-11
  • rust-3d

    3D/2D library written in Rust

    • License:
      MIT License
    • Stars:
      74
    • Last activity:
      2022-10-11
  • macaw

    An opinionated game math library built on top the excellent glam

    • Latest version:
      0.30.0
    • Downloads:
      653,408
    • Recent downloads:
      178,960
    • License:
      MIT OR Apache-2.0
    • Stars:
      21
    • Last activity:
      2025-05-02
  • mint

    Math interoperability standard types

    • Latest version:
      0.5.9
    • Downloads:
      8,254,126
    • Recent downloads:
      1,292,958
    • License:
      MIT
    • Stars:
      283
    • Last activity:
      2024-01-02
  • nalgebra

    General-purpose linear algebra library with transformations and statically-sized or dynamically-sized matrices.

    • Latest version:
      0.34.1
    • Downloads:
      56,887,517
    • Recent downloads:
      9,889,611
    • License:
      Apache-2.0
    • Stars:
      4,655
    • Last activity:
      2026-01-22
  • optimath

    Linear Algebra using const generics for no_std and specialization to enable SIMD.

    • Latest version:
      0.3.1
    • Downloads:
      8,129
    • Recent downloads:
      78
    • License:
      Apache-2.0
    • Stars:
      52
    • Last activity:
      2021-06-22
  • palette

    Convert and manage colors with a focus on correctness, flexibility and ease of use.

    • Latest version:
      0.7.6
    • Downloads:
      6,417,147
    • Recent downloads:
      1,110,677
    • License:
      MIT OR Apache-2.0
    • Stars:
      809
    • Last activity:
      2025-10-26
  • quaternion

    A simple and type agnostic quaternion math library designed for reexporting

    • Latest version:
      2.0.0
    • Downloads:
      292,234
    • Recent downloads:
      27,378
    • License:
      MIT OR Apache-2.0
    • Stars:
      13
    • Last activity:
      2024-10-20
  • splines

    Spline interpolation made easy

    • Latest version:
      5.0.0
    • Downloads:
      888,081
    • Recent downloads:
      61,238
    • License:
      BSD-3-Clause
  • ultraviolet

    A crate to do linear algebra, fast.

    • Latest version:
      0.10.0
    • Downloads:
      893,282
    • Recent downloads:
      124,672
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      788
    • Last activity:
      2025-06-02
  • uniform-cubic-splines

    Simple uniform cubic spline evaluation and inversion.

    • Latest version:
      0.5.1
    • Downloads:
      19,834
    • Recent downloads:
      601
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      24
    • Last activity:
      2025-10-08
  • vecmath

    A simple and type agnostic library for vector math designed for reexporting

    • Latest version:
      1.0.0
    • Downloads:
      1,686,595
    • Recent downloads:
      261,365
    • License:
      MIT
    • Stars:
      80
    • Last activity:
      2021-04-11
  • vek

    Generic 2D-3D math swiss army knife for game engines, with SIMD support and focus on convenience.

    • Latest version:
      0.17.2
    • Downloads:
      926,870
    • Recent downloads:
      111,882
    • License:
      MIT OR Apache-2.0
    • Stars:
      308
    • Last activity:
      2025-09-23

Archived

These crates are no longer maintained, but may still be of interest.
  • oxygen_quark

    Oxygen Quark is a maths library mainly developed for the Oxygen Engine.

    • Latest version:
      0.0.11
    • Downloads:
      10,389
    • Recent downloads:
      126
    • License:
      MIT

Contribute

Do you know about a missing crate? Did you launch a new crate?

Please create a pull request or an issue on our GitHub!

Looking for a crate you can't find here? Try asking on the chat.