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:
      94,104
    • Recent downloads:
      46,670
    • License:
      MIT
    • Stars:
      239
    • Last activity:
      2025-02-18
  • cgmath

    A linear algebra and mathematics library for computer graphics.

    • Latest version:
      0.18.0
    • Downloads:
      4,995,373
    • Recent downloads:
      1,154,694
    • License:
      Apache-2.0
    • Stars:
      1,166
    • Last activity:
      2024-12-07
  • dual_quaternion

    A type-agnostic dual-quaternion math library

    • Latest version:
      0.2.0
    • Downloads:
      7,370
    • Recent downloads:
      482
    • License:
      MIT
    • Stars:
      6
    • Last activity:
      2022-10-29
  • euclid

    Geometry primitives

    • Latest version:
      0.22.11
    • Downloads:
      9,750,840
    • Recent downloads:
      1,131,273
    • License:
      MIT OR Apache-2.0
    • Stars:
      468
    • Last activity:
      2025-02-19
  • euler

    Mathematics library for 3D computer graphics

    • Latest version:
      0.4.1
    • Downloads:
      162,362
    • Recent downloads:
      69,114
    • 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:
      29,879
    • Recent downloads:
      2,189
    • 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.2
    • Downloads:
      9,299,981
    • Recent downloads:
      1,967,630
    • License:
      MIT OR Apache-2.0
    • Stars:
      1,682
    • Last activity:
      2025-04-13
  • rust-3d

    3D/2D library written in Rust

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

    Math interoperability standard types

    • Latest version:
      0.5.9
    • Downloads:
      4,329,065
    • Recent downloads:
      1,210,464
    • License:
      MIT
    • Stars:
      267
    • Last activity:
      2024-01-02
  • nalgebra

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

    • Latest version:
      0.33.2
    • Downloads:
      25,592,307
    • Recent downloads:
      6,371,912
    • License:
      Apache-2.0
    • Stars:
      4,250
    • Last activity:
      2025-04-03
  • optimath

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

    • Latest version:
      0.3.1
    • Downloads:
      6,398
    • Recent downloads:
      795
    • 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.6
    • Downloads:
      3,292,081
    • Recent downloads:
      494,275
    • License:
      MIT OR Apache-2.0
    • Stars:
      781
    • Last activity:
      2025-03-22
  • quaternion

    A simple and type agnostic quaternion math library designed for reexporting

    • Latest version:
      2.0.0
    • Downloads:
      186,067
    • Recent downloads:
      32,012
    • License:
      MIT OR Apache-2.0
    • Stars:
      13
    • Last activity:
      2024-10-20
  • splines

    Spline interpolation made easy

    • Latest version:
      4.4.2
    • Downloads:
      673,189
    • Recent downloads:
      59,277
    • License:
      BSD-3-Clause
  • ultraviolet

    A crate to do linear algebra, fast.

    • Latest version:
      0.9.2
    • Downloads:
      570,128
    • Recent downloads:
      56,174
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      759
    • Last activity:
      2024-04-05
  • uniform-cubic-splines

    Simple uniform cubic spline evaluation and inversion.

    • Latest version:
      0.3.1
    • Downloads:
      12,478
    • Recent downloads:
      2,645
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      18
    • Last activity:
      2025-04-11
  • vecmath

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

    • Latest version:
      1.0.0
    • Downloads:
      986,862
    • Recent downloads:
      173,104
    • 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:
      597,345
    • Recent downloads:
      66,369
    • License:
      MIT OR Apache-2.0
    • Stars:
      295
    • 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:
      8,216
    • Recent downloads:
      984
    • 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.