pub enum RotationDirection {
PositiveClockwise,
PositiveCounterClockwise,
}
Expand description
The direction that a compass needle moves for “positive” increases
Variants§
PositiveClockwise
Positive-Clockwise is the standard direction a compass needle moves, positive in a clockwise direction, towards the right, usually with the zero point at ‘North’
PositiveCounterClockwise
Positive-Counter-Clockwise is the standard direction of rotation on a cartesian coordinate plane - mostly used for trigonometric convenience (sin/cos/tan/etc) where the needle moves towards the left when positive, usually with the zero point at ‘East’
Trait Implementations§
Source§impl Clone for RotationDirection
impl Clone for RotationDirection
Source§fn clone(&self) -> RotationDirection
fn clone(&self) -> RotationDirection
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RotationDirection
impl Debug for RotationDirection
Source§impl Default for RotationDirection
impl Default for RotationDirection
Source§fn default() -> RotationDirection
fn default() -> RotationDirection
Returns the “default value” for a type. Read more
Source§impl FromUnits<Angle> for RotationDirection
impl FromUnits<Angle> for RotationDirection
Source§impl PartialEq for RotationDirection
impl PartialEq for RotationDirection
impl Copy for RotationDirection
impl Eq for RotationDirection
impl StructuralPartialEq for RotationDirection
Auto Trait Implementations§
impl Freeze for RotationDirection
impl RefUnwindSafe for RotationDirection
impl Send for RotationDirection
impl Sync for RotationDirection
impl Unpin for RotationDirection
impl UnwindSafe for RotationDirection
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