Class DijkstraPathfinding
Computes Dijkstra's Algorithm.
This class to find paths starting at source, and terminating at a single point, or a range of points.
Inheritance
DijkstraPathfinding
Assembly: Sylves.dll
Syntax
public class DijkstraPathfinding
Constructors
DijkstraPathfinding(IGrid, Cell, Func<Step, float?>)
Declaration
public DijkstraPathfinding(IGrid grid, Cell src, Func<Step, float?> stepLengths)
Parameters
Properties
Distances
Declaration
public Dictionary<Cell, float> Distances { get; }
Property Value
Methods
Declaration
public CellPath ExtractPathTo(Cell target)
Parameters
| Type |
Name |
Description |
| Cell |
target |
|
Returns
Run(Cell?, float)
Declaration
public void Run(Cell? target = null, float maxRange = Infinity)
Parameters
| Type |
Name |
Description |
| Cell? |
target |
|
| float |
maxRange |
|