pathfinding.core.grid library


The Grid class, which serves as the encapsulation of the layout of the nodes. @constructor @param {number} width Number of columns of the grid. @param {number} height Number of rows of the grid. @param {Array.<Array.<(number|boolean)>>} matrix - A 0-1 matrix representing the walkable status of the nodes(0 or false for walkable). If the matrix is not supplied, all the nodes will be walkable.