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