Trait acgmath::Transform [] [src]

pub trait Transform<P: EuclideanSpace>: Sized {
    fn one() -> Self;
    fn look_at(eye: P, center: P, up: P::Diff) -> Self;
    fn transform_vector(&self, vec: P::Diff) -> P::Diff;
    fn transform_point(&self, point: P) -> P;
    fn concat(&self, other: &Self) -> Self;
    fn inverse_transform(&self) -> Option<Self>;

    fn concat_self(&mut self, other: &Self) { ... }
}

A trait representing an affine transformation that can be applied to points or vectors. An affine transformation is one which

Required Methods

Create an identity transformation. That is, a transformation which does nothing.

Create a transformation that rotates a vector to look at center from eye, using up for orientation.

Transform a vector using this transform.

Transform a point using this transform.

Combine this transform with another, yielding a new transformation which has the effects of both.

Create a transform that "un-does" this one.

Provided Methods

Combine this transform with another, in-place.

Implementors