Expand description
A statically sized D-dimensional column vector.
Implementations§
source§impl<N, R: DimName> VectorN<N, R>where
N: Scalar + Zero + One,
DefaultAllocator: Allocator<N, R>,
impl<N, R: DimName> VectorN<N, R>where
N: Scalar + Zero + One,
DefaultAllocator: Allocator<N, R>,
sourcepub fn x() -> Selfwhere
R::Value: Cmp<U0, Output = Greater>,
pub fn x() -> Selfwhere
R::Value: Cmp<U0, Output = Greater>,
The column vector with a 1 as its first component, and zero elsewhere.
sourcepub fn y() -> Selfwhere
R::Value: Cmp<U1, Output = Greater>,
pub fn y() -> Selfwhere
R::Value: Cmp<U1, Output = Greater>,
The column vector with a 1 as its second component, and zero elsewhere.
sourcepub fn z() -> Selfwhere
R::Value: Cmp<U2, Output = Greater>,
pub fn z() -> Selfwhere
R::Value: Cmp<U2, Output = Greater>,
The column vector with a 1 as its third component, and zero elsewhere.
sourcepub fn w() -> Selfwhere
R::Value: Cmp<U3, Output = Greater>,
pub fn w() -> Selfwhere
R::Value: Cmp<U3, Output = Greater>,
The column vector with a 1 as its fourth component, and zero elsewhere.
sourcepub fn a() -> Selfwhere
R::Value: Cmp<U4, Output = Greater>,
pub fn a() -> Selfwhere
R::Value: Cmp<U4, Output = Greater>,
The column vector with a 1 as its fifth component, and zero elsewhere.
sourcepub fn b() -> Selfwhere
R::Value: Cmp<U5, Output = Greater>,
pub fn b() -> Selfwhere
R::Value: Cmp<U5, Output = Greater>,
The column vector with a 1 as its sixth component, and zero elsewhere.
sourcepub fn x_axis() -> Unit<Self>where
R::Value: Cmp<U0, Output = Greater>,
pub fn x_axis() -> Unit<Self>where
R::Value: Cmp<U0, Output = Greater>,
The unit column vector with a 1 as its first component, and zero elsewhere.
sourcepub fn y_axis() -> Unit<Self>where
R::Value: Cmp<U1, Output = Greater>,
pub fn y_axis() -> Unit<Self>where
R::Value: Cmp<U1, Output = Greater>,
The unit column vector with a 1 as its second component, and zero elsewhere.
sourcepub fn z_axis() -> Unit<Self>where
R::Value: Cmp<U2, Output = Greater>,
pub fn z_axis() -> Unit<Self>where
R::Value: Cmp<U2, Output = Greater>,
The unit column vector with a 1 as its third component, and zero elsewhere.
sourcepub fn w_axis() -> Unit<Self>where
R::Value: Cmp<U3, Output = Greater>,
pub fn w_axis() -> Unit<Self>where
R::Value: Cmp<U3, Output = Greater>,
The unit column vector with a 1 as its fourth component, and zero elsewhere.