1 unstable release
Uses old Rust 2015
0.2.1 | Mar 5, 2021 |
---|---|
0.2.0 |
|
0.1.0 |
|
#1043 in Math
26KB
675 lines
A very simple vector and matrix library build on the vecmath crate.
Examples
Constructing vectors
let v2 = vec2(1.0, 2.0);
let v3 = Vector3::new([1.0, 2.0, 3.0]);
let v4 = Vector4::from([1.0, 2.0, 3.0, 4.0]);
Basic operators
let v0 = vec2(2.0, 2.0);
let v1 = (v0 * v0 + v0) / v0;
Dependencies
~68KB