veccentric 0.1.0

A small 2D vector library inspired by p5.Vector.
docs.rs failed to build veccentric-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: veccentric-0.3.1

veccentric

A small 2D vector library inspired by p5.Vector. Meant to be used in small gamedev projects.

use veccentric::Vecctor;

let a = Vecctor::new(3.0, 4.0);
assert_eq!(a.mag(), 5.0);

let five_a = a * 5.0;
assert_eq!(five_a.mag(), 25.0);

let b = Vecctor::new(-3.0, 0.0);
let c = a + b; // (0, 4.0)
assert_eq!(c.angle(), std::f64::consts::PI / 2.0);