vec2

Function vec2 

Source
pub fn vec2<A: Into<f32>, B: Into<f32>>(a: A, b: B) -> Vec2d
Expand description

A convenience function to create a new Vec2d.

ยงExamples

let vec = vec2(1.0, 2.0);
assert_eq!(vec.x, 1.0);
assert_eq!(vec.y, 2.0);