vector3
What is it?
vector3
is a rust library for dealing with 3D mathematical vectors.
What does it do?
vector3
allows for creation of three dimensional vectors as well as performing arithmetic operaitons on them, some of which are: addition, subtraction, multiplication, division of the magnitude, cross and dot prodcuts and normalizaton.
How do I get started?
Make sure you have a project set up using cargo
then:
If using cargo-edit
:
cd
into the said project directory and execute
cargo add vector
If not using cargo-edit
:
Add this under your dependencies in Cargo.toml
vector3 = "1.1.0"
Examples:
let a = from_i32;
let b = from_i32;
assert_eq!;
let a = from_i32;
let b = from_i32;
assert_eq!;
let a = from_i32;
let b = from_i32;
assert_eq!;