Struct Angle
pub struct Angle { /* private fields */ }Expand description
An angle stored in radians.
Implementations§
§impl Angle
impl Angle
pub const fn from_radians(radians: f64) -> Angle
pub const fn from_radians(radians: f64) -> Angle
Creates an angle from radians.
pub fn from_degrees(degrees: f64) -> Angle
pub fn from_degrees(degrees: f64) -> Angle
Creates an angle from degrees.
pub fn normalized(self) -> Angle
pub fn normalized(self) -> Angle
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