#physics-simulation #vector #physics #linear-algebra

no-std perpendicular

Perpendicular is a simple general purpose n-dimensional vector library

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

Apache-2.0

33KB
510 lines

Perpendicular

Docs.rs Crates.io Github Workflows

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