vecmat
Lightweight low-dimensional vector and matrix library written in Rust
Documentation
Structs:
- Vectors:
VecN<T>
whereN
is {2, 3, 4} - Matrices:
MatNxM<T>
(orMatN<T>
for square matrices) whereN
andM
are {2, 3, 4}
Features:
- vector and matrix arithmetcs
- boolean vector logics
- vector dot, cross and outer products
- matrix-matrix and matrix-vector products
- square matrix determinant and inversion
-
div_floor
andmod_floor
for integer vectors
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.