Struct nalgebra::geometry::Transform[][src]

#[repr(C)]
pub struct Transform<T: RealField, C: TCategory, const D: usize> where
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
{ /* fields omitted */ }
Expand description

A transformation matrix in homogeneous coordinates.

It is stored as a matrix with dimensions (D + 1, D + 1), e.g., it stores a 4x4 matrix for a 3D transformation.

Implementations

impl<T: RealField, C: TCategory, const D: usize> Transform<T, C, D> where
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

pub fn from_matrix_unchecked(
    matrix: OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>
) -> Self
[src]

Creates a new transformation from the given homogeneous matrix. The transformation category of Self is not checked to be verified by the given matrix.

pub fn into_inner(
    self
) -> OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>
[src]

Retrieves the underlying matrix.

Examples


let m = Matrix3::new(1.0, 2.0, 0.0,
                     3.0, 4.0, 0.0,
                     0.0, 0.0, 1.0);
let t = Transform2::from_matrix_unchecked(m);
assert_eq!(t.into_inner(), m);

pub fn unwrap(
    self
) -> OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>
[src]

👎 Deprecated:

use .into_inner() instead

Retrieves the underlying matrix. Deprecated: Use Transform::into_inner instead.

pub fn matrix(
    &self
) -> &OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>
[src]

A reference to the underlying matrix.

Examples


let m = Matrix3::new(1.0, 2.0, 0.0,
                     3.0, 4.0, 0.0,
                     0.0, 0.0, 1.0);
let t = Transform2::from_matrix_unchecked(m);
assert_eq!(*t.matrix(), m);

pub fn matrix_mut_unchecked(
    &mut self
) -> &mut OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>
[src]

A mutable reference to the underlying matrix.

It is _unchecked because direct modifications of this matrix may break invariants identified by this transformation category.

Examples


let m = Matrix3::new(1.0, 2.0, 0.0,
                     3.0, 4.0, 0.0,
                     0.0, 0.0, 1.0);
let mut t = Transform2::from_matrix_unchecked(m);
t.matrix_mut_unchecked().m12 = 42.0;
t.matrix_mut_unchecked().m23 = 90.0;


let expected = Matrix3::new(1.0, 42.0, 0.0,
                            3.0, 4.0,  90.0,
                            0.0, 0.0,  1.0);
assert_eq!(*t.matrix(), expected);

pub fn set_category<CNew: SuperTCategoryOf<C>>(self) -> Transform<T, CNew, D>[src]

Sets the category of this transform.

This can be done only if the new category is more general than the current one, e.g., a transform with category TProjective cannot be converted to a transform with category TAffine because not all projective transformations are affine (the other way-round is valid though).

pub fn clone_owned(&self) -> Transform<T, C, D>[src]

👎 Deprecated:

This method is redundant with automatic Copy and the .clone() method and will be removed in a future release.

Clones this transform into one that owns its data.

pub fn to_homogeneous(
    &self
) -> OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>
[src]

Converts this transform into its equivalent homogeneous transformation matrix.

Examples


let m = Matrix3::new(1.0, 2.0, 0.0,
                     3.0, 4.0, 0.0,
                     0.0, 0.0, 1.0);
let t = Transform2::from_matrix_unchecked(m);
assert_eq!(t.into_inner(), m);

#[must_use = "Did you mean to use try_inverse_mut()?"]
pub fn try_inverse(self) -> Option<Transform<T, C, D>>
[src]

Attempts to invert this transformation. You may use .inverse instead of this transformation has a subcategory of TProjective (i.e. if it is a Projective{2,3} or Affine{2,3}).

Examples


let m = Matrix3::new(2.0, 2.0, -0.3,
                     3.0, 4.0, 0.1,
                     0.0, 0.0, 1.0);
let t = Transform2::from_matrix_unchecked(m);
let inv_t = t.try_inverse().unwrap();
assert_relative_eq!(t * inv_t, Transform2::identity());
assert_relative_eq!(inv_t * t, Transform2::identity());

// Non-invertible case.
let m = Matrix3::new(0.0, 2.0, 1.0,
                     3.0, 0.0, 5.0,
                     0.0, 0.0, 0.0);
let t = Transform2::from_matrix_unchecked(m);
assert!(t.try_inverse().is_none());

#[must_use = "Did you mean to use inverse_mut()?"]
pub fn inverse(self) -> Transform<T, C, D> where
    C: SubTCategoryOf<TProjective>, 
[src]

Inverts this transformation. Use .try_inverse if this transform has the TGeneral category (i.e., a Transform{2,3} may not be invertible).

Examples


let m = Matrix3::new(2.0, 2.0, -0.3,
                     3.0, 4.0, 0.1,
                     0.0, 0.0, 1.0);
let proj = Projective2::from_matrix_unchecked(m);
let inv_t = proj.inverse();
assert_relative_eq!(proj * inv_t, Projective2::identity());
assert_relative_eq!(inv_t * proj, Projective2::identity());

pub fn try_inverse_mut(&mut self) -> bool[src]

Attempts to invert this transformation in-place. You may use .inverse_mut instead of this transformation has a subcategory of TProjective.

Examples


let m = Matrix3::new(2.0, 2.0, -0.3,
                     3.0, 4.0, 0.1,
                     0.0, 0.0, 1.0);
let t = Transform2::from_matrix_unchecked(m);
let mut inv_t = t;
assert!(inv_t.try_inverse_mut());
assert_relative_eq!(t * inv_t, Transform2::identity());
assert_relative_eq!(inv_t * t, Transform2::identity());

// Non-invertible case.
let m = Matrix3::new(0.0, 2.0, 1.0,
                     3.0, 0.0, 5.0,
                     0.0, 0.0, 0.0);
let mut t = Transform2::from_matrix_unchecked(m);
assert!(!t.try_inverse_mut());

pub fn inverse_mut(&mut self) where
    C: SubTCategoryOf<TProjective>, 
[src]

Inverts this transformation in-place. Use .try_inverse_mut if this transform has the TGeneral category (it may not be invertible).

Examples


let m = Matrix3::new(2.0, 2.0, -0.3,
                     3.0, 4.0, 0.1,
                     0.0, 0.0, 1.0);
let proj = Projective2::from_matrix_unchecked(m);
let mut inv_t = proj;
inv_t.inverse_mut();
assert_relative_eq!(proj * inv_t, Projective2::identity());
assert_relative_eq!(inv_t * proj, Projective2::identity());

impl<T, C, const D: usize> Transform<T, C, D> where
    T: RealField,
    C: TCategory,
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>> + Allocator<T, DimNameSum<Const<D>, U1>>, 
[src]

pub fn transform_point(&self, pt: &Point<T, D>) -> Point<T, D>[src]

Transform the given point by this transformation.

This is the same as the multiplication self * pt.

pub fn transform_vector(&self, v: &SVector<T, D>) -> SVector<T, D>[src]

Transform the given vector by this transformation, ignoring the translational component of the transformation.

This is the same as the multiplication self * v.

impl<T: RealField, C: TCategory, const D: usize> Transform<T, C, D> where
    Const<D>: DimNameAdd<U1>,
    C: SubTCategoryOf<TProjective>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>> + Allocator<T, DimNameSum<Const<D>, U1>>, 
[src]

pub fn inverse_transform_point(&self, pt: &Point<T, D>) -> Point<T, D>[src]

Transform the given point by the inverse of this transformation. This may be cheaper than inverting the transformation and transforming the point.

pub fn inverse_transform_vector(&self, v: &SVector<T, D>) -> SVector<T, D>[src]

Transform the given vector by the inverse of this transformation. This may be cheaper than inverting the transformation and transforming the vector.

impl<T: RealField, const D: usize> Transform<T, TGeneral, D> where
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

pub fn matrix_mut(
    &mut self
) -> &mut OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>
[src]

A mutable reference to underlying matrix. Use .matrix_mut_unchecked instead if this transformation category is not TGeneral.

impl<T: RealField, C: TCategory, const D: usize> Transform<T, C, D> where
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

pub fn identity() -> Self[src]

Creates a new identity transform.

Example


let pt = Point2::new(1.0, 2.0);
let t = Projective2::identity();
assert_eq!(t * pt, pt);

let aff = Affine2::identity();
assert_eq!(aff * pt, pt);

let aff = Transform2::identity();
assert_eq!(aff * pt, pt);

// Also works in 3D.
let pt = Point3::new(1.0, 2.0, 3.0);
let t = Projective3::identity();
assert_eq!(t * pt, pt);

let aff = Affine3::identity();
assert_eq!(aff * pt, pt);

let aff = Transform3::identity();
assert_eq!(aff * pt, pt);

Trait Implementations

impl<T: RealField, C: TCategory, const D: usize> AbsDiffEq<Transform<T, C, D>> for Transform<T, C, D> where
    Const<D>: DimNameAdd<U1>,
    T::Epsilon: Copy,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Epsilon = T::Epsilon

Used for specifying relative comparisons.

fn default_epsilon() -> Self::Epsilon[src]

The default tolerance to use when testing values that are close together. Read more

fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool[src]

A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more

fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool[src]

The inverse of AbsDiffEq::abs_diff_eq.

impl<T: RealField, C: TCategory, const D: usize> Clone for Transform<T, C, D> where
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn clone(&self) -> Self[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: Debug + RealField, C: Debug + TCategory, const D: usize> Debug for Transform<T, C, D> where
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'b, T, C, const D: usize> Div<&'b Rotation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: &'b Rotation<T, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, 'b, T, C, const D: usize> Div<&'b Rotation<T, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: &'b Rotation<T, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'b, T, C> Div<&'b Transform<T, C, 3_usize>> for UnitQuaternion<T> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the / operator.

fn div(self, rhs: &'b Transform<T, C, 3>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, 'b, T, C> Div<&'b Transform<T, C, 3_usize>> for &'a UnitQuaternion<T> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the / operator.

fn div(self, rhs: &'b Transform<T, C, 3>) -> Self::Output[src]

Performs the / operation. Read more

impl<'b, T, C, const D: usize> Div<&'b Transform<T, C, D>> for Rotation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: &'b Transform<T, C, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, 'b, T, C, const D: usize> Div<&'b Transform<T, C, D>> for &'a Rotation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: &'b Transform<T, C, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'b, T, C, const D: usize> Div<&'b Transform<T, C, D>> for Translation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: &'b Transform<T, C, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, 'b, T, C, const D: usize> Div<&'b Transform<T, C, D>> for &'a Translation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: &'b Transform<T, C, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'b, T, CA, CB, const D: usize> Div<&'b Transform<T, CB, D>> for Transform<T, CA, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    CA: TCategoryMul<CB>,
    CB: SubTCategoryOf<TProjective>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, CA::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: &'b Transform<T, CB, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, 'b, T, CA, CB, const D: usize> Div<&'b Transform<T, CB, D>> for &'a Transform<T, CA, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    CA: TCategoryMul<CB>,
    CB: SubTCategoryOf<TProjective>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, CA::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: &'b Transform<T, CB, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'b, T, C, const D: usize> Div<&'b Translation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: &'b Translation<T, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, 'b, T, C, const D: usize> Div<&'b Translation<T, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: &'b Translation<T, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'b, T, C> Div<&'b Unit<Quaternion<T>>> for Transform<T, C, 3> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the / operator.

fn div(self, rhs: &'b UnitQuaternion<T>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, 'b, T, C> Div<&'b Unit<Quaternion<T>>> for &'a Transform<T, C, 3> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the / operator.

fn div(self, rhs: &'b UnitQuaternion<T>) -> Self::Output[src]

Performs the / operation. Read more

impl<T, C, const D: usize> Div<Rotation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: Rotation<T, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, T, C, const D: usize> Div<Rotation<T, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: Rotation<T, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<T, C> Div<Transform<T, C, 3_usize>> for UnitQuaternion<T> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the / operator.

fn div(self, rhs: Transform<T, C, 3>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, T, C> Div<Transform<T, C, 3_usize>> for &'a UnitQuaternion<T> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the / operator.

fn div(self, rhs: Transform<T, C, 3>) -> Self::Output[src]

Performs the / operation. Read more

impl<T, C, const D: usize> Div<Transform<T, C, D>> for Rotation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: Transform<T, C, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, T, C, const D: usize> Div<Transform<T, C, D>> for &'a Rotation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: Transform<T, C, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<T, C, const D: usize> Div<Transform<T, C, D>> for Translation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: Transform<T, C, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, T, C, const D: usize> Div<Transform<T, C, D>> for &'a Translation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: Transform<T, C, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<T, CA, CB, const D: usize> Div<Transform<T, CB, D>> for Transform<T, CA, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    CA: TCategoryMul<CB>,
    CB: SubTCategoryOf<TProjective>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, CA::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: Transform<T, CB, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, T, CA, CB, const D: usize> Div<Transform<T, CB, D>> for &'a Transform<T, CA, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    CA: TCategoryMul<CB>,
    CB: SubTCategoryOf<TProjective>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, CA::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: Transform<T, CB, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<T, C, const D: usize> Div<Translation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: Translation<T, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, T, C, const D: usize> Div<Translation<T, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the / operator.

fn div(self, rhs: Translation<T, D>) -> Self::Output[src]

Performs the / operation. Read more

impl<T, C> Div<Unit<Quaternion<T>>> for Transform<T, C, 3> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the / operator.

fn div(self, rhs: UnitQuaternion<T>) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, T, C> Div<Unit<Quaternion<T>>> for &'a Transform<T, C, 3> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the / operator.

fn div(self, rhs: UnitQuaternion<T>) -> Self::Output[src]

Performs the / operation. Read more

impl<'b, T, C, const D: usize> DivAssign<&'b Rotation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn div_assign(&mut self, rhs: &'b Rotation<T, D>)[src]

Performs the /= operation. Read more

impl<'b, T, CA, CB, const D: usize> DivAssign<&'b Transform<T, CB, D>> for Transform<T, CA, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    CA: SuperTCategoryOf<CB>,
    CB: SubTCategoryOf<TProjective>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn div_assign(&mut self, rhs: &'b Transform<T, CB, D>)[src]

Performs the /= operation. Read more

impl<'b, T, C, const D: usize> DivAssign<&'b Translation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn div_assign(&mut self, rhs: &'b Translation<T, D>)[src]

Performs the /= operation. Read more

impl<'b, T, C> DivAssign<&'b Unit<Quaternion<T>>> for Transform<T, C, 3> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategory
[src]

fn div_assign(&mut self, rhs: &'b UnitQuaternion<T>)[src]

Performs the /= operation. Read more

impl<T, C, const D: usize> DivAssign<Rotation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn div_assign(&mut self, rhs: Rotation<T, D>)[src]

Performs the /= operation. Read more

impl<T, CA, CB, const D: usize> DivAssign<Transform<T, CB, D>> for Transform<T, CA, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    CA: SuperTCategoryOf<CB>,
    CB: SubTCategoryOf<TProjective>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn div_assign(&mut self, rhs: Transform<T, CB, D>)[src]

Performs the /= operation. Read more

impl<T, C, const D: usize> DivAssign<Translation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn div_assign(&mut self, rhs: Translation<T, D>)[src]

Performs the /= operation. Read more

impl<T, C> DivAssign<Unit<Quaternion<T>>> for Transform<T, C, 3> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategory
[src]

fn div_assign(&mut self, rhs: UnitQuaternion<T>)[src]

Performs the /= operation. Read more

impl<T: RealField, C, const D: usize> From<Transform<T, C, D>> for OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>> where
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn from(t: Transform<T, C, D>) -> Self[src]

Performs the conversion.

impl<T: RealField, C: TCategory, const D: usize> Index<(usize, usize)> for Transform<T, C, D> where
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = T

The returned type after indexing.

fn index(&self, ij: (usize, usize)) -> &T[src]

Performs the indexing (container[index]) operation. Read more

impl<T: RealField, const D: usize> IndexMut<(usize, usize)> for Transform<T, TGeneral, D> where
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn index_mut(&mut self, ij: (usize, usize)) -> &mut T[src]

Performs the mutable indexing (container[index]) operation. Read more

impl<'b, T, C, R, const D: usize> Mul<&'b Isometry<T, R, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Isometry<T, R, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, T, C, R, const D: usize> Mul<&'b Isometry<T, R, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Isometry<T, R, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, T, C, const D: usize> Mul<&'b Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = SVector<T, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b SVector<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, T, C, const D: usize> Mul<&'b Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = SVector<T, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b SVector<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, T, C, const D: usize> Mul<&'b Point<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Point<T, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Point<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, T, C, const D: usize> Mul<&'b Point<T, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Point<T, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Point<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, T, C, const D: usize> Mul<&'b Rotation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Rotation<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, T, C, const D: usize> Mul<&'b Rotation<T, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Rotation<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, T, C, R, const D: usize> Mul<&'b Similarity<T, R, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Similarity<T, R, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, T, C, R, const D: usize> Mul<&'b Similarity<T, R, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Similarity<T, R, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, T, C> Mul<&'b Transform<T, C, 3_usize>> for UnitQuaternion<T> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Transform<T, C, 3>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, T, C> Mul<&'b Transform<T, C, 3_usize>> for &'a UnitQuaternion<T> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Transform<T, C, 3>) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, T, C, const D: usize> Mul<&'b Transform<T, C, D>> for Rotation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, T, C, const D: usize> Mul<&'b Transform<T, C, D>> for &'a Rotation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, T, C, R, const D: usize> Mul<&'b Transform<T, C, D>> for Isometry<T, R, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, T, C, R, const D: usize> Mul<&'b Transform<T, C, D>> for &'a Isometry<T, R, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, T, C, R, const D: usize> Mul<&'b Transform<T, C, D>> for Similarity<T, R, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, T, C, R, const D: usize> Mul<&'b Transform<T, C, D>> for &'a Similarity<T, R, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, T, C, const D: usize> Mul<&'b Transform<T, C, D>> for Translation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, T, C, const D: usize> Mul<&'b Transform<T, C, D>> for &'a Translation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, T, CA, CB, const D: usize> Mul<&'b Transform<T, CB, D>> for Transform<T, CA, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    CA: TCategoryMul<CB>,
    CB: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, CA::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Transform<T, CB, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, T, CA, CB, const D: usize> Mul<&'b Transform<T, CB, D>> for &'a Transform<T, CA, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    CA: TCategoryMul<CB>,
    CB: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, CA::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Transform<T, CB, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, T, C, const D: usize> Mul<&'b Translation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Translation<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, T, C, const D: usize> Mul<&'b Translation<T, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Translation<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, T, C> Mul<&'b Unit<Quaternion<T>>> for Transform<T, C, 3> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b UnitQuaternion<T>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, T, C> Mul<&'b Unit<Quaternion<T>>> for &'a Transform<T, C, 3> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the * operator.

fn mul(self, rhs: &'b UnitQuaternion<T>) -> Self::Output[src]

Performs the * operation. Read more

impl<T, C, R, const D: usize> Mul<Isometry<T, R, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Isometry<T, R, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, T, C, R, const D: usize> Mul<Isometry<T, R, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Isometry<T, R, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<T, C, const D: usize> Mul<Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = SVector<T, D>

The resulting type after applying the * operator.

fn mul(self, rhs: SVector<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, T, C, const D: usize> Mul<Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = SVector<T, D>

The resulting type after applying the * operator.

fn mul(self, rhs: SVector<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<T, C, const D: usize> Mul<Point<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Point<T, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Point<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, T, C, const D: usize> Mul<Point<T, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Point<T, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Point<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<T, C, const D: usize> Mul<Rotation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Rotation<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, T, C, const D: usize> Mul<Rotation<T, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Rotation<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<T, C, R, const D: usize> Mul<Similarity<T, R, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Similarity<T, R, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, T, C, R, const D: usize> Mul<Similarity<T, R, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Similarity<T, R, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<T, C> Mul<Transform<T, C, 3_usize>> for UnitQuaternion<T> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the * operator.

fn mul(self, rhs: Transform<T, C, 3>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, T, C> Mul<Transform<T, C, 3_usize>> for &'a UnitQuaternion<T> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the * operator.

fn mul(self, rhs: Transform<T, C, 3>) -> Self::Output[src]

Performs the * operation. Read more

impl<T, C, const D: usize> Mul<Transform<T, C, D>> for Rotation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, T, C, const D: usize> Mul<Transform<T, C, D>> for &'a Rotation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<T, C, R, const D: usize> Mul<Transform<T, C, D>> for Isometry<T, R, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, T, C, R, const D: usize> Mul<Transform<T, C, D>> for &'a Isometry<T, R, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<T, C, R, const D: usize> Mul<Transform<T, C, D>> for Similarity<T, R, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, T, C, R, const D: usize> Mul<Transform<T, C, D>> for &'a Similarity<T, R, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<T, C, const D: usize> Mul<Transform<T, C, D>> for Translation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, T, C, const D: usize> Mul<Transform<T, C, D>> for &'a Translation<T, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Transform<T, C, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<T, CA, CB, const D: usize> Mul<Transform<T, CB, D>> for Transform<T, CA, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    CA: TCategoryMul<CB>,
    CB: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, CA::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Transform<T, CB, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, T, CA, CB, const D: usize> Mul<Transform<T, CB, D>> for &'a Transform<T, CA, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    CA: TCategoryMul<CB>,
    CB: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, CA::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Transform<T, CB, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<T, C, const D: usize> Mul<Translation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Translation<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, T, C, const D: usize> Mul<Translation<T, D>> for &'a Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategoryMul<TAffine>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Output = Transform<T, C::Representative, D>

The resulting type after applying the * operator.

fn mul(self, rhs: Translation<T, D>) -> Self::Output[src]

Performs the * operation. Read more

impl<T, C> Mul<Unit<Quaternion<T>>> for Transform<T, C, 3> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the * operator.

fn mul(self, rhs: UnitQuaternion<T>) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, T, C> Mul<Unit<Quaternion<T>>> for &'a Transform<T, C, 3> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategoryMul<TAffine>, 
[src]

type Output = Transform<T, C::Representative, 3>

The resulting type after applying the * operator.

fn mul(self, rhs: UnitQuaternion<T>) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, T, C, R, const D: usize> MulAssign<&'b Isometry<T, R, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn mul_assign(&mut self, rhs: &'b Isometry<T, R, D>)[src]

Performs the *= operation. Read more

impl<'b, T, C, const D: usize> MulAssign<&'b Rotation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn mul_assign(&mut self, rhs: &'b Rotation<T, D>)[src]

Performs the *= operation. Read more

impl<'b, T, C, R, const D: usize> MulAssign<&'b Similarity<T, R, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn mul_assign(&mut self, rhs: &'b Similarity<T, R, D>)[src]

Performs the *= operation. Read more

impl<'b, T, CA, CB, const D: usize> MulAssign<&'b Transform<T, CB, D>> for Transform<T, CA, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    CA: TCategory,
    CB: SubTCategoryOf<CA>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn mul_assign(&mut self, rhs: &'b Transform<T, CB, D>)[src]

Performs the *= operation. Read more

impl<'b, T, C, const D: usize> MulAssign<&'b Translation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn mul_assign(&mut self, rhs: &'b Translation<T, D>)[src]

Performs the *= operation. Read more

impl<'b, T, C> MulAssign<&'b Unit<Quaternion<T>>> for Transform<T, C, 3> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategory
[src]

fn mul_assign(&mut self, rhs: &'b UnitQuaternion<T>)[src]

Performs the *= operation. Read more

impl<T, C, R, const D: usize> MulAssign<Isometry<T, R, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn mul_assign(&mut self, rhs: Isometry<T, R, D>)[src]

Performs the *= operation. Read more

impl<T, C, const D: usize> MulAssign<Rotation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn mul_assign(&mut self, rhs: Rotation<T, D>)[src]

Performs the *= operation. Read more

impl<T, C, R, const D: usize> MulAssign<Similarity<T, R, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    R: SubsetOf<OMatrix<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn mul_assign(&mut self, rhs: Similarity<T, R, D>)[src]

Performs the *= operation. Read more

impl<T, CA, CB, const D: usize> MulAssign<Transform<T, CB, D>> for Transform<T, CA, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    CA: TCategory,
    CB: SubTCategoryOf<CA>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn mul_assign(&mut self, rhs: Transform<T, CB, D>)[src]

Performs the *= operation. Read more

impl<T, C, const D: usize> MulAssign<Translation<T, D>> for Transform<T, C, D> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    Const<D>: DimNameAdd<U1>,
    C: TCategory,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn mul_assign(&mut self, rhs: Translation<T, D>)[src]

Performs the *= operation. Read more

impl<T, C> MulAssign<Unit<Quaternion<T>>> for Transform<T, C, 3> where
    T: Scalar + Zero + One + ClosedAdd + ClosedMul + RealField,
    C: TCategory
[src]

fn mul_assign(&mut self, rhs: UnitQuaternion<T>)[src]

Performs the *= operation. Read more

impl<T: RealField, C: TCategory, const D: usize> One for Transform<T, C, D> where
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn one() -> Self[src]

Creates a new identity transform.

fn set_one(&mut self)[src]

Sets self to the multiplicative identity element of Self, 1.

fn is_one(&self) -> bool where
    Self: PartialEq<Self>, 
[src]

Returns true if self is equal to the multiplicative identity. Read more

impl<T: RealField, C: TCategory, const D: usize> PartialEq<Transform<T, C, D>> for Transform<T, C, D> where
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn eq(&self, right: &Self) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T: RealField, C: TCategory, const D: usize> RelativeEq<Transform<T, C, D>> for Transform<T, C, D> where
    Const<D>: DimNameAdd<U1>,
    T::Epsilon: Copy,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn default_max_relative() -> Self::Epsilon[src]

The default relative tolerance for testing values that are far-apart. Read more

fn relative_eq(
    &self,
    other: &Self,
    epsilon: Self::Epsilon,
    max_relative: Self::Epsilon
) -> bool
[src]

A test for equality that uses a relative comparison if the values are far apart.

fn relative_ne(
    &self,
    other: &Rhs,
    epsilon: Self::Epsilon,
    max_relative: Self::Epsilon
) -> bool
[src]

The inverse of RelativeEq::relative_eq.

impl<T: RealField, C, const D: usize> SimdValue for Transform<T, C, D> where
    T::Element: Scalar,
    C: TCategory,
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>> + Allocator<T::Element, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

type Element = Transform<T::Element, C, D>

The type of the elements of each lane of this SIMD value.

type SimdBool = T::SimdBool

Type of the result of comparing two SIMD values like self.

fn lanes() -> usize[src]

The number of lanes of this SIMD value.

fn splat(val: Self::Element) -> Self[src]

Initializes an SIMD value with each lanes set to val.

fn extract(&self, i: usize) -> Self::Element[src]

Extracts the i-th lane of self. Read more

unsafe fn extract_unchecked(&self, i: usize) -> Self::Element[src]

Extracts the i-th lane of self without bound-checking.

fn replace(&mut self, i: usize, val: Self::Element)[src]

Replaces the i-th lane of self by val. Read more

unsafe fn replace_unchecked(&mut self, i: usize, val: Self::Element)[src]

Replaces the i-th lane of self by val without bound-checking.

fn select(self, cond: Self::SimdBool, other: Self) -> Self[src]

Merges self and other depending on the lanes of cond. Read more

fn map_lanes(self, f: impl Fn(Self::Element) -> Self::Element) -> Self where
    Self: Clone
[src]

Applies a function to each lane of self. Read more

fn zip_map_lanes(
    self,
    b: Self,
    f: impl Fn(Self::Element, Self::Element) -> Self::Element
) -> Self where
    Self: Clone
[src]

Applies a function to each lane of self paired with the corresponding lane of b. Read more

impl<T1, T2, C, const D: usize> SubsetOf<Matrix<T2, <Const<D> as DimNameAdd<Const<1_usize>>>::Output, <Const<D> as DimNameAdd<Const<1_usize>>>::Output, <DefaultAllocator as Allocator<T2, <Const<D> as DimNameAdd<Const<1_usize>>>::Output, <Const<D> as DimNameAdd<Const<1_usize>>>::Output>>::Buffer>> for Transform<T1, C, D> where
    T1: RealField + SubsetOf<T2>,
    T2: RealField,
    C: TCategory,
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T1, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>> + Allocator<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>,
    T1::Epsilon: Copy,
    T2::Epsilon: Copy
[src]

fn to_superset(
    &self
) -> OMatrix<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>
[src]

The inclusion map: converts self to the equivalent element of its superset.

fn is_in_subset(
    m: &OMatrix<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>
) -> bool
[src]

Checks if element is actually part of the subset Self (and can be converted to it).

fn from_superset_unchecked(
    m: &OMatrix<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>
) -> Self
[src]

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

fn from_superset(element: &T) -> Option<Self>[src]

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

impl<T1, T2, C> SubsetOf<Transform<T2, C, 2_usize>> for UnitComplex<T1> where
    T1: RealField,
    T2: RealField + SupersetOf<T1>,
    C: SuperTCategoryOf<TAffine>, 
[src]

fn to_superset(&self) -> Transform<T2, C, 2>[src]

The inclusion map: converts self to the equivalent element of its superset.

fn is_in_subset(t: &Transform<T2, C, 2>) -> bool[src]

Checks if element is actually part of the subset Self (and can be converted to it).

fn from_superset_unchecked(t: &Transform<T2, C, 2>) -> Self[src]

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

fn from_superset(element: &T) -> Option<Self>[src]

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

impl<T1, T2, C> SubsetOf<Transform<T2, C, 3_usize>> for UnitQuaternion<T1> where
    T1: RealField,
    T2: RealField + SupersetOf<T1>,
    C: SuperTCategoryOf<TAffine>, 
[src]

fn to_superset(&self) -> Transform<T2, C, 3>[src]

The inclusion map: converts self to the equivalent element of its superset.

fn is_in_subset(t: &Transform<T2, C, 3>) -> bool[src]

Checks if element is actually part of the subset Self (and can be converted to it).

fn from_superset_unchecked(t: &Transform<T2, C, 3>) -> Self[src]

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

fn from_superset(element: &T) -> Option<Self>[src]

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

impl<T1, T2, C> SubsetOf<Transform<T2, C, 3_usize>> for UnitDualQuaternion<T1> where
    T1: RealField,
    T2: RealField + SupersetOf<T1>,
    C: SuperTCategoryOf<TAffine>, 
[src]

fn to_superset(&self) -> Transform<T2, C, 3>[src]

The inclusion map: converts self to the equivalent element of its superset.

fn is_in_subset(t: &Transform<T2, C, 3>) -> bool[src]

Checks if element is actually part of the subset Self (and can be converted to it).

fn from_superset_unchecked(t: &Transform<T2, C, 3>) -> Self[src]

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

fn from_superset(element: &T) -> Option<Self>[src]

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

impl<T1, T2, C, const D: usize> SubsetOf<Transform<T2, C, D>> for Rotation<T1, D> where
    T1: RealField,
    T2: RealField + SupersetOf<T1>,
    C: SuperTCategoryOf<TAffine>,
    Const<D>: DimNameAdd<U1> + DimMin<Const<D>, Output = Const<D>>,
    DefaultAllocator: Allocator<T1, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>> + Allocator<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn to_superset(&self) -> Transform<T2, C, D>[src]

The inclusion map: converts self to the equivalent element of its superset.

fn is_in_subset(t: &Transform<T2, C, D>) -> bool[src]

Checks if element is actually part of the subset Self (and can be converted to it).

fn from_superset_unchecked(t: &Transform<T2, C, D>) -> Self[src]

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

fn from_superset(element: &T) -> Option<Self>[src]

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

impl<T1, T2, C, const D: usize> SubsetOf<Transform<T2, C, D>> for Translation<T1, D> where
    T1: RealField,
    T2: RealField + SupersetOf<T1>,
    C: SuperTCategoryOf<TAffine>,
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T1, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>> + Allocator<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn to_superset(&self) -> Transform<T2, C, D>[src]

The inclusion map: converts self to the equivalent element of its superset.

fn is_in_subset(t: &Transform<T2, C, D>) -> bool[src]

Checks if element is actually part of the subset Self (and can be converted to it).

fn from_superset_unchecked(t: &Transform<T2, C, D>) -> Self[src]

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

fn from_superset(element: &T) -> Option<Self>[src]

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

impl<T1, T2, R, C, const D: usize> SubsetOf<Transform<T2, C, D>> for Isometry<T1, R, D> where
    T1: RealField,
    T2: RealField + SupersetOf<T1>,
    C: SuperTCategoryOf<TAffine>,
    R: AbstractRotation<T1, D> + SubsetOf<OMatrix<T1, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>> + SubsetOf<OMatrix<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    Const<D>: DimNameAdd<U1> + DimMin<Const<D>, Output = Const<D>>,
    DefaultAllocator: Allocator<T1, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>> + Allocator<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn to_superset(&self) -> Transform<T2, C, D>[src]

The inclusion map: converts self to the equivalent element of its superset.

fn is_in_subset(t: &Transform<T2, C, D>) -> bool[src]

Checks if element is actually part of the subset Self (and can be converted to it).

fn from_superset_unchecked(t: &Transform<T2, C, D>) -> Self[src]

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

fn from_superset(element: &T) -> Option<Self>[src]

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

impl<T1, T2, R, C, const D: usize> SubsetOf<Transform<T2, C, D>> for Similarity<T1, R, D> where
    T1: RealField,
    T2: RealField + SupersetOf<T1>,
    C: SuperTCategoryOf<TAffine>,
    R: AbstractRotation<T1, D> + SubsetOf<OMatrix<T1, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>> + SubsetOf<OMatrix<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>>,
    Const<D>: DimNameAdd<U1> + DimMin<Const<D>, Output = Const<D>>,
    DefaultAllocator: Allocator<T1, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>> + Allocator<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn to_superset(&self) -> Transform<T2, C, D>[src]

The inclusion map: converts self to the equivalent element of its superset.

fn is_in_subset(t: &Transform<T2, C, D>) -> bool[src]

Checks if element is actually part of the subset Self (and can be converted to it).

fn from_superset_unchecked(t: &Transform<T2, C, D>) -> Self[src]

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

fn from_superset(element: &T) -> Option<Self>[src]

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

impl<T1, T2, C1, C2, const D: usize> SubsetOf<Transform<T2, C2, D>> for Transform<T1, C1, D> where
    T1: RealField + SubsetOf<T2>,
    T2: RealField,
    C1: TCategory,
    C2: SuperTCategoryOf<C1>,
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T1, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>> + Allocator<T2, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>,
    T1::Epsilon: Copy,
    T2::Epsilon: Copy
[src]

fn to_superset(&self) -> Transform<T2, C2, D>[src]

The inclusion map: converts self to the equivalent element of its superset.

fn is_in_subset(t: &Transform<T2, C2, D>) -> bool[src]

Checks if element is actually part of the subset Self (and can be converted to it).

fn from_superset_unchecked(t: &Transform<T2, C2, D>) -> Self[src]

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

fn from_superset(element: &T) -> Option<Self>[src]

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

impl<T: RealField, C: TCategory, const D: usize> UlpsEq<Transform<T, C, D>> for Transform<T, C, D> where
    Const<D>: DimNameAdd<U1>,
    T::Epsilon: Copy,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

fn default_max_ulps() -> u32[src]

The default ULPs to tolerate when testing values that are far-apart. Read more

fn ulps_eq(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool[src]

A test for equality that uses units in the last place (ULP) if the values are far apart.

fn ulps_ne(&self, other: &Rhs, epsilon: Self::Epsilon, max_ulps: u32) -> bool[src]

The inverse of UlpsEq::ulps_eq.

impl<T: RealField, C: TCategory, const D: usize> Copy for Transform<T, C, D> where
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>,
    Owned<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>: Copy
[src]

impl<T: RealField + Eq, C: TCategory, const D: usize> Eq for Transform<T, C, D> where
    Const<D>: DimNameAdd<U1>,
    DefaultAllocator: Allocator<T, DimNameSum<Const<D>, U1>, DimNameSum<Const<D>, U1>>, 
[src]

Auto Trait Implementations

impl<T, C, const D: usize> !RefUnwindSafe for Transform<T, C, D>

impl<T, C, const D: usize> !Send for Transform<T, C, D>

impl<T, C, const D: usize> !Sync for Transform<T, C, D>

impl<T, C, const D: usize> !Unpin for Transform<T, C, D>

impl<T, C, const D: usize> !UnwindSafe for Transform<T, C, D>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

pub fn to_subset(&self) -> Option<SS>[src]

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

pub fn is_in_subset(&self) -> bool[src]

Checks if self is actually part of its subset T (and can be converted to it).

pub fn to_subset_unchecked(&self) -> SS[src]

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

pub fn from_subset(element: &SS) -> SP[src]

The inclusion map: converts self to the equivalent element of its superset.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V

impl<T, Right> ClosedDiv<Right> for T where
    T: Div<Right, Output = T> + DivAssign<Right>, 
[src]

impl<T, Right> ClosedMul<Right> for T where
    T: Mul<Right, Output = T> + MulAssign<Right>, 
[src]