[][src]Struct glam::f32::Angle

pub struct Angle(_);

Methods

impl Angle[src]

pub 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 PartialEq<Angle> for Angle[src]

impl Copy for Angle[src]

impl Clone for Angle[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<Angle> for Angle[src]

impl Default 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 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 Div<f32> for Angle[src]

type Output = Self

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]

fn sample_iter<R>(&'a self, rng: &'a mut R) -> DistIter<'a, Self, R, T> where
    R: Rng
[src]

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

impl AbsDiffEq<Angle> for Angle[src]

type Epsilon = <f32 as AbsDiffEq>::Epsilon

Used for specifying relative comparisons.

fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool[src]

The inverse of ApproxEq::abs_diff_eq.

impl RelativeEq<Angle> for Angle[src]

fn relative_ne(
    &self,
    other: &Rhs,
    epsilon: Self::Epsilon,
    max_relative: Self::Epsilon
) -> bool
[src]

The inverse of ApproxEq::relative_eq.

impl UlpsEq<Angle> for Angle[src]

fn ulps_ne(&self, other: &Rhs, epsilon: Self::Epsilon, max_ulps: u32) -> bool[src]

The inverse of ApproxEq::ulps_eq.

Auto Trait Implementations

impl Send for Angle

impl Sync for Angle

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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]