Struct SquareGridHeuristicProvider
Heuristic provider for the SquareGrid that supports both FourNeighbours and EightNeighbours
Implements
Namespace: AnyPath.Graphs.SquareGrid
Assembly: AnyPath.dll
Syntax
[Obsolete("Use Manhattan Distance or Eight Directional for better performance")]
public struct SquareGridHeuristicProvider : IHeuristicProvider<SquareGridCell>
Constructors
SquareGridHeuristicProvider(SquareGridType)
Create a heuristic provider for a grid.
Declaration
public SquareGridHeuristicProvider(SquareGridType gridType)
Parameters
| Type | Name | Description |
|---|---|---|
| SquareGridType | gridType | he type of grid. This should match the SquareGrid type. |
Fields
gridType
The type of grid. This should match the SquareGrid type.
Declaration
public SquareGridType gridType
Field Value
| Type | Description |
|---|---|
| SquareGridType |