Are we game yet?

Math

Linear algebra libraries, quaternions, color conversion and more

Crates

  • bvh

    A fast BVH using SAH

    • Latest version:
      0.13.0
    • Downloads:
      1,663,266
    • Recent downloads:
      36,837
    • License:
      MIT
    • Stars:
      271
    • Last activity:
      2026-10-12
  • cgmath

    A linear algebra and mathematics library for computer graphics.

    • Latest version:
      0.18.0
    • Downloads:
      12,824,508
    • Recent downloads:
      1,353,460
    • License:
      Apache-2.0
    • Stars:
      1,204
    • Last activity:
      2024-12-07
  • dual_quaternion

    A type-agnostic dual-quaternion math library

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

    Geometry primitives

    • Latest version:
      0.22.14
    • Downloads:
      96,100,779
    • Recent downloads:
      41,670,826
    • License:
      MIT OR Apache-2.0
    • Stars:
      494
    • Last activity:
      2026-03-17
  • euler

    Mathematics library for 3D computer graphics

    • Latest version:
      0.5.0
    • Downloads:
      701,716
    • Recent downloads:
      110,978
    • License:
      MIT/Apache-2.0
    • Stars:
      23
    • Last activity:
      2026-09-17
  • generic-matrix

    Manipulations and data types that represent 2d matrix.

    • Latest version:
      0.2.2
    • Downloads:
      35,525
    • Recent downloads:
      350
    • License:
      MIT OR Apache-2.0
    • Stars:
      5
    • Last activity:
      2026-06-20
  • ggmath

    A fast linear algebra library for games and graphics

    • Latest version:
      0.18.2
    • Downloads:
      12,752
    • Recent downloads:
      1,209
    • License:
      MIT OR Apache-2.0
    • Stars:
      8
    • Last activity:
      2026-10-27
  • glam

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

    • Latest version:
      0.34.3
    • Downloads:
      183,084,224
    • Recent downloads:
      62,774,691
    • License:
      MIT OR Apache-2.0
    • Stars:
      2,098
    • Last activity:
      2026-11-08
  • 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,832,971
    • Recent downloads:
      511,812
    • License:
      MIT OR Apache-2.0
    • Stars:
      25
    • Last activity:
      2025-05-02
  • mint

    Math interoperability standard types

    • Latest version:
      0.5.9
    • Downloads:
      12,818,408
    • Recent downloads:
      1,870,009
    • License:
      MIT
    • Stars:
      284
    • 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:
      100,899,795
    • Recent downloads:
      17,762,417
    • License:
      Apache-2.0
    • Stars:
      4,811
    • Last activity:
      2026-09-30
  • optimath

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

    • Latest version:
      0.3.1
    • Downloads:
      8,275
    • Recent downloads:
      35
    • License:
      Apache-2.0
    • Stars:
      51
    • Last activity:
      2021-06-22
  • palette

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

    • Latest version:
      0.7.7
    • Downloads:
      38,710,587
    • Recent downloads:
      24,365,071
    • License:
      MIT OR Apache-2.0
    • Stars:
      843
    • Last activity:
      2026-11-01
  • quaternion

    A simple and type agnostic quaternion math library designed for reexporting

    • Latest version:
      2.0.0
    • Downloads:
      400,300
    • Recent downloads:
      40,578
    • 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,232,601
    • Recent downloads:
      160,984
    • License:
      BSD-3-Clause
  • ultraviolet

    A crate to do linear algebra, fast.

    • Latest version:
      0.10.0
    • Downloads:
      1,492,741
    • Recent downloads:
      335,683
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      800
    • Last activity:
      2026-10-04
  • uniform-cubic-splines

    Simple uniform cubic spline evaluation and inversion.

    • Latest version:
      0.5.2
    • Downloads:
      24,110
    • Recent downloads:
      781
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      26
    • Last activity:
      2026-05-04
  • vecmath

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

    • Latest version:
      1.0.0
    • Downloads:
      5,584,506
    • Recent downloads:
      2,356,601
    • 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,306,601
    • Recent downloads:
      130,453
    • License:
      MIT OR Apache-2.0
    • Stars:
      315
    • 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,646
    • Recent downloads:
      72
    • 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.