2 releases

0.1.1 Oct 15, 2023
0.1.0 Oct 15, 2023

#850 in Math

Download history 59/week @ 2024-04-01 18/week @ 2024-04-08 54/week @ 2024-04-15 32/week @ 2024-04-22 16/week @ 2024-04-29 29/week @ 2024-05-06 15/week @ 2024-05-13 16/week @ 2024-05-20 29/week @ 2024-05-27 18/week @ 2024-06-03 14/week @ 2024-06-10 16/week @ 2024-06-17 24/week @ 2024-06-24 7/week @ 2024-07-08 22/week @ 2024-07-15

54 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