Struct truck_geometry::base::Rad
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§
§impl<S> AbsDiffEq<Rad<S>> for Rad<S>where
S: BaseFloat,
impl<S> AbsDiffEq<Rad<S>> for Rad<S>where
S: BaseFloat,
§fn default_epsilon() -> <S as AbsDiffEq<S>>::Epsilon
fn default_epsilon() -> <S as AbsDiffEq<S>>::Epsilon
The default tolerance to use when testing values that are close together. Read more
§fn abs_diff_eq(
&self,
other: &Rad<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon
) -> bool
fn abs_diff_eq(
&self,
other: &Rad<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon
) -> bool
A test for equality that uses the absolute difference to compute the approximate
equality of two numbers.
§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
AbsDiffEq::abs_diff_eq
.§impl<S> AddAssign<Rad<S>> for Rad<S>where
S: BaseFloat + AddAssign<S>,
impl<S> AddAssign<Rad<S>> for Rad<S>where
S: BaseFloat + AddAssign<S>,
§fn add_assign(&mut self, other: Rad<S>)
fn add_assign(&mut self, other: Rad<S>)
Performs the
+=
operation. Read more§impl<S> Angle for Rad<S>where
S: BaseFloat,
impl<S> Angle for Rad<S>where
S: BaseFloat,
type Unitless = S
§fn sin_cos(self) -> (S, S)
fn sin_cos(self) -> (S, S)
Compute the sine and cosine of the angle, returning the result as a
pair. Read more
§fn acos(a: S) -> Rad<S>
fn acos(a: S) -> Rad<S>
Compute the arccosine of the ratio, returning the resulting angle. Read more
§fn atan(a: S) -> Rad<S>
fn atan(a: S) -> Rad<S>
Compute the arctangent of the ratio, returning the resulting angle. Read more
fn atan2(a: S, b: S) -> Rad<S>
§fn normalize_signed(self) -> Self
fn normalize_signed(self) -> Self
Return the angle, normalized to the range
[-turn_div_2, turn_div_2)
.§fn turn_div_2() -> Self
fn turn_div_2() -> Self
Half of a full rotation.
§fn turn_div_3() -> Self
fn turn_div_3() -> Self
A third of a full rotation.
§fn turn_div_4() -> Self
fn turn_div_4() -> Self
A quarter of a full rotation.
§fn turn_div_6() -> Self
fn turn_div_6() -> Self
A sixth of a full rotation.
§impl<'de, S> Deserialize<'de> for Rad<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Rad<S>where
S: Deserialize<'de>,
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Rad<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Rad<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<S> DivAssign<S> for Rad<S>where
S: BaseFloat + DivAssign<S>,
impl<S> DivAssign<S> for Rad<S>where
S: BaseFloat + DivAssign<S>,
§fn div_assign(&mut self, scalar: S)
fn div_assign(&mut self, scalar: S)
Performs the
/=
operation. Read more§impl<S> MulAssign<S> for Rad<S>where
S: BaseFloat + MulAssign<S>,
impl<S> MulAssign<S> for Rad<S>where
S: BaseFloat + MulAssign<S>,
§fn mul_assign(&mut self, scalar: S)
fn mul_assign(&mut self, scalar: S)
Performs the
*=
operation. Read more§impl<S> PartialOrd<Rad<S>> for Rad<S>where
S: PartialOrd<S>,
impl<S> PartialOrd<Rad<S>> for Rad<S>where
S: PartialOrd<S>,
§fn partial_cmp(&self, other: &Rad<S>) -> Option<Ordering>
fn partial_cmp(&self, other: &Rad<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl<S> RelativeEq<Rad<S>> for Rad<S>where
S: BaseFloat,
impl<S> RelativeEq<Rad<S>> for Rad<S>where
S: BaseFloat,
§fn default_max_relative() -> <S as AbsDiffEq<S>>::Epsilon
fn default_max_relative() -> <S as AbsDiffEq<S>>::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
§fn relative_eq(
&self,
other: &Rad<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon,
max_relative: <S as AbsDiffEq<S>>::Epsilon
) -> bool
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
RelativeEq::relative_eq
.§impl<S> RemAssign<Rad<S>> for Rad<S>where
S: BaseFloat + RemAssign<S>,
impl<S> RemAssign<Rad<S>> for Rad<S>where
S: BaseFloat + RemAssign<S>,
§fn rem_assign(&mut self, other: Rad<S>)
fn rem_assign(&mut self, other: Rad<S>)
Performs the
%=
operation. Read more§impl<S> Serialize for Rad<S>where
S: Serialize,
impl<S> Serialize for Rad<S>where
S: Serialize,
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl<S> SubAssign<Rad<S>> for Rad<S>where
S: BaseFloat + SubAssign<S>,
impl<S> SubAssign<Rad<S>> for Rad<S>where
S: BaseFloat + SubAssign<S>,
§fn sub_assign(&mut self, other: Rad<S>)
fn sub_assign(&mut self, other: Rad<S>)
Performs the
-=
operation. Read more