9 releases
0.1.9 | Oct 21, 2021 |
---|---|
0.1.8 | Jul 18, 2021 |
0.1.7 | Jun 21, 2021 |
#149 in Simulation
25 downloads per month
33KB
510 lines
Perpendicular
Perpendicular is a simple general purpose n-dimensional vector library.
This is not a general purpose linear algebra library. Instead, it's designed as a tool for simple physics simulations which just need to store some coordinates or velocities together.
use perpendicular::Vector;
let v1 = Vector::new((1, 2, 3));
let v2 = Vector::new((3, 4, 5));
let v3 = Vector::new((5, 6, 7));
println!("{}", v1 + v2 * v3);
License
This code is licensed under the Apache 2.0 license
Dependencies
~0.7–1.3MB
~29K SLoC