yolkbot
learn
community
Preparing search index...
AStar
Class AStar
An AStar implementation used internally for pathfinding
Index
Constructors
constructor
Methods
heuristic
path
reverse
Path
Constructors
constructor
new
AStar
(
list
:
NodeList
)
:
AStar
Parameters
list
:
NodeList
Returns
AStar
Methods
heuristic
heuristic
(
pos1
:
Position
,
pos2
:
Position
)
:
number
Parameters
pos1
:
Position
pos2
:
Position
Returns
number
path
path
(
start
:
MapNode
,
end
:
MapNode
)
:
MapNode
[]
|
null
Parameters
start
:
MapNode
end
:
MapNode
Returns
MapNode
[]
|
null
reverse
Path
reversePath
(
node
:
MapNode
,
start
:
MapNode
)
:
MapNode
[]
Parameters
node
:
MapNode
start
:
MapNode
Returns
MapNode
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
heuristic
path
reverse
Path
learn
community
yolkbot
Loading...
An AStar implementation used internally for pathfinding