Class: Grid

Grid

class of a Grid which provide a navigation algorithm

new Grid (props)

Grid's constructor function
Name Type Description
props Object

Methods

distanceTo (grid)number

get distance to cube
Name Type Description
grid Grid
Returns:
Type Description
number

getNeighbors ()Array

get neighbor grid
Returns:
Type Description
Array