Skip to main content

find_path_on_grid_astar

Members

g_score : Float32Array

Contains refined heuristic value

Functions

index2point(result, index, width)
compute_neighbors(result, index, width, height)number
compute_path(node, g_score, width, height)Array.<number>
heuristic(index0, index1, width)number
find_path_on_grid_astar(field, width, height, start, goal, block_value)Array.<number>

g_score : Float32Array

Contains refined heuristic value

Kind: global variable

index2point(result, index, width)

Kind: global function

ParamType
resultVector2
indexnumber
widthnumber

compute_neighbors(result, index, width, height) ⇒ number

Kind: global function

ParamType
resultArray.<number> | Uint32Array
indexnumber
widthnumber
heightnumber

compute_path(node, g_score, width, height) ⇒ Array.<number>

Kind: global function

ParamType
nodenumber
g_scoreArray.<number> | Float32Array
widthnumber
heightnumber

heuristic(index0, index1, width) ⇒ number

Kind: global function

ParamType
index0number
index1number
widthnumber

find_path_on_grid_astar(field, width, height, start, goal, block_value) ⇒ Array.<number>

Kind: global function
Returns: Array.<number> - array of indices representing path from start to end

ParamTypeDescription
fieldArray.<number> | Uint8Array | Uint16Array | Float32Array
widthnumber
heightnumber
startnumber
goalnumber
block_valuenumbervalue in the field that signifies impassible obstacle