Delegate AStar<T>.GetCost
- Namespace
- MLEM.Pathfinding
- Assembly
- MLEM.dll
A cost function for a given pair of neighboring path finding positions. If a path point should have the default cost, DefaultCost should be returned. If a path point should be unreachable, PositiveInfinity or MaxValue should be returned.
public delegate float AStar<T>.GetCost(T currPos, T nextPos)
Parameters
currPos
TThe current position in the path.
nextPos
TThe neighboring position whose cost to check.
Returns
- float
- A cost function for a given pair of neighboring path finding positions. If a path point should have the default cost, should be returned. If a path point should be unreachable, or should be returned.