Vector3

Type Alias Vector3 

Source
pub type Vector3<T> = Vector<T, 3>;
Expand description

Type alias for 3d vector

Aliased Type§

pub struct Vector3<T> { /* private fields */ }

Implementations§

Source§

impl<T> Vector3<T>

Source

pub const fn new3(x: T, y: T, z: T) -> Self

Create a new 2D vector

let v = Vector::new3(1, 2, 3);

assert_eq!(v.dimensions(), 3);