Enum planetkit::movement::TurnDir
[−]
[src]
pub enum TurnDir { Left, Right, }
Variants
Left
Right
Methods
impl TurnDir
[src]
fn opposite(&self) -> TurnDir
[src]
fn apply_one_unit(&self, dir: &mut Dir)
[src]
Turn one unit left or right.
Note that this does not turn from one hexagon edge to another, but from an edge to a vertex, or vice versa.
Note also that this can not rebase on another root quad; the direction faced will not necessarily be the canonical representation of that direction.
fn apply_two_units(&self, dir: &mut Dir)
[src]
Turn two units left or right.
This turns from one hexagon edge to another, or one hexagon vertex to another.
Note that this can not rebase on another root quad; the direction faced will not necessarily be the canonical representation of that direction.
Trait Implementations
impl Clone for TurnDir
[src]
fn clone(&self) -> TurnDir
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more