Type Definition nalgebra::base::VectorN [−][src]
type VectorN<N, D> = Matrix<N, D, U1, Owned<N, D, U1>>;
A statically sized D-dimensional column vector.
Implementations
impl<N, R: DimName> VectorN<N, R> where
N: Scalar + Zero + One,
DefaultAllocator: Allocator<N, R>,
[src]
impl<N, R: DimName> VectorN<N, R> where
N: Scalar + Zero + One,
DefaultAllocator: Allocator<N, R>,
[src]pub fn ith(i: usize, val: N) -> Self
[src]
The column vector with val
as its i-th component.
pub fn ith_axis(i: usize) -> Unit<Self>
[src]
The column unit vector with N::one()
as its i-th component.
pub fn x() -> Self where
R::Value: Cmp<U0, Output = Greater>,
[src]
R::Value: Cmp<U0, Output = Greater>,
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]
R::Value: Cmp<U1, Output = Greater>,
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]
R::Value: Cmp<U2, Output = Greater>,
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]
R::Value: Cmp<U3, Output = Greater>,
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]
R::Value: Cmp<U4, Output = Greater>,
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]
R::Value: Cmp<U5, Output = Greater>,
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]
R::Value: Cmp<U0, Output = Greater>,
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]
R::Value: Cmp<U1, Output = Greater>,
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]
R::Value: Cmp<U2, Output = Greater>,
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]
R::Value: Cmp<U3, Output = Greater>,
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]
R::Value: Cmp<U4, Output = Greater>,
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]
R::Value: Cmp<U5, Output = Greater>,
The unit column vector with a 1 as its sixth component, and zero elsewhere.
impl<N: ComplexField, D: DimName> VectorN<N, D> where
DefaultAllocator: Allocator<N, D>,
[src]
impl<N: ComplexField, D: DimName> VectorN<N, D> where
DefaultAllocator: Allocator<N, D>,
[src]pub fn orthonormalize(vs: &mut [Self]) -> usize
[src]
Orthonormalizes the given family of vectors. The largest free family of vectors is moved at the beginning of the array and its size is returned. Vectors at an indices larger or equal to this length can be modified to an arbitrary value.
pub fn orthonormal_subspace_basis<F>(vs: &[Self], f: F) where
F: FnMut(&Self) -> bool,
[src]
F: FnMut(&Self) -> bool,
Applies the given closure to each element of the orthonormal basis of the subspace
orthogonal to free family of vectors vs
. If vs
is not a free family, the result is
unspecified.
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]
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]