Struct Angle
pub struct Angle { /* private fields */ }Expand description
Explicit angle value 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 a radians value.
pub const fn from_degrees(degrees: f64) -> Angle
pub const fn from_degrees(degrees: f64) -> Angle
Creates an angle from a degrees value.
pub fn normalized(self) -> Angle
pub fn normalized(self) -> Angle
Returns the angle normalized into the interval [0, 2π).
pub fn normalized_signed(self) -> Angle
pub fn normalized_signed(self) -> Angle
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