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,164,443
    • Recent downloads:
      676,834
    • License:
      MIT
    • Stars:
      257
    • Last activity:
      2025-11-16
  • cgmath

    A linear algebra and mathematics library for computer graphics.

    • Latest version:
      0.18.0
    • Downloads:
      7,511,435
    • Recent downloads:
      1,069,180
    • License:
      Apache-2.0
    • Stars:
      1,193
    • Last activity:
      2024-12-07
  • dual_quaternion

    A type-agnostic dual-quaternion math library

    • Latest version:
      0.2.0
    • Downloads:
      8,485
    • Recent downloads:
      372
    • License:
      MIT
    • Stars:
      6
    • Last activity:
      2022-10-29
  • euclid

    Geometry primitives

    • Latest version:
      0.22.11
    • Downloads:
      15,101,039
    • Recent downloads:
      2,771,168
    • License:
      MIT OR Apache-2.0
    • Stars:
      475
    • Last activity:
      2025-02-19
  • euler

    Mathematics library for 3D computer graphics

    • Latest version:
      0.4.1
    • Downloads:
      308,547
    • Recent downloads:
      56,864
    • 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,113
    • Recent downloads:
      1,130
    • License:
      MIT OR Apache-2.0
    • Stars:
      5
    • Last activity:
      2024-11-30
  • glam

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

    • Latest version:
      0.30.9
    • Downloads:
      24,304,670
    • Recent downloads:
      9,912,231
    • License:
      MIT OR Apache-2.0
    • Stars:
      1,837
    • Last activity:
      2025-10-28
  • rust-3d

    3D/2D library written in Rust

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

    Math interoperability standard types

    • Latest version:
      0.5.9
    • Downloads:
      6,960,221
    • Recent downloads:
      1,107,841
    • License:
      MIT
    • Stars:
      280
    • 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:
      46,992,418
    • Recent downloads:
      9,722,177
    • License:
      Apache-2.0
    • Stars:
      4,534
    • Last activity:
      2025-11-23
  • optimath

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

    • Latest version:
      0.3.1
    • Downloads:
      8,050
    • Recent downloads:
      421
    • License:
      Apache-2.0
    • Stars:
      53
    • 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:
      5,302,600
    • Recent downloads:
      840,094
    • License:
      MIT OR Apache-2.0
    • Stars:
      807
    • Last activity:
      2025-10-26
  • quaternion

    A simple and type agnostic quaternion math library designed for reexporting

    • Latest version:
      2.0.0
    • Downloads:
      264,754
    • Recent downloads:
      31,292
    • License:
      MIT OR Apache-2.0
    • Stars:
      15
    • Last activity:
      2024-10-20
  • splines

    Spline interpolation made easy

    • Latest version:
      5.0.0
    • Downloads:
      826,508
    • Recent downloads:
      64,531
    • License:
      BSD-3-Clause
  • ultraviolet

    A crate to do linear algebra, fast.

    • Latest version:
      0.10.0
    • Downloads:
      768,413
    • Recent downloads:
      104,167
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      784
    • Last activity:
      2025-06-02
  • uniform-cubic-splines

    Simple uniform cubic spline evaluation and inversion.

    • Latest version:
      0.5.1
    • Downloads:
      19,226
    • Recent downloads:
      2,178
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      23
    • 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,424,130
    • Recent downloads:
      186,757
    • License:
      MIT
    • Stars:
      79
    • 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:
      813,804
    • Recent downloads:
      93,944
    • License:
      MIT OR Apache-2.0
    • Stars:
      306
    • 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,261
    • Recent downloads:
      531
    • 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.