Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 490 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 490 Bytes

melius-vectors

Simple 2-4 dimensional vectors that can be easily created and manipulated.

Installation

Under your Cargo.toml's [Dependencies], add the following dependency:

melius-vectors = { git = "https://github.com/PutterBeanut/melius-vectors/" }

Usage

use melius_vectors::vector2::Vector2;

let mut my_vector: Vector2<f32> = Vector2::empty();
my_vector += Vector2::new(20, 10);
my_vector /= Vector2::new(4, 2);

println!("{}", my_vector); // Prints "{5.0, 5.0}"