vector2
Vector2 is a simple library for using and creating 2D vectors.
Example
use Vector2;
// Create a Vector2
let vector2 = new;
// (1.0, 0.0)
let other = RIGHT;
// Add two Vector2s
let added = vector2 + other;
assert_eq!;
assert_eq!;
Vector2 is a simple library for using and creating 2D vectors.
use Vector2;
// Create a Vector2
let vector2 = new;
// (1.0, 0.0)
let other = RIGHT;
// Add two Vector2s
let added = vector2 + other;
assert_eq!;
assert_eq!;