Type Definition nalgebra::base::VectorN [−][src]
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]
impl<N, R: DimName> VectorN<N, R> where
N: Scalar + Zero + One,
DefaultAllocator: Allocator<N, R>,
pub fn x() -> Self where
R::Value: Cmp<U0, Output = Greater>,
[src]
pub fn x() -> Self where
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]
pub fn y() -> Self where
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]
pub fn z() -> Self where
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]
pub fn w() -> Self where
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]
pub fn a() -> Self where
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]
pub fn b() -> Self where
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]
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.
pub fn y_axis() -> Unit<Self> where
R::Value: Cmp<U1, Output = Greater>,
[src]
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.
pub fn z_axis() -> Unit<Self> where
R::Value: Cmp<U2, Output = Greater>,
[src]
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.
pub fn w_axis() -> Unit<Self> where
R::Value: Cmp<U3, Output = Greater>,
[src]
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.
pub fn a_axis() -> Unit<Self> where
R::Value: Cmp<U4, Output = Greater>,
[src]
pub fn a_axis() -> Unit<Self> where
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]
pub fn b_axis() -> Unit<Self> where
R::Value: Cmp<U5, Output = Greater>,
The unit column vector with a 1 as its sixth component, and zero elsewhere.
Trait Implementations
impl<N1, N2, D> SubsetOf<VectorN<N2, DimNameSum<D, U1>>> for Point<N1, D> where
D: DimNameAdd<U1>,
N1: Scalar,
N2: Scalar + Zero + One + ClosedDiv + SupersetOf<N1>,
DefaultAllocator: Allocator<N1, D> + Allocator<N1, DimNameSum<D, U1>> + Allocator<N2, DimNameSum<D, U1>> + Allocator<N2, D>,
[src]
impl<N1, N2, D> SubsetOf<VectorN<N2, DimNameSum<D, U1>>> for Point<N1, D> where
D: DimNameAdd<U1>,
N1: Scalar,
N2: Scalar + Zero + One + ClosedDiv + SupersetOf<N1>,
DefaultAllocator: Allocator<N1, D> + Allocator<N1, DimNameSum<D, U1>> + Allocator<N2, DimNameSum<D, U1>> + Allocator<N2, D>,
fn to_superset(&self) -> VectorN<N2, DimNameSum<D, U1>>
[src]
fn to_superset(&self) -> VectorN<N2, DimNameSum<D, U1>>
The inclusion map: converts self
to the equivalent element of its superset.
fn is_in_subset(v: &VectorN<N2, DimNameSum<D, U1>>) -> bool
[src]
fn is_in_subset(v: &VectorN<N2, DimNameSum<D, U1>>) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
unsafe fn from_superset_unchecked(v: &VectorN<N2, DimNameSum<D, U1>>) -> Self
[src]
unsafe fn from_superset_unchecked(v: &VectorN<N2, DimNameSum<D, U1>>) -> Self
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
fn from_superset(element: &T) -> Option<Self>
[src]
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its superset. Read more
impl<N: Real, D: DimName, R> Mul<VectorN<N, D>> for Isometry<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
[src]
impl<N: Real, D: DimName, R> Mul<VectorN<N, D>> for Isometry<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
type Output = VectorN<N, D>
The resulting type after applying the *
operator.
fn mul(self, right: VectorN<N, D>) -> Self::Output
[src]
fn mul(self, right: VectorN<N, D>) -> Self::Output
Performs the *
operation.
impl<'a, N: Real, D: DimName, R> Mul<VectorN<N, D>> for &'a Isometry<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
[src]
impl<'a, N: Real, D: DimName, R> Mul<VectorN<N, D>> for &'a Isometry<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
type Output = VectorN<N, D>
The resulting type after applying the *
operator.
fn mul(self, right: VectorN<N, D>) -> Self::Output
[src]
fn mul(self, right: VectorN<N, D>) -> Self::Output
Performs the *
operation.
impl<'b, N: Real, D: DimName, R> Mul<&'b VectorN<N, D>> for Isometry<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
[src]
impl<'b, N: Real, D: DimName, R> Mul<&'b VectorN<N, D>> for Isometry<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
type Output = VectorN<N, D>
The resulting type after applying the *
operator.
fn mul(self, right: &'b VectorN<N, D>) -> Self::Output
[src]
fn mul(self, right: &'b VectorN<N, D>) -> Self::Output
Performs the *
operation.
impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b VectorN<N, D>> for &'a Isometry<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
[src]
impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b VectorN<N, D>> for &'a Isometry<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
type Output = VectorN<N, D>
The resulting type after applying the *
operator.
fn mul(self, right: &'b VectorN<N, D>) -> Self::Output
[src]
fn mul(self, right: &'b VectorN<N, D>) -> Self::Output
Performs the *
operation.
impl<N: Real, D: DimName, R> Mul<VectorN<N, D>> for Similarity<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
[src]
impl<N: Real, D: DimName, R> Mul<VectorN<N, D>> for Similarity<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
type Output = VectorN<N, D>
The resulting type after applying the *
operator.
fn mul(self, right: VectorN<N, D>) -> Self::Output
[src]
fn mul(self, right: VectorN<N, D>) -> Self::Output
Performs the *
operation.
impl<'a, N: Real, D: DimName, R> Mul<VectorN<N, D>> for &'a Similarity<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
[src]
impl<'a, N: Real, D: DimName, R> Mul<VectorN<N, D>> for &'a Similarity<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
type Output = VectorN<N, D>
The resulting type after applying the *
operator.
fn mul(self, right: VectorN<N, D>) -> Self::Output
[src]
fn mul(self, right: VectorN<N, D>) -> Self::Output
Performs the *
operation.
impl<'b, N: Real, D: DimName, R> Mul<&'b VectorN<N, D>> for Similarity<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
[src]
impl<'b, N: Real, D: DimName, R> Mul<&'b VectorN<N, D>> for Similarity<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
type Output = VectorN<N, D>
The resulting type after applying the *
operator.
fn mul(self, right: &'b VectorN<N, D>) -> Self::Output
[src]
fn mul(self, right: &'b VectorN<N, D>) -> Self::Output
Performs the *
operation.
impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b VectorN<N, D>> for &'a Similarity<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
[src]
impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b VectorN<N, D>> for &'a Similarity<N, D, R> where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
type Output = VectorN<N, D>
The resulting type after applying the *
operator.
fn mul(self, right: &'b VectorN<N, D>) -> Self::Output
[src]
fn mul(self, right: &'b VectorN<N, D>) -> Self::Output
Performs the *
operation.
impl<N, D: DimNameAdd<U1>, C: TCategory> Mul<VectorN<N, D>> for Transform<N, D, C> where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
[src]
impl<N, D: DimNameAdd<U1>, C: TCategory> Mul<VectorN<N, D>> for Transform<N, D, C> where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
type Output = VectorN<N, D>
The resulting type after applying the *
operator.
fn mul(self, rhs: VectorN<N, D>) -> Self::Output
[src]
fn mul(self, rhs: VectorN<N, D>) -> Self::Output
Performs the *
operation.
impl<'a, N, D: DimNameAdd<U1>, C: TCategory> Mul<VectorN<N, D>> for &'a Transform<N, D, C> where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
[src]
impl<'a, N, D: DimNameAdd<U1>, C: TCategory> Mul<VectorN<N, D>> for &'a Transform<N, D, C> where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
type Output = VectorN<N, D>
The resulting type after applying the *
operator.
fn mul(self, rhs: VectorN<N, D>) -> Self::Output
[src]
fn mul(self, rhs: VectorN<N, D>) -> Self::Output
Performs the *
operation.
impl<'b, N, D: DimNameAdd<U1>, C: TCategory> Mul<&'b VectorN<N, D>> for Transform<N, D, C> where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
[src]
impl<'b, N, D: DimNameAdd<U1>, C: TCategory> Mul<&'b VectorN<N, D>> for Transform<N, D, C> where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
type Output = VectorN<N, D>
The resulting type after applying the *
operator.
fn mul(self, rhs: &'b VectorN<N, D>) -> Self::Output
[src]
fn mul(self, rhs: &'b VectorN<N, D>) -> Self::Output
Performs the *
operation.
impl<'a, 'b, N, D: DimNameAdd<U1>, C: TCategory> Mul<&'b VectorN<N, D>> for &'a Transform<N, D, C> where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
[src]
impl<'a, 'b, N, D: DimNameAdd<U1>, C: TCategory> Mul<&'b VectorN<N, D>> for &'a Transform<N, D, C> where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,