[][src]Type Definition nalgebra::base::VectorN

type VectorN<N, D> = MatrixMN<N, D, U1>;

A statically sized D-dimensional column vector.

Methods

impl<N, R: DimName> VectorN<N, R> where
    N: Scalar + Zero + One,
    DefaultAllocator: Allocator<N, R>, 
[src]

pub fn x() -> Self where
    R::Value: Cmp<U0, Output = Greater>, 
[src]

The column vector with a 1 as its first component, and zero elsewhere.

pub fn y() -> Self where
    R::Value: Cmp<U1, Output = Greater>, 
[src]

The column vector with a 1 as its second component, and zero elsewhere.

pub fn z() -> Self where
    R::Value: Cmp<U2, Output = Greater>, 
[src]

The column vector with a 1 as its third component, and zero elsewhere.

pub fn w() -> Self where
    R::Value: Cmp<U3, Output = Greater>, 
[src]

The column vector with a 1 as its fourth component, and zero elsewhere.

pub fn a() -> Self where
    R::Value: Cmp<U4, Output = Greater>, 
[src]

The column vector with a 1 as its fifth component, and zero elsewhere.

pub fn b() -> Self where
    R::Value: Cmp<U5, Output = Greater>, 
[src]

The column vector with a 1 as its sixth component, and zero elsewhere.

pub fn x_axis() -> Unit<Self> where
    R::Value: Cmp<U0, Output = Greater>, 
[src]

The unit column vector with a 1 as its first component, and zero elsewhere.

pub fn y_axis() -> Unit<Self> where
    R::Value: Cmp<U1, Output = Greater>, 
[src]

The unit column vector with a 1 as its second component, and zero elsewhere.

pub fn z_axis() -> Unit<Self> where
    R::Value: Cmp<U2, Output = Greater>, 
[src]

The unit column vector with a 1 as its third component, and zero elsewhere.

pub fn w_axis() -> Unit<Self> where
    R::Value: Cmp<U3, Output = Greater>, 
[src]

The unit column vector with a 1 as its fourth component, and zero elsewhere.

pub fn a_axis() -> Unit<Self> where
    R::Value: Cmp<U4, Output = Greater>, 
[src]

The unit column vector with a 1 as its fifth component, and zero elsewhere.

pub fn b_axis() -> Unit<Self> where
    R::Value: Cmp<U5, Output = Greater>, 
[src]

The unit column vector with a 1 as its sixth component, and zero elsewhere.

Trait Implementations

impl<N: Scalar + Zero + One, D: DimName> From<Point<N, D>> for VectorN<N, DimNameSum<D, U1>> where
    D: DimNameAdd<U1>,
    DefaultAllocator: Allocator<N, D> + Allocator<N, DimNameSum<D, U1>>, 
[src]