Struct nannou::math::Rad[][src]

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

An angle, in radians.

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

Trait Implementations

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

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

impl<S> PartialOrd<Rad<S>> for Rad<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<'a, S> Sub<Rad<S>> for &'a Rad<S> where
    S: BaseFloat
[src]

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

impl<S> Clone for Rad<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 Rad<S> where
    S: BaseFloat + MulAssign<S>, 
[src]

Performs the *= operation.

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

Formats the value using the given formatter. Read more

impl<'a, S> Sum<&'a Rad<S>> for Rad<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> Sum<Rad<S>> for Rad<S> where
    S: 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 Rad<S> where
    S: BaseFloat
[src]

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

Performs the %= operation.

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

Deserialize this value from the given Serde deserializer. Read more

impl<S> Angle for Rad<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<'a, S> Neg for &'a Rad<S> where
    S: BaseFloat
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

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

The resulting type after applying the - operator.

Performs the unary - operation.

impl<S> AddAssign<Rad<S>> for Rad<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 Rad<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, 'b, S> Add<&'a Rad<S>> for &'b Rad<S> where
    S: BaseFloat
[src]

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

Serialize this value into the given Serde serializer. Read more

impl<S> Zero for Rad<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 Rad<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, 'b, S> Rem<&'a Rad<S>> for &'b Rad<S> where
    S: BaseFloat
[src]

The resulting type after applying the % operator.

Performs the % operation.

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

The resulting type after applying the % operator.

Performs the % operation.

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

The resulting type after applying the % operator.

Performs the % operation.

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

The resulting type after applying the % operator.

Performs the % operation.

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

Performs the -= operation.

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

Performs the /= operation.

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

impl<S> PartialEq<Rad<S>> for Rad<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<S> Div<Rad<S>> for Rad<S> where
    S: BaseFloat
[src]

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

Auto Trait Implementations

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

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