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:
      135,999
    • Recent downloads:
      83,766
    • License:
      MIT
    • Stars:
      243
    • Last activity:
      2025-02-18
  • cgmath

    A linear algebra and mathematics library for computer graphics.

    • Latest version:
      0.18.0
    • Downloads:
      5,517,896
    • Recent downloads:
      1,330,741
    • License:
      Apache-2.0
    • Stars:
      1,171
    • Last activity:
      2024-12-07
  • dual_quaternion

    A type-agnostic dual-quaternion math library

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

    Geometry primitives

    • Latest version:
      0.22.11
    • Downloads:
      10,278,783
    • Recent downloads:
      1,131,340
    • License:
      MIT OR Apache-2.0
    • Stars:
      470
    • Last activity:
      2025-02-19
  • euler

    Mathematics library for 3D computer graphics

    • Latest version:
      0.4.1
    • Downloads:
      201,447
    • Recent downloads:
      86,706
    • License:
      MIT/Apache-2.0
    • Stars:
      25
    • Last activity:
      2023-09-20
  • generic-matrix

    Manipulations and data types that represent 2d matrix.

    • Latest version:
      0.2.2
    • Downloads:
      31,018
    • Recent downloads:
      2,258
    • License:
      MIT OR Apache-2.0
    • Stars:
      6
    • Last activity:
      2024-11-30
  • glam

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

    • Latest version:
      0.30.3
    • Downloads:
      10,238,251
    • Recent downloads:
      2,199,425
    • License:
      MIT OR Apache-2.0
    • Stars:
      1,717
    • Last activity:
      2025-05-25
  • 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:
      4,826,475
    • Recent downloads:
      1,318,568
    • License:
      MIT
    • Stars:
      273
    • 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:
      28,604,358
    • Recent downloads:
      7,170,072
    • License:
      Apache-2.0
    • Stars:
      4,323
    • Last activity:
      2025-05-19
  • optimath

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

    • Latest version:
      0.3.1
    • Downloads:
      6,827
    • Recent downloads:
      900
    • 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:
      3,584,029
    • Recent downloads:
      562,375
    • License:
      MIT OR Apache-2.0
    • Stars:
      789
    • Last activity:
      2025-05-15
  • quaternion

    A simple and type agnostic quaternion math library designed for reexporting

    • Latest version:
      2.0.0
    • Downloads:
      198,648
    • Recent downloads:
      30,261
    • License:
      MIT OR Apache-2.0
    • Stars:
      14
    • Last activity:
      2024-10-20
  • splines

    Spline interpolation made easy

    • Latest version:
      5.0.0
    • Downloads:
      700,252
    • Recent downloads:
      57,232
    • License:
      BSD-3-Clause
  • ultraviolet

    A crate to do linear algebra, fast.

    • Latest version:
      0.10.0
    • Downloads:
      595,107
    • Recent downloads:
      52,780
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      764
    • Last activity:
      2025-04-26
  • uniform-cubic-splines

    Simple uniform cubic spline evaluation and inversion.

    • Latest version:
      0.3.1
    • Downloads:
      13,878
    • Recent downloads:
      3,157
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      19
    • Last activity:
      2025-04-11
  • vecmath

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

    • Latest version:
      1.0.0
    • Downloads:
      1,076,353
    • Recent downloads:
      183,675
    • 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.1
    • Downloads:
      632,758
    • Recent downloads:
      72,119
    • License:
      MIT OR Apache-2.0
    • Stars:
      301
    • 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,729
    • Recent downloads:
      1,072
    • 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.