Low-dimensional vector algebra with min_const_generics
support.
min_const_generics
feature are planning to be stabilized in Rust 1.50.
So for now this crate requires nightly compiler and nightly
feature to be enabled:
toml
vecmat = { version = "0.6.0", features = ["nightly"] }
std
- use std (enabled by default). Crate could be used with no_std
.rand
- distributions for generating random entities.approx
- approximate comparison.nightly
- enables nightly features. (required before Rust 1.50) Vector
.Matrix
.Quaternion
(and Complex
reexported from num_complex
).Shift
.Linear
.Affine
.Rotation2
and Rotation3
.min_const_generics
support.+
, -
, *
, /
, %
).div_floor
, mod_floor
and bitwise).all
, any
).Copy
(and non-Clone
) elements.into_iter()
for vectors (and map
, zip
, unzip
, fold
, scan
, etc.).dot
, cross
and outer
products for vectors.Rotation4
.Licensed under either of
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.