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
scale: <V as VectorSpace>::Scalar
rot: R
disp: V
Trait Implementations
impl<V, R> Clone for Decomposed<V, R> where
R: Clone,
V: VectorSpace + Clone,
<V as VectorSpace>::Scalar: Clone,
[src]
impl<V, R> Clone for Decomposed<V, R> where
R: Clone,
V: VectorSpace + Clone,
<V as VectorSpace>::Scalar: Clone,
fn clone(&self) -> Decomposed<V, R>
[src]
fn clone(&self) -> Decomposed<V, R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
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]
impl<V, R> Debug for Decomposed<V, R> where
R: Debug,
V: VectorSpace + Debug,
<V as VectorSpace>::Scalar: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
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]
impl<V, R> Serialize for Decomposed<V, R> where
R: Serialize,
V: Serialize + VectorSpace,
<V as VectorSpace>::Scalar: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
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]
impl<'a, S, R> Deserialize<'a> for Decomposed<S, R> where
R: Deserialize<'a>,
S: VectorSpace + Deserialize<'a>,
<S as VectorSpace>::Scalar: Deserialize<'a>,
fn deserialize<D>(
deserializer: D
) -> Result<Decomposed<S, R>, <D as Deserializer<'a>>::Error> where
D: Deserializer<'a>,
[src]
fn deserialize<D>(
deserializer: D
) -> Result<Decomposed<S, R>, <D as Deserializer<'a>>::Error> where
D: Deserializer<'a>,
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]
impl<S, R> From<Decomposed<Vector2<S>, R>> for Matrix3<S> where
R: Rotation2<S>,
S: BaseFloat,
fn from(dec: Decomposed<Vector2<S>, R>) -> Matrix3<S>
[src]
fn from(dec: Decomposed<Vector2<S>, R>) -> Matrix3<S>
Performs the conversion.
impl<S, R> From<Decomposed<Vector3<S>, R>> for Matrix4<S> where
R: Rotation3<S>,
S: BaseFloat,
[src]
impl<S, R> From<Decomposed<Vector3<S>, R>> for Matrix4<S> where
R: Rotation3<S>,
S: BaseFloat,
fn from(dec: Decomposed<Vector3<S>, R>) -> Matrix4<S>
[src]
fn from(dec: Decomposed<Vector3<S>, R>) -> Matrix4<S>
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]
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,
type Epsilon = E
Used for specifying relative comparisons.
fn default_epsilon() -> E
[src]
fn default_epsilon() -> E
The default tolerance to use when testing values that are close together. Read more
fn default_max_relative() -> E
[src]
fn default_max_relative() -> E
The default relative tolerance for testing values that are far-apart. Read more
fn default_max_ulps() -> u32
[src]
fn default_max_ulps() -> u32
The default ULPs to tolerate when testing values that are far-apart. Read more
fn relative_eq(
&self,
other: &Decomposed<S, R>,
epsilon: E,
max_relative: E
) -> bool
[src]
fn relative_eq(
&self,
other: &Decomposed<S, R>,
epsilon: E,
max_relative: E
) -> bool
A test for equality that uses a relative comparison if the values are far apart.
fn ulps_eq(&self, other: &Decomposed<S, R>, epsilon: E, max_ulps: u32) -> bool
[src]
fn ulps_eq(&self, other: &Decomposed<S, R>, epsilon: E, max_ulps: u32) -> bool
A test for equality that uses units in the last place (ULP) if the values are far apart.
fn relative_ne(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
fn relative_ne(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
The inverse of ApproxEq::relative_eq
.
fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
[src]
fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
The inverse of ApproxEq::ulps_eq
.
impl<S, R> Transform3<S> for Decomposed<Vector3<S>, R> where
R: Rotation3<S>,
S: BaseFloat,
[src]
impl<S, R> Transform3<S> for Decomposed<Vector3<S>, R> where
R: Rotation3<S>,
S: BaseFloat,
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]
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,
fn one() -> Decomposed<<P as EuclideanSpace>::Diff, R>
[src]
fn one() -> Decomposed<<P as EuclideanSpace>::Diff, R>
Create an identity transformation. That is, a transformation which does nothing. Read more
fn look_at(
eye: P,
center: P,
up: <P as EuclideanSpace>::Diff
) -> Decomposed<<P as EuclideanSpace>::Diff, R>
[src]
fn look_at(
eye: P,
center: P,
up: <P as EuclideanSpace>::Diff
) -> Decomposed<<P as EuclideanSpace>::Diff, R>
Create a transformation that rotates a vector to look at center
from eye
, using up
for orientation. Read more
fn transform_vector(
&self,
vec: <P as EuclideanSpace>::Diff
) -> <P as EuclideanSpace>::Diff
[src]
fn transform_vector(
&self,
vec: <P as EuclideanSpace>::Diff
) -> <P as EuclideanSpace>::Diff
Transform a vector using this transform.
fn inverse_transform_vector(
&self,
vec: <P as EuclideanSpace>::Diff
) -> Option<<P as EuclideanSpace>::Diff>
[src]
fn inverse_transform_vector(
&self,
vec: <P as EuclideanSpace>::Diff
) -> Option<<P as EuclideanSpace>::Diff>
Inverse transform a vector using this transform
fn transform_point(&self, point: P) -> P
[src]
fn transform_point(&self, point: P) -> P
Transform a point using this transform.
fn concat(
&self,
other: &Decomposed<<P as EuclideanSpace>::Diff, R>
) -> Decomposed<<P as EuclideanSpace>::Diff, R>
[src]
fn concat(
&self,
other: &Decomposed<<P as EuclideanSpace>::Diff, R>
) -> Decomposed<<P as EuclideanSpace>::Diff, R>
Combine this transform with another, yielding a new transformation which has the effects of both. Read more
fn inverse_transform(
&self
) -> Option<Decomposed<<P as EuclideanSpace>::Diff, R>>
[src]
fn inverse_transform(
&self
) -> Option<Decomposed<<P as EuclideanSpace>::Diff, R>>
Create a transform that "un-does" this one.
fn concat_self(&mut self, other: &Self)
[src]
fn concat_self(&mut self, other: &Self)
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<S, R> Transform2<S> for Decomposed<Vector2<S>, R> where
R: Rotation2<S>,
S: BaseFloat,
impl<V, R> Copy for Decomposed<V, R> where
R: Copy,
V: VectorSpace + Copy,
<V as VectorSpace>::Scalar: Copy,
[src]
impl<V, R> Copy for Decomposed<V, R> where
R: Copy,
V: VectorSpace + Copy,
<V as VectorSpace>::Scalar: Copy,
Auto Trait Implementations
impl<V, R> Send for Decomposed<V, R> where
R: Send,
V: Send,
<V as VectorSpace>::Scalar: Send,
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,
impl<V, R> Sync for Decomposed<V, R> where
R: Sync,
V: Sync,
<V as VectorSpace>::Scalar: Sync,