Struct ami::Trs [−][src]
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]
impl Trs
pub fn new(t: Vec3, r: Quat, s: Vec3) -> Trs
[src]
pub fn new(t: Vec3, r: Quat, s: Vec3) -> Trs
Full constructor.
pub fn identity() -> Trs
[src]
pub fn identity() -> Trs
Identity constructor.
pub fn matrix(&self) -> Mat4
[src]
pub fn matrix(&self) -> Mat4
Returns the equivalent matrix representation for this transform.
Trait Implementations
impl ApproxEq for Trs
[src]
impl ApproxEq for Trs
type Epsilon = <f32 as ApproxEq>::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> <Trs as ApproxEq>::Epsilon
[src]
fn default_epsilon() -> <Trs as ApproxEq>::Epsilon
The default tolerance to use when testing values that are close together. Read more
fn default_max_relative() -> <Trs as ApproxEq>::Epsilon
[src]
fn default_max_relative() -> <Trs as ApproxEq>::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: &Trs,
epsilon: <Trs as ApproxEq>::Epsilon,
max_relative: <Trs as ApproxEq>::Epsilon
) -> bool
[src]
fn relative_eq(
&self,
other: &Trs,
epsilon: <Trs as ApproxEq>::Epsilon,
max_relative: <Trs as ApproxEq>::Epsilon
) -> bool
A test for equality that uses a relative comparison if the values are far apart.
fn ulps_eq(
&self,
other: &Trs,
epsilon: <Trs as ApproxEq>::Epsilon,
max_ulps: u32
) -> bool
[src]
fn ulps_eq(
&self,
other: &Trs,
epsilon: <Trs as ApproxEq>::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
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
fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
The inverse of ApproxEq::ulps_eq
.
impl Display for Trs
[src]
impl Display for Trs
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 Clone for Trs
[src]
impl Clone for Trs
fn clone(&self) -> Trs
[src]
fn clone(&self) -> Trs
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 Default for Trs
[src]
impl Default for Trs
impl Debug for Trs
[src]
impl Debug for Trs
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 Copy for Trs
[src]
impl Copy for Trs
impl PartialEq<Trs> for Trs
[src]
impl PartialEq<Trs> for Trs