Const astar
astar: { heuristics: { diagonal: any; manhattan: any }; cleanNode: any; search: any } = ...
Type declaration
-
heuristics: { diagonal: any; manhattan: any }
-
diagonal: function
-
Parameters
Returns number
-
manhattan: function
-
Parameters
Returns number
-
cleanNode: function
-
search: function
-
Parameters
-
-
-
-
options: { closest?: boolean; heuristic?: any } = {}
-
Optional closest?: boolean
-
Optional heuristic?: any
Perform an A* Search on a graph given a start and end node.
[options.closest] Specifies whether to return the path to the closest node if the target is unreachable. [options.heuristic] Heuristic function (see astar.heuristics).