An open API service indexing awesome lists of open source software.

https://github.com/jondolf/glam_matrix_extensions

Matrix types and utilities for Glam.
https://github.com/jondolf/glam_matrix_extensions

gamedev glam math matrix physics

Last synced: 4 months ago
JSON representation

Matrix types and utilities for Glam.

Awesome Lists containing this project

README

          

# `glam_matrix_extensions`

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_extensions` 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.