Trait nalgebra::Rotation
[−]
[src]
pub trait Rotation<V> { fn rotation(&self) -> V; fn inverse_rotation(&self) -> V; fn append_rotation_mut(&mut self, &V); fn append_rotation(&self, amount: &V) -> Self; fn prepend_rotation_mut(&mut self, &V); fn prepend_rotation(&self, amount: &V) -> Self; fn set_rotation(&mut self, V); }
Trait of object which can represent a rotation, and to which new rotations can be appended. A rotation is assumed to be an isometry without translation and without reflexion.
Required Methods
fn rotation(&self) -> V
Gets the rotation associated with self
.
fn inverse_rotation(&self) -> V
Gets the inverse rotation associated with self
.
fn append_rotation_mut(&mut self, &V)
Appends a rotation to this object.
fn append_rotation(&self, amount: &V) -> Self
Appends the rotation amount
to a copy of t
.
fn prepend_rotation_mut(&mut self, &V)
Prepends a rotation to this object.
fn prepend_rotation(&self, amount: &V) -> Self
Prepends the rotation amount
to a copy of t
.
fn set_rotation(&mut self, V)
Sets the rotation of self
.
Implementors
impl<N: BaseFloat> Rotation<Vector3<N>> for UnitQuaternion<N>
impl<N: BaseFloat + Clone> Rotation<Vector1<N>> for Rotation2<N>
impl<N: Clone + BaseFloat + Cast<f64>> Rotation<Vector3<N>> for Rotation3<N>
impl<N: Cast<f64> + BaseFloat> Rotation<Vector1<N>> for Isometry2<N>
impl<N: Cast<f64> + BaseFloat> Rotation<Vector3<N>> for Isometry3<N>