https://github.com/jondolf/glam_matrix_extras
Matrix types and utilities for Glam.
https://github.com/jondolf/glam_matrix_extras
gamedev glam math matrix physics
Last synced: 3 months ago
JSON representation
Matrix types and utilities for Glam.
- Host: GitHub
- URL: https://github.com/jondolf/glam_matrix_extras
- Owner: Jondolf
- License: apache-2.0
- Created: 2025-07-08T16:12:02.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-09-30T17:04:09.000Z (4 months ago)
- Last Synced: 2025-09-30T18:32:01.222Z (4 months ago)
- Topics: gamedev, glam, math, matrix, physics
- Language: Rust
- Homepage:
- Size: 179 KB
- Stars: 2
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# `glam_matrix_extras`
Matrix types and utilities for [`glam`].
[`glam`]: https://docs.rs/glam/latest/glam/
## Features
- `SquareMatExt` extension trait with useful helpers like `is_symmetric`, `inverse_or_zero`, and `diagonal`
- Rectangular matrices
- [x] 2x3 matrices: `Mat23`, `DMat23`
- [x] 3x2 matrices: `Mat32`, `DMat32`
- Symmetric matrices
- [x] Symmetric 2x2 matrices: `SymmetricMat2`, `SymmetricDMat2`
- [x] Symmetric 3x3 matrices: `SymmetricMat3`, `SymmetricDMat3`
- [x] Symmetric 4x4 matrices: `SymmetricMat4`, `SymmetricDMat4`
- [x] Symmetric 5x5 matrices: `SymmetricMat5`, `SymmetricDMat5`
- [x] Symmetric 6x6 matrices: `SymmetricMat6`, `SymmetricDMat6`
- Eigen decompositions of symmetric matrices
- [x] 2D: `SymmetricEigen2`
- [x] 3D: `SymmetricEigen3`
## License
`glam_matrix_extras` is free and open source. All code in this repository is dual-licensed under either:
- MIT License ([LICENSE-MIT](/LICENSE-MIT) or )
- Apache License, Version 2.0 ([LICENSE-APACHE](/LICENSE-APACHE) or )
at your option.