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

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

An angle, in degrees.

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

Trait Implementations

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

Generates a random instance of this type using the specified source of randomness. Read more

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

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the *= operation.

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

Formats the value using the given formatter. Read more

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

Method which takes an iterator and generates Self from the elements by "summing up" the items. Read more

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

Method which takes an iterator and generates Self from the elements by "summing up" the items. Read more

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

Performs the %= operation.

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

Deserialize this value from the given Serde deserializer. Read more

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

A full rotation.

Compute the sine of the angle, returning a unitless ratio. Read more

Compute the cosine of the angle, returning a unitless ratio. Read more

Compute the tangent of the angle, returning a unitless ratio. Read more

Compute the sine and cosine of the angle, returning the result as a pair. Read more

Compute the arcsine of the ratio, returning the resulting angle. Read more

Compute the arccosine of the ratio, returning the resulting angle. Read more

Compute the arctangent of the ratio, returning the resulting angle. Read more

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

Return the angle rotated by half a turn.

Returns the interior bisector of the two angles.

Half of a full rotation.

A third of a full rotation.

A quarter of a full rotation.

A sixth of a full rotation.

Compute the cosecant of the angle. Read more

Compute the cotangent of the angle. Read more

Compute the secant of the angle. Read more

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

The resulting type after applying the - operator.

Performs the unary - operation.

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

The resulting type after applying the - operator.

Performs the unary - operation.

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

Performs the += operation.

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

Performs the conversion.

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

Performs the conversion.

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

Used for specifying relative comparisons.

The default tolerance to use when testing values that are close together. Read more

The default relative tolerance for testing values that are far-apart. Read more

The default ULPs to tolerate when testing values that are far-apart. Read more

A test for equality that uses a relative comparison if the values are far apart.

A test for equality that uses units in the last place (ULP) if the values are far apart.

The inverse of ApproxEq::relative_eq.

The inverse of ApproxEq::ulps_eq.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

Serialize this value into the given Serde serializer. Read more

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

Returns the additive identity element of Self, 0. Read more

Returns true if self is equal to the additive identity.

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

returns the smallest finite number this type can represent

returns the largest finite number this type can represent

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

The resulting type after applying the % operator.

Performs the % operation.

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

The resulting type after applying the % operator.

Performs the % operation.

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

The resulting type after applying the % operator.

Performs the % operation.

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

The resulting type after applying the % operator.

Performs the % operation.

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

Performs the -= operation.

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

Performs the /= operation.

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

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

Auto Trait Implementations

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

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