Trait nalgebra::geometry::AbstractRotation[][src]

pub trait AbstractRotation<T: Scalar, const D: usize>: PartialEq + ClosedMul + Clone {
    fn identity() -> Self;
fn inverse(&self) -> Self;
fn inverse_mut(&mut self);
fn transform_vector(&self, v: &SVector<T, D>) -> SVector<T, D>;
fn transform_point(&self, p: &Point<T, D>) -> Point<T, D>;
fn inverse_transform_vector(
        &self,
        v: &OVector<T, Const<D>>
    ) -> OVector<T, Const<D>>;
fn inverse_transform_point(&self, p: &Point<T, D>) -> Point<T, D>; fn inverse_transform_unit_vector(
        &self,
        v: &Unit<SVector<T, D>>
    ) -> Unit<SVector<T, D>> { ... } }

Trait implemented by rotations that can be used inside of an Isometry or Similarity.

Required methods

fn identity() -> Self[src]

The rotation identity.

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

The rotation inverse.

fn inverse_mut(&mut self)[src]

Change self to its inverse.

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

Apply the rotation to the given vector.

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

Apply the rotation to the given point.

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

Apply the inverse rotation to the given vector.

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

Apply the inverse rotation to the given point.

Loading content...

Provided methods

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

Apply the inverse rotation to the given unit vector.

Loading content...

Implementors

impl<T: SimdRealField> AbstractRotation<T, 2_usize> for UnitComplex<T> where
    T::Element: SimdRealField
[src]

impl<T: SimdRealField> AbstractRotation<T, 3_usize> for UnitQuaternion<T> where
    T::Element: SimdRealField
[src]

impl<T: SimdRealField, const D: usize> AbstractRotation<T, D> for Rotation<T, D> where
    T::Element: SimdRealField
[src]

Loading content...