[−]Struct truck_modeling::base::Rad
An angle, in radians.
This type is marked as #[repr(C)]
.
Trait Implementations
impl<S> AbsDiffEq<Rad<S>> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Epsilon = <S as AbsDiffEq<S>>::Epsilon
Used for specifying relative comparisons.
pub fn default_epsilon() -> <S as AbsDiffEq<S>>::Epsilon
pub fn abs_diff_eq(
&self,
other: &Rad<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon
) -> bool
&self,
other: &Rad<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon
) -> bool
pub fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
impl<'a, S> Add<&'a Rad<S>> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the +
operator.
pub fn add(self, other: &'a Rad<S>) -> Rad<S>
impl<'a, 'b, S> Add<&'a Rad<S>> for &'b Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the +
operator.
pub fn add(self, other: &'a Rad<S>) -> Rad<S>
impl<S> Add<Rad<S>> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the +
operator.
pub fn add(self, other: Rad<S>) -> Rad<S>
impl<'a, S> Add<Rad<S>> for &'a Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the +
operator.
pub fn add(self, other: Rad<S>) -> Rad<S>
impl<S> AddAssign<Rad<S>> for Rad<S> where
S: BaseFloat + AddAssign<S>,
S: BaseFloat + AddAssign<S>,
pub fn add_assign(&mut self, other: Rad<S>)
impl<S> Angle for Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Unitless = S
pub fn full_turn() -> Rad<S>
pub fn sin(self) -> S
pub fn cos(self) -> S
pub fn tan(self) -> S
pub fn sin_cos(self) -> (S, S)
pub fn asin(a: S) -> Rad<S>
pub fn acos(a: S) -> Rad<S>
pub fn atan(a: S) -> Rad<S>
pub fn atan2(a: S, b: S) -> Rad<S>
pub fn normalize(self) -> Self
pub fn normalize_signed(self) -> Self
pub fn opposite(self) -> Self
pub fn bisect(self, other: Self) -> Self
pub fn turn_div_2() -> Self
pub fn turn_div_3() -> Self
pub fn turn_div_4() -> Self
pub fn turn_div_6() -> Self
pub fn csc(self) -> Self::Unitless
pub fn cot(self) -> Self::Unitless
pub fn sec(self) -> Self::Unitless
impl<S> Bounded for Rad<S> where
S: Bounded,
S: Bounded,
impl<S> Clone for Rad<S> where
S: Clone,
S: Clone,
pub fn clone(&self) -> Rad<S>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S> Copy for Rad<S> where
S: Copy,
S: Copy,
impl<S> Debug for Rad<S> where
S: Debug,
S: Debug,
impl<'a, S> Div<&'a Rad<S>> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = S
The resulting type after applying the /
operator.
pub fn div(self, other: &'a Rad<S>) -> S
impl<'a, 'b, S> Div<&'a Rad<S>> for &'b Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = S
The resulting type after applying the /
operator.
pub fn div(self, other: &'a Rad<S>) -> S
impl<S> Div<Rad<S>> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = S
The resulting type after applying the /
operator.
pub fn div(self, other: Rad<S>) -> S
impl<'a, S> Div<Rad<S>> for &'a Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = S
The resulting type after applying the /
operator.
pub fn div(self, other: Rad<S>) -> S
impl<S> Div<S> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the /
operator.
pub fn div(self, other: S) -> Rad<S>
impl<'a, S> Div<S> for &'a Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the /
operator.
pub fn div(self, other: S) -> Rad<S>
impl<S> DivAssign<S> for Rad<S> where
S: BaseFloat + DivAssign<S>,
S: BaseFloat + DivAssign<S>,
pub fn div_assign(&mut self, scalar: S)
impl<S> From<Deg<S>> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
impl<S> From<Rad<S>> for Deg<S> where
S: BaseFloat,
S: BaseFloat,
impl<'a, S> Mul<S> for &'a Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the *
operator.
pub fn mul(self, other: S) -> Rad<S>
impl<S> Mul<S> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the *
operator.
pub fn mul(self, other: S) -> Rad<S>
impl<S> MulAssign<S> for Rad<S> where
S: BaseFloat + MulAssign<S>,
S: BaseFloat + MulAssign<S>,
pub fn mul_assign(&mut self, scalar: S)
impl<'a, S> Neg for &'a Rad<S> where
S: BaseFloat,
S: BaseFloat,
impl<S> Neg for Rad<S> where
S: BaseFloat,
S: BaseFloat,
impl<S> PartialEq<Rad<S>> for Rad<S> where
S: PartialEq<S>,
S: PartialEq<S>,
impl<S> PartialOrd<Rad<S>> for Rad<S> where
S: PartialOrd<S>,
S: PartialOrd<S>,
pub fn partial_cmp(&self, other: &Rad<S>) -> Option<Ordering>
pub fn lt(&self, other: &Rad<S>) -> bool
pub fn le(&self, other: &Rad<S>) -> bool
pub fn gt(&self, other: &Rad<S>) -> bool
pub fn ge(&self, other: &Rad<S>) -> bool
impl<S> RelativeEq<Rad<S>> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
pub fn default_max_relative() -> <S as AbsDiffEq<S>>::Epsilon
pub fn relative_eq(
&self,
other: &Rad<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon,
max_relative: <S as AbsDiffEq<S>>::Epsilon
) -> bool
&self,
other: &Rad<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon,
max_relative: <S as AbsDiffEq<S>>::Epsilon
) -> bool
pub fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
impl<'a, 'b, S> Rem<&'a Rad<S>> for &'b Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the %
operator.
pub fn rem(self, other: &'a Rad<S>) -> Rad<S>
impl<'a, S> Rem<&'a Rad<S>> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the %
operator.
pub fn rem(self, other: &'a Rad<S>) -> Rad<S>
impl<'a, S> Rem<Rad<S>> for &'a Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the %
operator.
pub fn rem(self, other: Rad<S>) -> Rad<S>
impl<S> Rem<Rad<S>> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the %
operator.
pub fn rem(self, other: Rad<S>) -> Rad<S>
impl<S> RemAssign<Rad<S>> for Rad<S> where
S: BaseFloat + RemAssign<S>,
S: BaseFloat + RemAssign<S>,
pub fn rem_assign(&mut self, other: Rad<S>)
impl<S> StructuralPartialEq for Rad<S>
impl<'a, 'b, S> Sub<&'a Rad<S>> for &'b Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the -
operator.
pub fn sub(self, other: &'a Rad<S>) -> Rad<S>
impl<'a, S> Sub<&'a Rad<S>> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the -
operator.
pub fn sub(self, other: &'a Rad<S>) -> Rad<S>
impl<'a, S> Sub<Rad<S>> for &'a Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the -
operator.
pub fn sub(self, other: Rad<S>) -> Rad<S>
impl<S> Sub<Rad<S>> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
type Output = Rad<S>
The resulting type after applying the -
operator.
pub fn sub(self, other: Rad<S>) -> Rad<S>
impl<S> SubAssign<Rad<S>> for Rad<S> where
S: BaseFloat + SubAssign<S>,
S: BaseFloat + SubAssign<S>,
pub fn sub_assign(&mut self, other: Rad<S>)
impl<'a, S> Sum<&'a Rad<S>> for Rad<S> where
S: 'a + BaseFloat,
S: 'a + BaseFloat,
impl<S> Sum<Rad<S>> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
impl<S> UlpsEq<Rad<S>> for Rad<S> where
S: BaseFloat,
S: BaseFloat,
pub fn default_max_ulps() -> u32
pub fn ulps_eq(
&self,
other: &Rad<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon,
max_ulps: u32
) -> bool
&self,
other: &Rad<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon,
max_ulps: u32
) -> bool
pub fn ulps_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_ulps: u32
) -> bool
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_ulps: u32
) -> bool
impl<S> Zero for Rad<S> where
S: BaseFloat,
S: BaseFloat,
Auto Trait Implementations
impl<S> RefUnwindSafe for Rad<S> where
S: RefUnwindSafe,
[src]
S: RefUnwindSafe,
impl<S> Send for Rad<S> where
S: Send,
[src]
S: Send,
impl<S> Sync for Rad<S> where
S: Sync,
[src]
S: Sync,
impl<S> Unpin for Rad<S> where
S: Unpin,
[src]
S: Unpin,
impl<S> UnwindSafe for Rad<S> where
S: UnwindSafe,
[src]
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,