Trait nalgebra::Transformation [] [src]

pub trait Transformation<M> {
    fn transformation(&self) -> M;
    fn inv_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 inv_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