Struct euler::Trs
[−]
[src]
pub struct Trs { pub t: Vec3, pub r: Quat, pub s: Vec3, }
Single-precision translation + rotation + non-uniform scale transform.
Fields
t: Vec3
Translation vector.
r: Quat
Rotation quaternion.
s: Vec3
Non-uniform scale factor.
Methods
impl Trs
[src]
fn new(t: Vec3, r: Quat, s: Vec3) -> Self
[src]
Full constructor.
fn identity() -> Self
[src]
Identity constructor.
fn matrix(&self) -> Mat4
[src]
Returns the equivalent matrix representation for this transform.
Trait Implementations
impl Clone for Trs
[src]
fn clone(&self) -> Trs
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Trs
[src]
impl Debug for Trs
[src]
impl PartialEq for Trs
[src]
fn eq(&self, __arg_0: &Trs) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Trs) -> bool
[src]
This method tests for !=
.
impl Display for Trs
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for Trs
[src]
impl ApproxEq for Trs
[src]
type Epsilon = <f32 as ApproxEq>::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> Self::Epsilon
[src]
The default tolerance to use when testing values that are close together. Read more
fn default_max_relative() -> Self::Epsilon
[src]
The default relative tolerance for testing values that are far-apart. Read more
fn default_max_ulps() -> u32
[src]
The default ULPs to tolerate when testing values that are far-apart. Read more
fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
A test for equality that uses a relative comparison if the values are far apart.
fn ulps_eq(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
[src]
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]
&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]
The inverse of ApproxEq::ulps_eq
.