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