Struct euclid::Angle [] [src]

pub struct Angle<T> {
    pub radians: T,
}

An angle in radians

Fields

Methods

impl<T> Angle<T>
[src]

[src]

[src]

impl<T> Angle<T> where
    T: Trig
[src]

[src]

[src]

impl<T> Angle<T> where
    T: Rem<Output = T> + Sub<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy
[src]

[src]

Returns this angle in the [0..2*PI[ range.

[src]

Returns this angle in the ]-PI..PI] range.

impl<T> Angle<T> where
    T: Float
[src]

[src]

Returns (sin(self), cos(self)).

impl<T> Angle<T> where
    T: Zero
[src]

[src]

impl<T> Angle<T> where
    T: FloatConst + Add<Output = T>, 
[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<T: Copy> Copy for Angle<T>
[src]

impl<T: Clone> Clone for Angle<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Angle<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for Angle<T>
[src]

[src]

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

[src]

This method tests for !=.

impl<T: Eq> Eq for Angle<T>
[src]

impl<T: PartialOrd> PartialOrd for Angle<T>
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

impl<T: Hash> Hash for Angle<T>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: Clone + Add<T, Output = T>> Add for Angle<T>
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<T: Clone + AddAssign<T>> AddAssign for Angle<T>
[src]

[src]

Performs the += operation.

impl<T: Clone + Sub<T, Output = T>> Sub<Angle<T>> for Angle<T>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<T: Clone + SubAssign<T>> SubAssign for Angle<T>
[src]

[src]

Performs the -= operation.

impl<T: Clone + Div<T, Output = T>> Div<Angle<T>> for Angle<T>
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<T: Clone + Div<T, Output = T>> Div<T> for Angle<T>
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<T: Clone + DivAssign<T>> DivAssign<T> for Angle<T>
[src]

[src]

Performs the /= operation.

impl<T: Clone + Mul<T, Output = T>> Mul<T> for Angle<T>
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<T: Clone + MulAssign<T>> MulAssign<T> for Angle<T>
[src]

[src]

Performs the *= operation.

impl<T: Neg<Output = T>> Neg for Angle<T>
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

Auto Trait Implementations

impl<T> Send for Angle<T> where
    T: Send

impl<T> Sync for Angle<T> where
    T: Sync