Struct acgmath::Decomposed [] [src]

pub struct Decomposed<V: VectorSpace, R> {
    pub scale: V::Scalar,
    pub rot: R,
    pub disp: V,
}

A generic transformation consisting of a rotation, displacement vector and scale amount.

Fields

Trait Implementations

impl<V: VectorSpace, R> Serialize for Decomposed<V, R> where
    V: Serialize,
    V::Scalar: Serialize,
    R: Serialize
[src]

Serialize this value into the given Serde serializer. Read more

impl<S: VectorSpace, R> Deserialize for Decomposed<S, R> where
    S: Deserialize,
    S::Scalar: Deserialize,
    R: Deserialize
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<V: Copy + VectorSpace, R: Copy> Copy for Decomposed<V, R> where
    V::Scalar: Copy
[src]

impl<V: Clone + VectorSpace, R: Clone> Clone for Decomposed<V, R> where
    V::Scalar: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<V: Debug + VectorSpace, R: Debug> Debug for Decomposed<V, R> where
    V::Scalar: Debug
[src]

Formats the value using the given formatter.

impl<P: EuclideanSpace, R: Rotation<P>> Transform<P> for Decomposed<P::Diff, R> where
    <P as EuclideanSpace>::Scalar: BaseFloat,
    <P as EuclideanSpace>::Diff: VectorSpace
[src]

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

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

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. Read more

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

Combine this transform with another, in-place.

impl<S: BaseFloat, R: Rotation2<S>> Transform2<S> for Decomposed<Vector2<S>, R>
[src]

impl<S: BaseFloat, R: Rotation3<S>> Transform3<S> for Decomposed<Vector3<S>, R>
[src]

impl<S: VectorSpace, R, E: BaseFloat> ApproxEq for Decomposed<S, R> where
    S: ApproxEq<Epsilon = E>,
    S::Scalar: ApproxEq<Epsilon = E>,
    R: ApproxEq<Epsilon = E>, 
[src]

Used for specifying relative comparisons.

The default tolerance to use when testing values that are close together. Read more

The default relative tolerance for testing values that are far-apart. Read more

The default ULPs to tolerate when testing values that are far-apart. Read more

A test for equality that uses a relative comparison if the values are far apart.

A test for equality that uses units in the last place (ULP) if the values are far apart.

The inverse of ApproxEq::relative_eq.

The inverse of ApproxEq::ulps_eq.