Skip to content

Additional

More things with grids!

Spatial

Comparison

  • Grids.cellEquals : compares equality of cell position
  • Grids.inside : returns true if a cell position is within bounds of a grid
  • Grids.isCell : returns true if the passed object seems to be a cell (ie it has x & y properties)
  • Grids.isEqual : returns true if two Grids have same value

1D Indexing