2 releases

0.1.1 Oct 15, 2023
0.1.0 Oct 15, 2023

#1046 in Math

48 downloads per month
Used in 5 crates (2 directly)

MIT license

13KB
244 lines

vecto

smol rust lib for Vector2.

  • is generic over floats
  • has methods
  • overloads operators

usage

use vecto::Vec2;
let v = Vec2::splat(5.0);

lib.rs:

Provides a Vector2.

let mut v = Vec2::new(5.0, 7.0);
v *= 2.0;
assert_eq!(v, Vec2::new(10.0, 14.0));

Dependencies

~23KB