pub struct NormalizedAngle(/* private fields */);
Expand description
Represents an angle, measured in degrees, constrained to the range [-360.0, 360.0].
Implementations§
Source§impl NormalizedAngle
impl NormalizedAngle
pub fn from_degrees<T>(value: T) -> Self
pub fn as_degrees(&self) -> f64
pub fn get(&self) -> f64
Trait Implementations§
Source§impl Add for NormalizedAngle
impl Add for NormalizedAngle
Source§impl AddAssign for NormalizedAngle
impl AddAssign for NormalizedAngle
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl Clone for NormalizedAngle
impl Clone for NormalizedAngle
Source§fn clone(&self) -> NormalizedAngle
fn clone(&self) -> NormalizedAngle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NormalizedAngle
impl Debug for NormalizedAngle
Source§impl<T> From<PositiveNum<T>> for NormalizedAngle
impl<T> From<PositiveNum<T>> for NormalizedAngle
Source§fn from(value: PositiveNum<T>) -> Self
fn from(value: PositiveNum<T>) -> Self
Converts to this type from the input type.
Source§impl Into<f64> for NormalizedAngle
impl Into<f64> for NormalizedAngle
Source§impl PartialEq for NormalizedAngle
impl PartialEq for NormalizedAngle
Source§impl Sub for NormalizedAngle
impl Sub for NormalizedAngle
Source§impl SubAssign for NormalizedAngle
impl SubAssign for NormalizedAngle
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for NormalizedAngle
impl StructuralPartialEq for NormalizedAngle
Auto Trait Implementations§
impl Freeze for NormalizedAngle
impl RefUnwindSafe for NormalizedAngle
impl Send for NormalizedAngle
impl Sync for NormalizedAngle
impl Unpin for NormalizedAngle
impl UnwindSafe for NormalizedAngle
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