bool containsPoint(point)

Returns whether or not this Grid contains a PointNode at point.

Source

bool containsPoint(Point point) {
  return point.x >= 0 && point.y >= 0 && point.x < this.cols && point.y < this.rows;
}