Trait heron::rapier_plugin::rapier2d::prelude::nalgebra::AbstractRotation [−][src]
pub trait AbstractRotation<T, const D: usize>: PartialEq<Self> + ClosedMul<Self> + Clone where
T: Scalar, {
fn identity() -> Self;
fn inverse(&self) -> Self;
fn inverse_mut(&mut self);
fn transform_vector(
&self,
v: &Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>
) -> Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>;
fn transform_point(&self, p: &OPoint<T, Const<D>>) -> OPoint<T, Const<D>>;
fn inverse_transform_vector(
&self,
v: &Matrix<T, Const<D>, Const<1_usize>, <DefaultAllocator as Allocator<T, Const<D>, Const<1_usize>>>::Buffer>
) -> Matrix<T, Const<D>, Const<1_usize>, <DefaultAllocator as Allocator<T, Const<D>, Const<1_usize>>>::Buffer>;
fn inverse_transform_point(
&self,
p: &OPoint<T, Const<D>>
) -> OPoint<T, Const<D>>;
fn inverse_transform_unit_vector(
&self,
v: &Unit<Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>>
) -> Unit<Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>> { ... }
}
Expand description
Trait implemented by rotations that can be used inside of an Isometry
or Similarity
.
Required methods
fn inverse_mut(&mut self)
fn inverse_mut(&mut self)
Change self
to its inverse.
fn transform_vector(
&self,
v: &Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>
) -> Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>
fn transform_vector(
&self,
v: &Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>
) -> Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>
Apply the rotation to the given vector.
Apply the rotation to the given point.
Apply the inverse rotation to the given vector.
Provided methods
fn inverse_transform_unit_vector(
&self,
v: &Unit<Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>>
) -> Unit<Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>>
fn inverse_transform_unit_vector(
&self,
v: &Unit<Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>>
) -> Unit<Matrix<T, Const<D>, Const<1_usize>, ArrayStorage<T, D, 1_usize>>>
Apply the inverse rotation to the given unit vector.