cellGet method

bool cellGet(
  1. int x,
  2. int y
)

Retrieves the value of a cell at the specified coordinates.

Returns false if the coordinates are out of bounds.

Implementation

bool cellGet(final int x, final int y) {
  assert(_isValidXY(x, y) == true);
  return _matrix[y * cols + x] == 1;
}