Trait nalgebra::Transformation
[−]
[src]
pub trait Transformation<M> { fn transformation(&self) -> M; fn inverse_transformation(&self) -> M; fn append_transformation_mut(&mut self, &M); fn append_transformation(&self, amount: &M) -> Self; fn prepend_transformation_mut(&mut self, &M); fn prepend_transformation(&self, amount: &M) -> Self; fn set_transformation(&mut self, M); }
Trait of object which represent a transformation, and to which new transformations can be appended.
A transformation is assumed to be an isometry without reflexion.
Required Methods
fn transformation(&self) -> M
Gets the transformation of self
.
fn inverse_transformation(&self) -> M
Gets the inverse transformation of self
.
fn append_transformation_mut(&mut self, &M)
Appends a transformation to this object.
fn append_transformation(&self, amount: &M) -> Self
Appends the transformation amount
to a copy of t
.
fn prepend_transformation_mut(&mut self, &M)
Prepends a transformation to this object.
fn prepend_transformation(&self, amount: &M) -> Self
Prepends the transformation amount
to a copy of t
.
fn set_transformation(&mut self, M)
Sets the transformation of self
.
Implementors
impl<N: BaseFloat> Transformation<Isometry2<N>> for Isometry2<N>
impl<N: BaseFloat> Transformation<Isometry3<N>> for Isometry3<N>
impl<N: BaseFloat> Transformation<Similarity2<N>> for Similarity2<N>
impl<N: BaseFloat> Transformation<Similarity3<N>> for Similarity3<N>