Struct dotrix_math::Rad [−][src]
#[repr(C)]pub struct Rad<S>(pub S);
Expand description
An angle, in radians.
This type is marked as #[repr(C)]
.
Tuple Fields
0: S
Trait Implementations
type Epsilon = <S as AbsDiffEq<S>>::Epsilon
type Epsilon = <S as AbsDiffEq<S>>::Epsilon
Used for specifying relative comparisons.
The default tolerance to use when testing values that are close together. Read more
A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of ApproxEq::abs_diff_eq
.
Performs the +=
operation. Read more
type Unitless = S
Compute the sine and cosine of the angle, returning the result as a pair. Read more
Compute the arcsine of the ratio, returning the resulting angle. Read more
Compute the arccosine of the ratio, returning the resulting angle. Read more
Compute the arctangent of the ratio, returning the resulting angle. Read more
Return the angle, normalized to the range [-turn_div_2, turn_div_2)
.
Half of a full rotation.
A third of a full rotation.
A quarter of a full rotation.
A sixth of a full rotation.
Performs the /=
operation. Read more
Performs the *=
operation. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
The default relative tolerance for testing values that are far-apart. Read more
pub fn relative_eq(
&self,
other: &Rad<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon,
max_relative: <S as AbsDiffEq<S>>::Epsilon
) -> bool
pub fn relative_eq(
&self,
other: &Rad<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon,
max_relative: <S as AbsDiffEq<S>>::Epsilon
) -> bool
A test for equality that uses a relative comparison if the values are far apart.
fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
The inverse of ApproxEq::relative_eq
.
Performs the %=
operation. Read more
Performs the -=
operation. Read more
The default ULPs to tolerate when testing values that are far-apart. Read more
A test for equality that uses units in the last place (ULP) if the values are far apart.
Auto Trait Implementations
impl<S> RefUnwindSafe for Rad<S> where
S: RefUnwindSafe,
impl<S> UnwindSafe for Rad<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more