Enum hex_coordinates::Rotation
source · [−]pub enum Rotation {
Zero,
One,
Two,
Three,
Four,
Five,
Six,
Seven,
Eight,
Nine,
Ten,
Eleven,
}Expand description
A clockwise rotation in sixths.
Variants
Zero
360°, 2π, -360°, -2π
One
-300°, -⁵⁄₃π
Two
-240°, -⁴⁄₃π
Three
-180°, -π
Four
-120°, -⅔π
Five
-60°, -⅓π
Six
0°, 0
Seven
60°, ⅓π
Eight
120°, ⅔π
Nine
180°, π
Ten
240°, ⁴⁄₃π
Eleven
300°, ⁵⁄₃π
Trait Implementations
sourceimpl AddAssign<Rotation> for Rotation
impl AddAssign<Rotation> for Rotation
sourceconst fn add_assign(&mut self, other: Self)
const fn add_assign(&mut self, other: Self)
Performs the += operation. Read more
sourceimpl PartialEq<Rotation> for Rotation
impl PartialEq<Rotation> for Rotation
sourceimpl SubAssign<Rotation> for Rotation
impl SubAssign<Rotation> for Rotation
sourceconst fn sub_assign(&mut self, other: Self)
const fn sub_assign(&mut self, other: Self)
Performs the -= operation. Read more
impl Copy for Rotation
impl Eq for Rotation
impl StructuralEq for Rotation
impl StructuralPartialEq for Rotation
Auto Trait Implementations
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnwindSafe for Rotation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more