pub struct Angle { /* private fields */ }Expand description
An angle 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 radians.
Sourcepub fn from_degrees(degrees: f64) -> Self
pub fn from_degrees(degrees: f64) -> Self
Creates an angle from degrees.
Sourcepub fn normalized(self) -> Self
pub fn normalized(self) -> Self
Returns the equivalent angle in [0, 2pi).
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