Struct euler::DTrs
[−]
[src]
pub struct DTrs { pub t: DVec3, pub r: DQuat, pub s: DVec3, }
Double-precision translation + rotation + non-uniform scale transform.
Fields
t: DVec3
Translation vector.
r: DQuat
Rotation quaternion.
s: DVec3
Non-uniform scale factor.
Methods
impl DTrs
[src]
fn new(t: DVec3, r: DQuat, s: DVec3) -> Self
[src]
Full constructor.
fn identity() -> Self
[src]
Identity constructor.
fn matrix(&self) -> DMat4
[src]
Returns the equivalent matrix representation for this transform.
Trait Implementations
impl Clone for DTrs
[src]
fn clone(&self) -> DTrs
[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 DTrs
[src]
impl Debug for DTrs
[src]
impl PartialEq for DTrs
[src]
fn eq(&self, __arg_0: &DTrs) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DTrs) -> bool
[src]
This method tests for !=
.
impl Display for DTrs
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for DTrs
[src]
impl ApproxEq for DTrs
[src]
type Epsilon = <f64 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
.