Struct acgmath::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: Copy> Copy for Deg<S>
[src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

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

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

Returns true if self is equal to the additive identity.

impl<S: BaseFloat> Angle for Deg<S>
[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: BaseFloat> Neg for Deg<S>
[src]

The resulting type after applying the - operator

The method for the unary - operator

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

The resulting type after applying the - operator

The method for the unary - operator

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

The resulting type after applying the + operator

The method for the + operator

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

The resulting type after applying the + operator

The method for the + operator

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

The resulting type after applying the + operator

The method for the + operator

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

The resulting type after applying the + operator

The method for the + operator

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

The resulting type after applying the - operator

The method for the - operator

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

The resulting type after applying the - operator

The method for the - operator

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

The resulting type after applying the - operator

The method for the - operator

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

The resulting type after applying the - operator

The method for the - operator

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

The resulting type after applying the / operator

The method for the / operator

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

The resulting type after applying the / operator

The method for the / operator

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

The resulting type after applying the / operator

The method for the / operator

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

The resulting type after applying the / operator

The method for the / operator

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

The resulting type after applying the % operator

The method for the % operator

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

The resulting type after applying the % operator

The method for the % operator

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

The resulting type after applying the % operator

The method for the % operator

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

The resulting type after applying the % operator

The method for the % operator

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

The method for the += operator

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

The method for the -= operator

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

The method for the %= operator

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

The resulting type after applying the * operator

The method for the * operator

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

The resulting type after applying the * operator

The method for the * operator

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

The resulting type after applying the / operator

The method for the / operator

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

The resulting type after applying the / operator

The method for the / operator

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

The method for the *= operator

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

The method for the /= operator

impl<S: BaseFloat> ApproxEq for Deg<S>
[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<S: BaseFloat + SampleRange> Rand for Deg<S>
[src]

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

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

Formats the value using the given formatter.