[][src]Struct nannou::math::Deg

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

An angle, in degrees.

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

Trait Implementations

impl<S> Clone for Deg<S> where
    S: Clone
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

fn set_zero(&mut self)[src]

Sets self to the additive identity element of Self, 0.

impl<S> Serialize for Deg<S> where
    S: Serialize
[src]

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

type Epsilon = <S as ApproxEq>::Epsilon

Used for specifying relative comparisons.

fn relative_ne(
    &self,
    other: &Self,
    epsilon: Self::Epsilon,
    max_relative: Self::Epsilon
) -> bool
[src]

The inverse of ApproxEq::relative_eq.

fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool[src]

The inverse of ApproxEq::ulps_eq.

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

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

impl<S> PartialOrd<Deg<S>> for Deg<S> where
    S: PartialOrd<S>, 
[src]

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

type Output = S

The resulting type after applying the / operator.

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

type Output = S

The resulting type after applying the / operator.

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

type Output = S

The resulting type after applying the / operator.

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

type Output = Deg<S>

The resulting type after applying the / operator.

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

type Output = S

The resulting type after applying the / operator.

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

type Output = Deg<S>

The resulting type after applying the / operator.

impl<S> MulAssign<S> for Deg<S> where
    S: BaseFloat + MulAssign<S>, 
[src]

impl<S> SubAssign<Deg<S>> for Deg<S> where
    S: BaseFloat + SubAssign<S>, 
[src]

impl<S> Bounded for Deg<S> where
    S: Bounded
[src]

impl<S> RemAssign<Deg<S>> for Deg<S> where
    S: BaseFloat + RemAssign<S>, 
[src]

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

type Unitless = S

fn normalize(self) -> Self[src]

Return the angle, normalized to the range [0, full_turn).

fn opposite(self) -> Self[src]

Return the angle rotated by half a turn.

fn bisect(self, other: Self) -> Self[src]

Returns the interior bisector of the two angles.

fn turn_div_2() -> Self[src]

Half of a full rotation.

fn turn_div_3() -> Self[src]

A third of a full rotation.

fn turn_div_4() -> Self[src]

A quarter of a full rotation.

fn turn_div_6() -> Self[src]

A sixth of a full rotation.

fn csc(self) -> Self::Unitless[src]

Compute the cosecant of the angle. Read more

fn cot(self) -> Self::Unitless[src]

Compute the cotangent of the angle. Read more

fn sec(self) -> Self::Unitless[src]

Compute the secant of the angle. Read more

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

type Output = Deg<S>

The resulting type after applying the * operator.

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

type Output = Deg<S>

The resulting type after applying the * operator.

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

type Output = Deg<S>

The resulting type after applying the - operator.

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

type Output = Deg<S>

The resulting type after applying the - operator.

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

type Output = Deg<S>

The resulting type after applying the % operator.

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

type Output = Deg<S>

The resulting type after applying the % operator.

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

type Output = Deg<S>

The resulting type after applying the % operator.

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

type Output = Deg<S>

The resulting type after applying the % operator.

impl<S> Debug for Deg<S> where
    S: Debug
[src]

impl<S> Copy for Deg<S> where
    S: Copy
[src]

impl<S> PartialEq<Deg<S>> for Deg<S> where
    S: PartialEq<S>, 
[src]

impl<S> AddAssign<Deg<S>> for Deg<S> where
    S: BaseFloat + AddAssign<S>, 
[src]

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

type Output = Deg<S>

The resulting type after applying the + operator.

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

type Output = Deg<S>

The resulting type after applying the + operator.

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

type Output = Deg<S>

The resulting type after applying the + operator.

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

type Output = Deg<S>

The resulting type after applying the + operator.

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

type Output = Deg<S>

The resulting type after applying the - operator.

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

type Output = Deg<S>

The resulting type after applying the - operator.

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

type Output = Deg<S>

The resulting type after applying the - operator.

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

type Output = Deg<S>

The resulting type after applying the - operator.

impl<S> DivAssign<S> for Deg<S> where
    S: BaseFloat + DivAssign<S>, 
[src]

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

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

impl<S> Rand for Deg<S> where
    S: BaseFloat + SampleRange
[src]

impl<'de, S> Deserialize<'de> for Deg<S> where
    S: Deserialize<'de>, 
[src]

Auto Trait Implementations

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

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

Blanket Implementations

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

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, 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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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]

impl<T> Style for T where
    T: Any + Debug + PartialEq<T>, 
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Content for T[src]

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

impl<T> Erased for T

impl<S> FromSample<S> for S[src]

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.