Struct gdnative_visual_script::common::geom::euclid::Angle[]

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

An angle in radians

Fields

Methods

impl<T> Angle<T>

impl<T> Angle<T> where
    T: Trig

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

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

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

impl<T> Angle<T> where
    T: Float

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

impl<T> Angle<T> where
    T: Zero

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

Trait Implementations

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

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

impl<T> DivAssign<T> for Angle<T> where
    T: DivAssign<T> + Clone

Performs the /= operation.

impl<T> Mul<T> for Angle<T> where
    T: Mul<T, Output = T> + Clone

The resulting type after applying the * operator.

Performs the * operation.

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

Formats the value using the given formatter. Read more

impl<T> SubAssign<Angle<T>> for Angle<T> where
    T: SubAssign<T> + Clone

Performs the -= operation.

impl<T> MulAssign<T> for Angle<T> where
    T: MulAssign<T> + Clone

Performs the *= operation.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Sub<Angle<T>> for Angle<T> where
    T: Sub<T, Output = T> + Clone

The resulting type after applying the - operator.

Performs the - operation.

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

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

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

impl<T> PartialOrd<Angle<T>> for Angle<T> where
    T: PartialOrd<T>, 

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<T> Add<Angle<T>> for Angle<T> where
    T: Add<T, Output = T> + Clone

The resulting type after applying the + operator.

Performs the + operation.

impl<T> AddAssign<Angle<T>> for Angle<T> where
    T: AddAssign<T> + Clone

Performs the += operation.

impl<T> Div<T> for Angle<T> where
    T: Div<T, Output = T> + Clone

The resulting type after applying the / operator.

Performs the / operation.

impl<T> Div<Angle<T>> for Angle<T> where
    T: Div<T, Output = T> + Clone

The resulting type after applying the / operator.

Performs the / operation.

impl<T> PartialEq<Angle<T>> for Angle<T> where
    T: PartialEq<T>, 

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

This method tests for !=.

impl<T> Neg for Angle<T> where
    T: Neg<Output = T>, 

The resulting type after applying the - operator.

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