isOutside function

bool isOutside(
  1. Point<double> point,
  2. Size objSize
)

Implementation

bool isOutside(Point<double> point, Size objSize) {
  return !(point.x >= -objSize.width / 2 &&
      point.x <= objSize.width / 2 &&
      point.y >= -objSize.height / 2 &&
      point.y <= objSize.height / 2);
}