melius-vectors 0.1.2

Simple 2-4 dimensional vectors that can be easily created and manipulated.
Documentation
  • Coverage
  • 0%
    0 out of 28 items documented0 out of 15 items with examples
  • Size
  • Source code size: 27.01 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.65 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • PutterBeanut/melius-vectors
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • PutterBeanut

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}"