Struct Int2GridHeuristicProvider
Implements
Namespace: AnyPath.Graphs.Int2Grid
Assembly: Assembly-CSharp.dll
Syntax
public struct Int2GridHeuristicProvider : IHeuristicProvider<Int2GridCell>
Constructors
| Improve this Doc View SourceInt2GridHeuristicProvider(Int2GridType)
Create a heuristic provider for a grid.
Declaration
public Int2GridHeuristicProvider(Int2GridType gridType)
Parameters
Type | Name | Description |
---|---|---|
Int2GridType | gridType | he type of grid. This should match the Int2Grid type. |
Fields
| Improve this Doc View SourcegridType
The type of grid. This should match the Int2Grid type.
Declaration
public Int2GridType gridType
Field Value
Type | Description |
---|---|
Int2GridType |
Methods
| Improve this Doc View SourceHeuristic(Int2GridCell, Int2GridCell)
Returns the travel distance between two cells on the grid.
Declaration
public float Heuristic(Int2GridCell a, Int2GridCell b)
Parameters
Type | Name | Description |
---|---|---|
Int2GridCell | a | |
Int2GridCell | b |
Returns
Type | Description |
---|---|
System.Single |