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,616,335
    • Recent downloads:
      37,474
    • License:
      MIT
    • Stars:
      266
    • Last activity:
      2025-11-16
  • cgmath

    A linear algebra and mathematics library for computer graphics.

    • Latest version:
      0.18.0
    • Downloads:
      10,852,567
    • Recent downloads:
      1,537,387
    • License:
      Apache-2.0
    • Stars:
      1,207
    • Last activity:
      2024-12-07
  • dual_quaternion

    A type-agnostic dual-quaternion math library

    • Latest version:
      0.3.0
    • Downloads:
      9,098
    • Recent downloads:
      222
    • License:
      MIT
    • Stars:
      6
    • Last activity:
      2025-12-06
  • euclid

    Geometry primitives

    • Latest version:
      0.22.14
    • Downloads:
      43,747,437
    • Recent downloads:
      18,226,085
    • License:
      MIT OR Apache-2.0
    • Stars:
      489
    • Last activity:
      2026-03-17
  • euler

    Mathematics library for 3D computer graphics

    • Latest version:
      0.4.1
    • Downloads:
      538,056
    • Recent downloads:
      96,700
    • 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:
      35,034
    • Recent downloads:
      358
    • License:
      MIT OR Apache-2.0
    • Stars:
      5
    • Last activity:
      2026-06-20
  • ggmath

    A linear algebra library for games and graphics with generic SIMD types.

    • Latest version:
      0.16.7
    • Downloads:
      11,344
    • Recent downloads:
      141
    • License:
      MIT OR Apache-2.0
    • Stars:
      6
    • Last activity:
      2026-06-30
  • glam

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

    • Latest version:
      0.33.2
    • Downloads:
      101,221,134
    • Recent downloads:
      42,049,437
    • License:
      MIT OR Apache-2.0
    • Stars:
      1,998
    • Last activity:
      2026-06-29
  • rust-3d

    3D/2D library written in Rust

    • License:
      MIT License
    • Stars:
      74
    • Last activity:
      2026-04-20
  • macaw

    An opinionated game math library built on top the excellent glam

    • Latest version:
      0.30.0
    • Downloads:
      1,156,635
    • Recent downloads:
      359,594
    • License:
      MIT OR Apache-2.0
    • Stars:
      24
    • Last activity:
      2025-05-02
  • mint

    Math interoperability standard types

    • Latest version:
      0.5.9
    • Downloads:
      10,372,865
    • Recent downloads:
      1,501,315
    • License:
      MIT
    • Stars:
      285
    • Last activity:
      2024-01-02
  • nalgebra

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

    • Latest version:
      0.35.0
    • Downloads:
      76,670,778
    • Recent downloads:
      14,280,521
    • License:
      Apache-2.0
    • Stars:
      4,754
    • Last activity:
      2026-06-30
  • optimath

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

    • Latest version:
      0.3.1
    • Downloads:
      8,217
    • Recent downloads:
      59
    • 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:
      10,143,423
    • Recent downloads:
      3,040,654
    • License:
      MIT OR Apache-2.0
    • Stars:
      827
    • Last activity:
      2026-06-14
  • quaternion

    A simple and type agnostic quaternion math library designed for reexporting

    • Latest version:
      2.0.0
    • Downloads:
      342,834
    • Recent downloads:
      35,014
    • License:
      MIT OR Apache-2.0
    • Stars:
      13
    • Last activity:
      2024-10-20
  • splines

    Spline interpolation made easy

    • Latest version:
      5.0.0
    • Downloads:
      1,025,994
    • Recent downloads:
      106,080
    • License:
      BSD-3-Clause
  • ultraviolet

    A crate to do linear algebra, fast.

    • Latest version:
      0.10.0
    • Downloads:
      1,067,711
    • Recent downloads:
      129,459
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      797
    • Last activity:
      2025-06-02
  • uniform-cubic-splines

    Simple uniform cubic spline evaluation and inversion.

    • Latest version:
      0.5.2
    • Downloads:
      23,057
    • Recent downloads:
      2,991
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      25
    • Last activity:
      2026-05-04
  • vecmath

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

    • Latest version:
      1.0.0
    • Downloads:
      2,730,908
    • Recent downloads:
      879,035
    • 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:
      1,109,773
    • Recent downloads:
      137,278
    • License:
      MIT OR Apache-2.0
    • Stars:
      312
    • 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,534
    • Recent downloads:
      96
    • 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.