Class ChisledPathfinding
Inherited Members
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public static class ChisledPathfinding
Methods
FindPath(IGrid, Cell, Cell, Func<Cell, bool>, Func<Step, float?>, Func<double>)
Implements the chiseled paths algorith descibed here: https://www.boristhebrave.com/2022/03/20/chiseled-paths-revisited/
Declaration
public static CellPath FindPath(IGrid grid, Cell src, Cell dest, Func<Cell, bool> isAccessible = null, Func<Step, float?> stepLengths = null, Func<double> randomDouble = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IGrid | grid | |
| Cell | src | |
| Cell | dest | |
| Func<Cell, bool> | isAccessible | |
| Func<Step, float?> | stepLengths | |
| Func<double> | randomDouble |
Returns
| Type | Description |
|---|---|
| CellPath |