[−][src]Struct glam::f32::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 PartialOrd<Angle> for Angle
[src]
fn partial_cmp(&self, other: &Angle) -> Option<Ordering>
[src]
fn lt(&self, other: &Angle) -> bool
[src]
fn le(&self, other: &Angle) -> bool
[src]
fn gt(&self, other: &Angle) -> bool
[src]
fn ge(&self, other: &Angle) -> bool
[src]
impl Default for Angle
[src]
impl Clone for Angle
[src]
fn clone(&self) -> Angle
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Angle> for Angle
[src]
impl Copy for Angle
[src]
impl Debug for Angle
[src]
impl Add<Angle> for Angle
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
impl Sub<Angle> for Angle
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
impl Mul<f32> for Angle
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> Self
[src]
impl Mul<Angle> for f32
[src]
type Output = Angle
The resulting type after applying the *
operator.
fn mul(self, rhs: Angle) -> Angle
[src]
impl Div<f32> for Angle
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: f32) -> Self
[src]
impl Neg for Angle
[src]
impl AddAssign<Angle> for Angle
[src]
fn add_assign(&mut self, rhs: Self)
[src]
impl SubAssign<Angle> for Angle
[src]
fn sub_assign(&mut self, rhs: Self)
[src]
impl MulAssign<f32> for Angle
[src]
fn mul_assign(&mut self, rhs: f32)
[src]
impl DivAssign<f32> for Angle
[src]
fn div_assign(&mut self, rhs: f32)
[src]
impl Distribution<Angle> for Standard
[src]
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Angle
[src]
fn sample_iter<R>(&'a self, rng: &'a mut R) -> DistIter<'a, Self, R, T> where
R: Rng,
[src]
R: Rng,
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 default_epsilon() -> Self::Epsilon
[src]
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
[src]
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 default_max_relative() -> Self::Epsilon
[src]
fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
The inverse of ApproxEq::relative_eq
.
impl UlpsEq<Angle> for Angle
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,