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

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

scale: <V as VectorSpace>::Scalarrot: Rdisp: V

Trait Implementations

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]

fn concat_self(&mut self, other: &Self)[src]

Combine this transform with another, in-place.

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

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

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

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]

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

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

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

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

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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]

type Epsilon = E

Used for specifying relative comparisons.

fn relative_ne(
    &self,
    other: &Self,
    epsilon: Self::Epsilon,
    max_relative: Self::Epsilon
) -> bool
[src]

The inverse of ApproxEq::relative_eq.

fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool[src]

The inverse of ApproxEq::ulps_eq.

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

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Content for T[src]

impl<T> SafeBorrow<T> for T[src]

impl<S> FromSample<S> for S[src]

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.