melius-vectors

Crates.iomelius-vectors
lib.rsmelius-vectors
version0.1.2
sourcesrc
created_at2021-10-05 21:16:29.444321
updated_at2022-03-31 15:42:35.985183
descriptionSimple 2-4 dimensional vectors that can be easily created and manipulated.
homepagehttps://github.com/PutterBeanut/melius-vectors
repositoryhttps://github.com/PutterBeanut/melius-vectors
max_upload_size
id460885
size27,328
Chris Bannoura (PutterBeanut)

documentation

https://github.com/PutterBeanut/melius-vectors

README

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}"
Commit count: 12

cargo fmt