pub struct Angle(/* private fields */);
Expand description
The OrbTk way to handle angles
Implementations§
Source§impl Angle
impl Angle
pub fn from_radians(radians: f64) -> Angle
pub fn from_degrees(degrees: f64) -> Angle
Sourcepub fn from_turn(turn: f64) -> Angle
pub fn from_turn(turn: f64) -> Angle
Takes a number between 0.0 and 1.0 where 0.0 represents 0 degrees and 1.0 360 degrees
pub fn to_radians(self) -> f64
pub fn to_degrees(self) -> f64
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 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