#matrix #gamedev

no-std glam_matrix_extras

Matrix types and utilities for Glam

2 releases

Uses new Rust 2024

0.1.1 Oct 31, 2025
0.1.0 Oct 13, 2025

#233 in Math

Download history 1038/week @ 2025-10-10 1651/week @ 2025-10-17 3210/week @ 2025-10-24 1413/week @ 2025-10-31 1497/week @ 2025-11-07 1653/week @ 2025-11-14 1780/week @ 2025-11-21

6,686 downloads per month
Used in 30 crates (3 directly)

MIT/Apache

295KB
7K SLoC

glam_matrix_extras

MIT/Apache 2.0 ci crates.io docs.rs

Matrix types and utilities for glam.

Features

  • SquareMatExt extension trait with useful helpers like is_symmetric, inverse_or_zero, and diagonal
  • Rectangular matrices
    • 2x3 matrices: Mat23, DMat23
    • 3x2 matrices: Mat32, DMat32
  • Symmetric matrices
    • Symmetric 2x2 matrices: SymmetricMat2, SymmetricDMat2
    • Symmetric 3x3 matrices: SymmetricMat3, SymmetricDMat3
    • Symmetric 4x4 matrices: SymmetricMat4, SymmetricDMat4
    • Symmetric 5x5 matrices: SymmetricMat5, SymmetricDMat5
    • Symmetric 6x6 matrices: SymmetricMat6, SymmetricDMat6
  • Eigen decompositions of symmetric matrices
    • 2x2: SymmetricEigen2
    • 3x3: SymmetricEigen3

Supported Glam Versions

glam glam_matrix_extras
0.30 0.1

License

glam_matrix_extras is free and open source. All code in this repository is dual-licensed under either:

at your option.

Dependencies

~6.5MB
~199K SLoC