Struct truck_polymesh::base::Deg
source · #[repr(C)]pub struct Deg<S>(pub S);
Expand description
An angle, in degrees.
This type is marked as #[repr(C)]
.
Tuple Fields§
§0: S
Trait Implementations§
source§impl<S> AbsDiffEq for Deg<S>where
S: BaseFloat,
impl<S> AbsDiffEq for Deg<S>where
S: BaseFloat,
source§fn default_epsilon() -> <S as AbsDiffEq>::Epsilon
fn default_epsilon() -> <S as AbsDiffEq>::Epsilon
The default tolerance to use when testing values that are close together. Read more
source§fn abs_diff_eq(
&self,
other: &Deg<S>,
epsilon: <S as AbsDiffEq>::Epsilon,
) -> bool
fn abs_diff_eq( &self, other: &Deg<S>, epsilon: <S as AbsDiffEq>::Epsilon, ) -> bool
A test for equality that uses the absolute difference to compute the approximate
equality of two numbers.
source§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
.source§impl<S> AddAssign for Deg<S>
impl<S> AddAssign for Deg<S>
source§fn add_assign(&mut self, other: Deg<S>)
fn add_assign(&mut self, other: Deg<S>)
Performs the
+=
operation. Read moresource§impl<S> Angle for Deg<S>where
S: BaseFloat,
impl<S> Angle for Deg<S>where
S: BaseFloat,
type Unitless = S
source§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
source§fn asin(a: S) -> Deg<S>
fn asin(a: S) -> Deg<S>
Compute the arcsine of the ratio, returning the resulting angle. Read more
source§fn acos(a: S) -> Deg<S>
fn acos(a: S) -> Deg<S>
Compute the arccosine of the ratio, returning the resulting angle. Read more
source§fn atan(a: S) -> Deg<S>
fn atan(a: S) -> Deg<S>
Compute the arctangent of the ratio, returning the resulting angle. Read more
fn atan2(a: S, b: S) -> Deg<S>
source§fn normalize_signed(self) -> Self
fn normalize_signed(self) -> Self
Return the angle, normalized to the range
[-turn_div_2, turn_div_2)
.source§fn turn_div_2() -> Self
fn turn_div_2() -> Self
Half of a full rotation.
source§fn turn_div_3() -> Self
fn turn_div_3() -> Self
A third of a full rotation.
source§fn turn_div_4() -> Self
fn turn_div_4() -> Self
A quarter of a full rotation.
source§fn turn_div_6() -> Self
fn turn_div_6() -> Self
A sixth of a full rotation.
source§impl<'de, S> Deserialize<'de> for Deg<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Deg<S>where
S: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Deg<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Deg<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<S> DivAssign<S> for Deg<S>
impl<S> DivAssign<S> for Deg<S>
source§fn div_assign(&mut self, scalar: S)
fn div_assign(&mut self, scalar: S)
Performs the
/=
operation. Read moresource§impl<S> MulAssign<S> for Deg<S>
impl<S> MulAssign<S> for Deg<S>
source§fn mul_assign(&mut self, scalar: S)
fn mul_assign(&mut self, scalar: S)
Performs the
*=
operation. Read moresource§impl<S> PartialOrd for Deg<S>where
S: PartialOrd,
impl<S> PartialOrd for Deg<S>where
S: PartialOrd,
source§impl<S> RelativeEq for Deg<S>where
S: BaseFloat,
impl<S> RelativeEq for Deg<S>where
S: BaseFloat,
source§fn default_max_relative() -> <S as AbsDiffEq>::Epsilon
fn default_max_relative() -> <S as AbsDiffEq>::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
source§fn relative_eq(
&self,
other: &Deg<S>,
epsilon: <S as AbsDiffEq>::Epsilon,
max_relative: <S as AbsDiffEq>::Epsilon,
) -> bool
fn relative_eq( &self, other: &Deg<S>, epsilon: <S as AbsDiffEq>::Epsilon, max_relative: <S as AbsDiffEq>::Epsilon, ) -> bool
A test for equality that uses a relative comparison if the values are far apart.
source§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
.source§impl<S> RemAssign for Deg<S>
impl<S> RemAssign for Deg<S>
source§fn rem_assign(&mut self, other: Deg<S>)
fn rem_assign(&mut self, other: Deg<S>)
Performs the
%=
operation. Read moresource§impl<S> Serialize for Deg<S>where
S: Serialize,
impl<S> Serialize for Deg<S>where
S: Serialize,
source§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
source§impl<S> SubAssign for Deg<S>
impl<S> SubAssign for Deg<S>
source§fn sub_assign(&mut self, other: Deg<S>)
fn sub_assign(&mut self, other: Deg<S>)
Performs the
-=
operation. Read moresource§impl<S> UlpsEq for Deg<S>where
S: BaseFloat,
impl<S> UlpsEq for Deg<S>where
S: BaseFloat,
source§fn default_max_ulps() -> u32
fn default_max_ulps() -> u32
The default ULPs to tolerate when testing values that are far-apart. Read more
impl<S> Copy for Deg<S>where
S: Copy,
impl<S> StructuralPartialEq for Deg<S>
Auto Trait Implementations§
impl<S> Freeze for Deg<S>where
S: Freeze,
impl<S> RefUnwindSafe for Deg<S>where
S: RefUnwindSafe,
impl<S> Send for Deg<S>where
S: Send,
impl<S> Sync for Deg<S>where
S: Sync,
impl<S> Unpin for Deg<S>where
S: Unpin,
impl<S> UnwindSafe for Deg<S>where
S: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more