Struct nannou::math::Decomposed[][src]

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

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

Fields

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

Serialize this value into the given Serde serializer. Read more

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

Deserialize this value from the given Serde deserializer. Read more

impl<S, R> From<Decomposed<Vector2<S>, R>> for Matrix3<S> where
    R: Rotation2<S>,
    S: BaseFloat
[src]

Performs the conversion.

impl<S, R> From<Decomposed<Vector3<S>, R>> for Matrix4<S> where
    R: Rotation3<S>,
    S: BaseFloat
[src]

Performs the conversion.

impl<S, R, E> ApproxEq for Decomposed<S, R> where
    E: BaseFloat,
    R: ApproxEq<Epsilon = E>,
    S: ApproxEq<Epsilon = E> + VectorSpace,
    <S as VectorSpace>::Scalar: ApproxEq,
    <<S as VectorSpace>::Scalar as 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.

impl<S, R> Transform3<S> for Decomposed<Vector3<S>, R> where
    R: Rotation3<S>,
    S: BaseFloat
[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]

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.

Inverse 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, R> Transform2<S> for Decomposed<Vector2<S>, R> where
    R: Rotation2<S>,
    S: BaseFloat
[src]

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

Auto Trait Implementations

impl<V, R> Send for Decomposed<V, R> where
    R: Send,
    V: Send,
    <V as VectorSpace>::Scalar: Send

impl<V, R> Sync for Decomposed<V, R> where
    R: Sync,
    V: Sync,
    <V as VectorSpace>::Scalar: Sync