pub struct Angle { /* private fields */ }
Expand description
A geometric angle.
Implementations§
Source§impl Angle
impl Angle
pub const ZERO: Self
pub const QUARTER: Self
pub const HALF: Self
pub const FULL: Self
Sourcepub const fn with_radians(radians: f64) -> Self
pub const fn with_radians(radians: f64) -> Self
Creates an angle from the given value in radians.
Sourcepub const fn with_degrees(degrees: f64) -> Self
pub const fn with_degrees(degrees: f64) -> Self
Creates an angle from the given value in degrees.
Sourcepub const fn with_fractional(fractional: f64) -> Self
pub const fn with_fractional(fractional: f64) -> Self
Creates an angle from the given fractional value between 0 and 1.
Sourcepub const fn fractional(self) -> f64
pub const fn fractional(self) -> f64
The fractional value between 0 and 1.
Trait Implementations§
Source§impl AddAssign for Angle
impl AddAssign for Angle
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl<'de> Deserialize<'de> for Angle
impl<'de> Deserialize<'de> for Angle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DivAssign<f64> for Angle
impl DivAssign<f64> for Angle
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl MulAssign<f64> for Angle
impl MulAssign<f64> for Angle
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl SubAssign for Angle
impl SubAssign for Angle
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for Angle
impl StructuralPartialEq for Angle
Auto Trait Implementations§
impl Freeze for Angle
impl RefUnwindSafe for Angle
impl Send for Angle
impl Sync for Angle
impl Unpin for Angle
impl UnwindSafe for Angle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more