Function riddle_math::vec2[][src]

pub fn vec2<T>(x: T, y: T) -> Vector2<T>

Utility function to abbreviate Vector2 creation

Example

assert_eq!(vec2(1,2), Vector2::new(1,2));