Low-dimensional vector algebra with const generics support.
std
- use std. Crate could be used withno_std
.rand
- distributions for generating random entities.approx
- approximate comparison.
All these features are enabled by default.
Vector
.Matrix
.Complex
andQuaternion
.
Shift
.Linear
.Affine
.Rotation2
andRotation3
.Moebius
(overComplex
andQuaternion
).
min_const_generics
support.- Vector and matrix arithmetcs (
+
,-
,*
,/
,%
). - Integer vectors and matrices (including
div_floor
,mod_floor
and bitwise). - Boolean vectors and matrices (comparison,
all
,any
). - Support for non-
Copy
(and non-Clone
) elements. into_iter()
for vectors (andmap
,zip
,unzip
,fold
,scan
, etc.).dot
,cross
andouter
products for vectors.- Matrix-matrix and matrix-vector multiplication.
- Square matrix determinant and inversion.
- Eigen- and singular decomposition for matrices.
Rotation4
.
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.
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.