Struct euler::DTrs [−][src]
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]
impl DTrs
pub fn new(t: DVec3, r: DQuat, s: DVec3) -> Self
[src]
pub fn new(t: DVec3, r: DQuat, s: DVec3) -> Self
Full constructor.
pub fn identity() -> Self
[src]
pub fn identity() -> Self
Identity constructor.
pub fn matrix(&self) -> DMat4
[src]
pub fn matrix(&self) -> DMat4
Returns the equivalent matrix representation for this transform.
Trait Implementations
impl Clone for DTrs
[src]
impl Clone for DTrs
fn clone(&self) -> DTrs
[src]
fn clone(&self) -> DTrs
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 Copy for DTrs
[src]
impl Copy for DTrs
impl Debug for DTrs
[src]
impl Debug for DTrs
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for DTrs
[src]
impl PartialEq for DTrs
fn eq(&self, other: &DTrs) -> bool
[src]
fn eq(&self, other: &DTrs) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DTrs) -> bool
[src]
fn ne(&self, other: &DTrs) -> bool
This method tests for !=
.
impl Display for DTrs
[src]
impl Display for DTrs
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for DTrs
[src]
impl Default for DTrs
impl ApproxEq for DTrs
[src]
impl ApproxEq for DTrs
type Epsilon = <f64 as ApproxEq>::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> Self::Epsilon
[src]
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
fn default_max_relative() -> Self::Epsilon
[src]
fn default_max_relative() -> Self::Epsilon
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: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
fn relative_eq(
&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]
fn ulps_eq(&self, other: &Self, epsilon: Self::Epsilon, 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
.