Type Definition Vector2
Other items inperpendicular
type Vector2<T> = Vector<T, 2>;
Type alias for 2d vector
impl<T> Vector2<T>
pub const fn new2(x: T, y: T) -> Self
Create a new 2D vector
let v = Vector::new2(1, 2); assert_eq!(v.dimensions(), 2);