Are we game yet?

Math

Linear algebra libraries, quaternions, color conversion and more

Crates

  • bvh

    A fast BVH using SAH

    • Latest version:
      0.11.0
    • Downloads:
      577,432
    • Recent downloads:
      437,079
    • License:
      MIT
    • Stars:
      251
    • Last activity:
      2025-07-28
  • cgmath

    A linear algebra and mathematics library for computer graphics.

    • Latest version:
      0.18.0
    • Downloads:
      6,578,206
    • Recent downloads:
      850,772
    • License:
      Apache-2.0
    • Stars:
      1,184
    • Last activity:
      2024-12-07
  • dual_quaternion

    A type-agnostic dual-quaternion math library

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

    Geometry primitives

    • Latest version:
      0.22.11
    • Downloads:
      12,657,428
    • Recent downloads:
      2,103,423
    • License:
      MIT OR Apache-2.0
    • Stars:
      473
    • Last activity:
      2025-02-19
  • euler

    Mathematics library for 3D computer graphics

    • Latest version:
      0.4.1
    • Downloads:
      259,583
    • Recent downloads:
      47,030
    • 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:
      33,195
    • Recent downloads:
      1,822
    • 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.5
    • Downloads:
      15,411,712
    • Recent downloads:
      4,718,103
    • License:
      MIT OR Apache-2.0
    • Stars:
      1,780
    • Last activity:
      2025-09-13
  • 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,007,272
    • Recent downloads:
      953,304
    • License:
      MIT
    • Stars:
      274
    • Last activity:
      2024-01-02
  • nalgebra

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

    • Latest version:
      0.34.0
    • Downloads:
      38,625,504
    • Recent downloads:
      8,367,386
    • License:
      Apache-2.0
    • Stars:
      4,441
    • Last activity:
      2025-07-31
  • optimath

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

    • Latest version:
      0.3.1
    • Downloads:
      7,703
    • Recent downloads:
      710
    • 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:
      4,571,811
    • Recent downloads:
      846,645
    • License:
      MIT OR Apache-2.0
    • Stars:
      797
    • Last activity:
      2025-08-10
  • quaternion

    A simple and type agnostic quaternion math library designed for reexporting

    • Latest version:
      2.0.0
    • Downloads:
      238,514
    • Recent downloads:
      32,507
    • License:
      MIT OR Apache-2.0
    • Stars:
      14
    • Last activity:
      2024-10-20
  • splines

    Spline interpolation made easy

    • Latest version:
      5.0.0
    • Downloads:
      771,655
    • Recent downloads:
      59,776
    • License:
      BSD-3-Clause
  • ultraviolet

    A crate to do linear algebra, fast.

    • Latest version:
      0.10.0
    • Downloads:
      678,767
    • Recent downloads:
      75,260
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      779
    • Last activity:
      2025-06-02
  • uniform-cubic-splines

    Simple uniform cubic spline evaluation and inversion.

    • Latest version:
      0.5.0
    • Downloads:
      17,406
    • Recent downloads:
      2,814
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      20
    • Last activity:
      2025-08-16
  • vecmath

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

    • Latest version:
      1.0.0
    • Downloads:
      1,262,434
    • Recent downloads:
      160,666
    • License:
      MIT
    • Stars:
      78
    • 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.1
    • Downloads:
      734,851
    • Recent downloads:
      88,289
    • License:
      MIT OR Apache-2.0
    • Stars:
      303
    • Last activity:
      2024-09-22

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:
      9,814
    • Recent downloads:
      864
    • 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.