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