Type Alias Angle
pub type Angle = Angle<f32>;
Available on crate feature
geometry
only.Expand description
An angle in radians (f32).
Aliased Type§
struct Angle {
pub radians: f32,
}
Fields§
§radians: f32
Implementations
§impl<T> Angle<T>where
T: Sub<Output = T> + Rem<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy,
impl<T> Angle<T>where
T: Sub<Output = T> + Rem<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy,
§impl<T> Angle<T>
impl<T> Angle<T>
§impl<T> Angle<T>where
T: FloatConst + Add<Output = T>,
impl<T> Angle<T>where
T: FloatConst + Add<Output = T>,
Trait Implementations
§impl<T> AddAssign for Angle<T>where
T: AddAssign,
impl<T> AddAssign for Angle<T>where
T: AddAssign,
§fn add_assign(&mut self, other: Angle<T>)
fn add_assign(&mut self, other: Angle<T>)
Performs the
+=
operation. Read more§impl<T> ApproxEq<T> for Angle<T>where
T: ApproxEq<T>,
impl<T> ApproxEq<T> for Angle<T>where
T: ApproxEq<T>,
§fn approx_epsilon() -> T
fn approx_epsilon() -> T
Default epsilon value
§fn approx_eq_eps(&self, other: &Angle<T>, approx_epsilon: &T) -> bool
fn approx_eq_eps(&self, other: &Angle<T>, approx_epsilon: &T) -> bool
Returns
true
if this object is approximately equal to the other one, using
a provided epsilon value.§fn approx_eq(&self, other: &Self) -> bool
fn approx_eq(&self, other: &Self) -> bool
Returns
true
if this object is approximately equal to the other one, using
the approx_epsilon
epsilon value.§impl<T> DivAssign<T> for Angle<T>where
T: DivAssign,
impl<T> DivAssign<T> for Angle<T>where
T: DivAssign,
§fn div_assign(&mut self, factor: T)
fn div_assign(&mut self, factor: T)
Performs the
/=
operation. Read more§impl<T> MulAssign<T> for Angle<T>where
T: MulAssign,
impl<T> MulAssign<T> for Angle<T>where
T: MulAssign,
§fn mul_assign(&mut self, factor: T)
fn mul_assign(&mut self, factor: T)
Performs the
*=
operation. Read more§impl<T> PartialOrd for Angle<T>where
T: PartialOrd,
impl<T> PartialOrd for Angle<T>where
T: PartialOrd,
§impl<T> SubAssign for Angle<T>where
T: SubAssign,
impl<T> SubAssign for Angle<T>where
T: SubAssign,
§fn sub_assign(&mut self, other: Angle<T>)
fn sub_assign(&mut self, other: Angle<T>)
Performs the
-=
operation. Read more