Definitive
The definitive vector and matrix library for Rust
```rust use definitive::Vector;
let a = Vector::new([2, 3, 1]); let b = Vector::new([8, 0, 0]);
let c = a + b * (a / b).magnitude(); ```
Definitive
provides the default feature simd
which enables and disables hand
written SIMD implementations of certain Vector
and Matrix
variants.
Vector<f32, 4>
Add
: sse
#![no_std]
This crate supports #![no_std]
environments, provided the simd
feature is
not activated
[ ] Vector
Clone
Copy
Debug
Display
Default
Eq
PartialEq
Ord
PartialOrd
Add
AddAssign
Sub
SubAssign
Mul
MulAssign
Div
DivAssign
Rem
RemAssign
Neg
Sum
Product
BitAnd
BitAndAssign
BitOr
BitOrAssign
BitXor
BitXorAssign
Shl
ShlAssign
Shr
ShrAssign
Not
Hash
[ ] Matrix
(blocked on https://github.com/rust-lang/rust/issues/44580)