pub trait Transform<P>: Sized + Onewhere
    P: EuclideanSpace,
{ fn look_at(eye: P, center: P, up: <P as EuclideanSpace>::Diff) -> Self; fn look_at_rh(eye: P, center: P, up: <P as EuclideanSpace>::Diff) -> Self; fn look_at_lh(eye: P, center: P, up: <P as EuclideanSpace>::Diff) -> Self; fn transform_vector(
        &self,
        vec: <P as EuclideanSpace>::Diff
    ) -> <P as EuclideanSpace>::Diff; fn transform_point(&self, point: P) -> P; fn concat(&self, other: &Self) -> Self; fn inverse_transform(&self) -> Option<Self>; fn inverse_transform_vector(
        &self,
        vec: <P as EuclideanSpace>::Diff
    ) -> Option<<P as EuclideanSpace>::Diff> { ... } fn concat_self(&mut self, other: &Self) { ... } }
Expand description

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

Required Methods§

👎Deprecated: Use look_at_rh or look_at_lh

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

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

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§

Inverse transform a vector using this transform

Combine this transform with another, in-place.

Implementors§