[][src]Enum tge::math::Angle

pub enum Angle<F: Float = f32> {
    Radians(F),
    Degrees(F),
}

Variants

Radians(F)
Degrees(F)

Implementations

impl<F: Float> Angle<F>[src]

pub fn radians(value: F) -> Self[src]

pub fn degrees(value: F) -> Self[src]

pub fn n_pi(n: F) -> Self[src]

pub fn zero() -> Self[src]

pub fn value(&self) -> F[src]

pub fn set_value(&mut self, new_value: F)[src]

pub fn radians_value(&self) -> F[src]

pub fn degrees_value(&self) -> F[src]

pub fn to_degrees(&self) -> Self[src]

pub fn to_radians(&self) -> Self[src]

Trait Implementations

impl<F: Float> Add<Angle<F>> for Angle<F>[src]

type Output = Self

The resulting type after applying the + operator.

impl<F: Float> AddAssign<Angle<F>> for Angle<F>[src]

impl<F: Clone + Float> Clone for Angle<F>[src]

impl<F: Copy + Float> Copy for Angle<F>[src]

impl<F: Debug + Float> Debug for Angle<F>[src]

impl<F: Float> Div<F> for Angle<F>[src]

type Output = Self

The resulting type after applying the / operator.

impl<F: Float> DivAssign<F> for Angle<F>[src]

impl<F: Float> Mul<F> for Angle<F>[src]

type Output = Self

The resulting type after applying the * operator.

impl<F: Float> MulAssign<F> for Angle<F>[src]

impl<F: Float> PartialEq<Angle<F>> for Angle<F>[src]

impl<F: Float> PartialOrd<Angle<F>> for Angle<F>[src]

impl<F: Float> Sub<Angle<F>> for Angle<F>[src]

type Output = Self

The resulting type after applying the - operator.

impl<F: Float> SubAssign<Angle<F>> for Angle<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for Angle<F> where
    F: RefUnwindSafe

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

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

impl<F> Unpin for Angle<F> where
    F: Unpin

impl<F> UnwindSafe for Angle<F> where
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.