Trait nalgebra::Translation [] [src]

pub trait Translation<V> {
    fn translation(&self) -> V;
    fn inv_translation(&self) -> V;
    fn append_translation_mut(&mut self, &V);
    fn append_translation(&self, amount: &V) -> Self;
    fn prepend_translation_mut(&mut self, &V);
    fn prepend_translation(&self, amount: &V) -> Self;
    fn set_translation(&mut self, V);
}

Trait of object which represent a translation, and to wich new translation can be appended.

Required Methods

fn translation(&self) -> V

Gets the translation associated with this object.

fn inv_translation(&self) -> V

Gets the inverse translation associated with this object.

fn append_translation_mut(&mut self, &V)

Appends a translation to this object.

fn append_translation(&self, amount: &V) -> Self

Appends the translation amount to a copy of t.

fn prepend_translation_mut(&mut self, &V)

Prepends a translation to this object.

fn prepend_translation(&self, amount: &V) -> Self

Prepends the translation amount to a copy of t.

fn set_translation(&mut self, V)

Sets the translation.

Implementors