pub struct Angle { /* private fields */ }Expand description
Explicit angle value stored in radians.
Implementations§
Source§impl Angle
impl Angle
Sourcepub const fn from_radians(radians: f64) -> Self
pub const fn from_radians(radians: f64) -> Self
Creates an angle from a radians value.
Sourcepub const fn from_degrees(degrees: f64) -> Self
pub const fn from_degrees(degrees: f64) -> Self
Creates an angle from a degrees value.
Sourcepub fn normalized(self) -> Self
pub fn normalized(self) -> Self
Returns the angle normalized into the interval [0, 2π).
Sourcepub fn normalized_signed(self) -> Self
pub fn normalized_signed(self) -> Self
Returns the angle normalized into the interval (-π, π].
Trait Implementations§
impl 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 UnsafeUnpin 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