[][src]Struct cgmath::Rad

#[repr(C)]
pub struct Rad<S>(pub S);

An angle, in radians.

This type is marked as #[repr(C)].

Trait Implementations

impl<S: BaseFloat> Angle for Rad<S>[src]

type Unitless = S

impl<S: Clone> Clone for Rad<S>[src]

impl<S: PartialOrd> PartialOrd<Rad<S>> for Rad<S>[src]

impl<S: PartialEq> PartialEq<Rad<S>> for Rad<S>[src]

impl<S> From<Rad<S>> for Deg<S> where
    S: BaseFloat
[src]

impl<S> From<Deg<S>> for Rad<S> where
    S: BaseFloat
[src]

impl<S: Copy> Copy for Rad<S>[src]

impl<S: BaseFloat> Add<Rad<S>> for Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the + operator.

impl<'a, S: BaseFloat> Add<&'a Rad<S>> for Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the + operator.

impl<'a, S: BaseFloat> Add<Rad<S>> for &'a Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the + operator.

impl<'a, 'b, S: BaseFloat> Add<&'a Rad<S>> for &'b Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the + operator.

impl<S: BaseFloat> Sub<Rad<S>> for Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the - operator.

impl<'a, S: BaseFloat> Sub<&'a Rad<S>> for Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the - operator.

impl<'a, S: BaseFloat> Sub<Rad<S>> for &'a Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the - operator.

impl<'a, 'b, S: BaseFloat> Sub<&'a Rad<S>> for &'b Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the - operator.

impl<S: BaseFloat> Mul<S> for Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the * operator.

impl<'a, S: BaseFloat> Mul<S> for &'a Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the * operator.

impl<S: BaseFloat> Div<Rad<S>> for Rad<S>[src]

type Output = S

The resulting type after applying the / operator.

impl<'a, S: BaseFloat> Div<&'a Rad<S>> for Rad<S>[src]

type Output = S

The resulting type after applying the / operator.

impl<'a, S: BaseFloat> Div<Rad<S>> for &'a Rad<S>[src]

type Output = S

The resulting type after applying the / operator.

impl<'a, 'b, S: BaseFloat> Div<&'a Rad<S>> for &'b Rad<S>[src]

type Output = S

The resulting type after applying the / operator.

impl<S: BaseFloat> Div<S> for Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the / operator.

impl<'a, S: BaseFloat> Div<S> for &'a Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the / operator.

impl<S: BaseFloat> Rem<Rad<S>> for Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the % operator.

impl<'a, S: BaseFloat> Rem<&'a Rad<S>> for Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the % operator.

impl<'a, S: BaseFloat> Rem<Rad<S>> for &'a Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the % operator.

impl<'a, 'b, S: BaseFloat> Rem<&'a Rad<S>> for &'b Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the % operator.

impl<S: BaseFloat> Neg for Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the - operator.

impl<'a, S: BaseFloat> Neg for &'a Rad<S>[src]

type Output = Rad<S>

The resulting type after applying the - operator.

impl<S: BaseFloat + AddAssign<S>> AddAssign<Rad<S>> for Rad<S>[src]

impl<S: BaseFloat + SubAssign<S>> SubAssign<Rad<S>> for Rad<S>[src]

impl<S: BaseFloat + MulAssign<S>> MulAssign<S> for Rad<S>[src]

impl<S: BaseFloat + DivAssign<S>> DivAssign<S> for Rad<S>[src]

impl<S: BaseFloat + RemAssign<S>> RemAssign<Rad<S>> for Rad<S>[src]

impl<S: Debug> Debug for Rad<S>[src]

impl<S: BaseFloat> Sum<Rad<S>> for Rad<S>[src]

impl<'a, S: 'a + BaseFloat> Sum<&'a Rad<S>> for Rad<S>[src]

impl<S: BaseFloat> AbsDiffEq<Rad<S>> for Rad<S>[src]

type Epsilon = S::Epsilon

Used for specifying relative comparisons.

impl<S: BaseFloat> RelativeEq<Rad<S>> for Rad<S>[src]

impl<S: BaseFloat> UlpsEq<Rad<S>> for Rad<S>[src]

impl<S: Bounded> Bounded for Rad<S>[src]

impl<S: BaseFloat> Zero for Rad<S>[src]

impl<S> Distribution<Rad<S>> for Standard where
    Standard: Distribution<S>,
    S: BaseFloat + SampleUniform
[src]

Auto Trait Implementations

impl<S> Send for Rad<S> where
    S: Send

impl<S> Unpin for Rad<S> where
    S: Unpin

impl<S> Sync for Rad<S> where
    S: Sync

impl<S> UnwindSafe for Rad<S> where
    S: UnwindSafe

impl<S> RefUnwindSafe for Rad<S> where
    S: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, Rhs> NumAssignOps<Rhs> for T where
    T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, 
[src]