Struct hierarchical_pathfinding::neighbors::MooreNeighborhood [−][src]
pub struct MooreNeighborhood { /* fields omitted */ }
Expand description
A Neighborhood for Agents moving along the 4 cardinal directions and the 4 diagonals.
Also known as Moore Neighborhood, Maximum Metric or Chebyshev Metric.
A: Agent, o: reachable in one step o o o \|/ o-A-o /|\ o o o
Implementations
Creates a new MooreNeighborhood.
width
and height
are the size of the Grid to move on.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MooreNeighborhood
impl Send for MooreNeighborhood
impl Sync for MooreNeighborhood
impl Unpin for MooreNeighborhood
impl UnwindSafe for MooreNeighborhood
Blanket Implementations
Mutably borrows from an owned value. Read more