Trait nalgebra::Rotate
[−]
[src]
pub trait Rotate<V> { fn rotate(&self, v: &V) -> V; fn inverse_rotate(&self, v: &V) -> V; }
Trait of objects able to rotate other objects.
This is typically implemented by matrices which rotate vectors.
Required Methods
fn rotate(&self, v: &V) -> V
Applies a rotation to v
.
fn inverse_rotate(&self, v: &V) -> V
Applies an inverse rotation to v
.
Implementors
impl<N, O: Copy> Rotate<O> for Vector1<N>
impl<N, O: Copy> Rotate<O> for Point1<N>
impl<N, O: Copy> Rotate<O> for Vector2<N>
impl<N, O: Copy> Rotate<O> for Point2<N>
impl<N, O: Copy> Rotate<O> for Vector3<N>
impl<N, O: Copy> Rotate<O> for Point3<N>
impl<N, O: Copy> Rotate<O> for Vector4<N>
impl<N, O: Copy> Rotate<O> for Point4<N>
impl<N, O: Copy> Rotate<O> for Vector5<N>
impl<N, O: Copy> Rotate<O> for Point5<N>
impl<N, O: Copy> Rotate<O> for Vector6<N>
impl<N, O: Copy> Rotate<O> for Point6<N>
impl<N: BaseNum + Neg<Output=N>> Rotate<Vector3<N>> for UnitQuaternion<N>
impl<N: BaseNum + Neg<Output=N>> Rotate<Point3<N>> for UnitQuaternion<N>
impl<N: BaseNum> Rotate<Vector2<N>> for Rotation2<N>
impl<N: BaseNum> Rotate<Point2<N>> for Rotation2<N>
impl<N: BaseNum> Rotate<Vector3<N>> for Rotation3<N>
impl<N: BaseNum> Rotate<Point3<N>> for Rotation3<N>
impl<N: BaseNum> Rotate<Vector2<N>> for Isometry2<N>
impl<N: BaseNum> Rotate<Vector3<N>> for Isometry3<N>
impl<V: Clone> Rotate<V> for Identity