Crates.io | perpendicular |
lib.rs | perpendicular |
version | 0.1.9 |
source | src |
created_at | 2021-06-20 22:39:34.876544 |
updated_at | 2021-10-21 15:12:26.284144 |
description | Perpendicular is a simple general purpose n-dimensional vector library. |
homepage | https://github.com/jonay2000/perpendicular |
repository | https://github.com/jonay2000/perpendicular |
max_upload_size | |
id | 412607 |
size | 49,929 |
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);
This code is licensed under the Apache 2.0 license