contains method

bool contains(
  1. Vec2D point
)

Implementation

bool contains(Vec2D point) {
  return point.x >= left &&
      point.x <= right &&
      point.y >= top &&
      point.y <= bottom;
}