[][src]Struct glam::Angle

pub struct Angle(_);

An angle represented as radians.

Methods

impl Angle[src]

pub const fn from_radians(a: f32) -> Self[src]

pub fn from_degrees(a: f32) -> Self[src]

pub fn radians(self) -> f32[src]

pub fn to_degrees(self) -> f32[src]

pub fn sin(self) -> f32[src]

pub fn cos(self) -> f32[src]

pub fn tan(self) -> f32[src]

pub fn sin_cos(self) -> (f32, f32)[src]

pub fn acos(value: f32) -> Self[src]

Trait Implementations

impl Clone for Angle[src]

impl Default for Angle[src]

impl PartialOrd<Angle> for Angle[src]

impl Copy for Angle[src]

impl PartialEq<Angle> for Angle[src]

impl Debug for Angle[src]

impl Sub<Angle> for Angle[src]

type Output = Self

The resulting type after applying the - operator.

impl Div<f32> for Angle[src]

type Output = Self

The resulting type after applying the / operator.

impl Add<Angle> for Angle[src]

type Output = Self

The resulting type after applying the + operator.

impl Mul<f32> for Angle[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Angle> for f32[src]

type Output = Angle

The resulting type after applying the * operator.

impl Neg for Angle[src]

type Output = Self

The resulting type after applying the - operator.

impl AddAssign<Angle> for Angle[src]

impl SubAssign<Angle> for Angle[src]

impl MulAssign<f32> for Angle[src]

impl DivAssign<f32> for Angle[src]

impl Distribution<Angle> for Standard[src]

impl AbsDiffEq<Angle> for Angle[src]

type Epsilon = <f32 as AbsDiffEq>::Epsilon

Used for specifying relative comparisons.

impl RelativeEq<Angle> for Angle[src]

impl UlpsEq<Angle> for Angle[src]

Auto Trait Implementations

impl Send for Angle

impl Sync for Angle

impl Unpin for Angle

impl RefUnwindSafe for Angle

impl UnwindSafe for Angle

Blanket Implementations

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

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

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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,