https://github.com/jdonszelmann/perpendicular
Simple vector library for Rust
https://github.com/jdonszelmann/perpendicular
Last synced: 3 months ago
JSON representation
Simple vector library for Rust
- Host: GitHub
- URL: https://github.com/jdonszelmann/perpendicular
- Owner: jdonszelmann
- License: apache-2.0
- Created: 2021-06-20T22:28:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-21T15:17:34.000Z (almost 5 years ago)
- Last Synced: 2026-01-14T11:39:57.109Z (6 months ago)
- Language: Rust
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Perpendicular
[](https://docs.rs/perpendicular)
[](https://crates.io/crates/perpendicular)
[](https://github.com/jonay2000/perpendicular/actions/workflows/ci.yml)
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.
```rust
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](./LICENSE)