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