[−][src]Trait cgmath::Transform
A trait representing an affine transformation that can be applied to points or vectors. An affine transformation is one which
Required methods
fn one() -> Self
Create an identity transformation. That is, a transformation which does nothing.
fn look_at(eye: P, center: P, up: P::Diff) -> Self
Create a transformation that rotates a vector to look at center
from
eye
, using up
for orientation.
fn transform_vector(&self, vec: P::Diff) -> P::Diff
Transform a vector using this transform.
fn transform_point(&self, point: P) -> P
Transform a point using this transform.
fn concat(&self, other: &Self) -> Self
Combine this transform with another, yielding a new transformation which has the effects of both.
fn inverse_transform(&self) -> Option<Self>
Create a transform that "un-does" this one.
Provided methods
fn inverse_transform_vector(&self, vec: P::Diff) -> Option<P::Diff>
Inverse transform a vector using this transform
fn concat_self(&mut self, other: &Self)
Combine this transform with another, in-place.
Implementors
impl<P: EuclideanSpace, R: Rotation<P>> Transform<P> for Decomposed<P::Diff, R> where
P::Scalar: BaseFloat,
P::Diff: VectorSpace,
[src]
P::Scalar: BaseFloat,
P::Diff: VectorSpace,