Struct SquareGridHeuristicProviderEightDirectional
Heuristic provider for the SquareGrid that supports eight directions.
Implements
Namespace: AnyPath.Graphs.SquareGrid
Assembly: AnyPath.dll
Syntax
public struct SquareGridHeuristicProviderEightDirectional : IHeuristicProvider<SquareGridCell>
Methods
Heuristic(SquareGridCell)
Returns the travel distance between two cells on the grid.
Declaration
public float Heuristic(SquareGridCell a)
Parameters
| Type | Name | Description |
|---|---|---|
| SquareGridCell | a |
Returns
| Type | Description |
|---|---|
| float |