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:
      184,496
    • Recent downloads:
      89,207
    • License:
      MIT
    • Stars:
      248
    • Last activity:
      2025-06-01
  • cgmath

    A linear algebra and mathematics library for computer graphics.

    • Latest version:
      0.18.0
    • Downloads:
      5,962,469
    • Recent downloads:
      947,474
    • License:
      Apache-2.0
    • Stars:
      1,176
    • Last activity:
      2024-12-07
  • dual_quaternion

    A type-agnostic dual-quaternion math library

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

    Geometry primitives

    • Latest version:
      0.22.11
    • Downloads:
      10,985,337
    • Recent downloads:
      1,221,665
    • License:
      MIT OR Apache-2.0
    • Stars:
      469
    • Last activity:
      2025-02-19
  • euler

    Mathematics library for 3D computer graphics

    • Latest version:
      0.4.1
    • Downloads:
      225,275
    • Recent downloads:
      61,100
    • 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:
      32,037
    • Recent downloads:
      2,134
    • 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.4
    • Downloads:
      11,390,582
    • Recent downloads:
      2,071,322
    • License:
      MIT OR Apache-2.0
    • Stars:
      1,746
    • Last activity:
      2025-07-03
  • 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:
      5,309,983
    • Recent downloads:
      966,032
    • License:
      MIT
    • Stars:
      272
    • 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:
      32,273,235
    • Recent downloads:
      6,617,753
    • License:
      Apache-2.0
    • Stars:
      4,373
    • Last activity:
      2025-06-06
  • optimath

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

    • Latest version:
      0.3.1
    • Downloads:
      7,230
    • Recent downloads:
      833
    • License:
      Apache-2.0
    • Stars:
      52
    • 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,945,553
    • Recent downloads:
      650,998
    • License:
      MIT OR Apache-2.0
    • Stars:
      791
    • Last activity:
      2025-07-13
  • quaternion

    A simple and type agnostic quaternion math library designed for reexporting

    • Latest version:
      2.0.0
    • Downloads:
      213,604
    • Recent downloads:
      27,241
    • License:
      MIT OR Apache-2.0
    • Stars:
      13
    • Last activity:
      2024-10-20
  • splines

    Spline interpolation made easy

    • Latest version:
      5.0.0
    • Downloads:
      728,813
    • Recent downloads:
      54,420
    • License:
      BSD-3-Clause
  • ultraviolet

    A crate to do linear algebra, fast.

    • Latest version:
      0.10.0
    • Downloads:
      621,893
    • Recent downloads:
      50,613
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      773
    • Last activity:
      2025-06-02
  • uniform-cubic-splines

    Simple uniform cubic spline evaluation and inversion.

    • Latest version:
      0.3.3
    • Downloads:
      15,379
    • Recent downloads:
      2,878
    • License:
      MIT OR Apache-2.0 OR Zlib
    • Stars:
      19
    • Last activity:
      2025-06-12
  • vecmath

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

    • Latest version:
      1.0.0
    • Downloads:
      1,134,162
    • Recent downloads:
      142,385
    • 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:
      667,634
    • Recent downloads:
      69,459
    • 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,256
    • Recent downloads:
      1,040
    • 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.