isBallRegion method

bool isBallRegion(
  1. double checkX,
  2. double checkY
)

Implementation

bool isBallRegion(double checkX, double checkY) {
  if ((pow(super.xPos - checkX, 2) + pow(super.yPos - checkY, 2)) <=
      pow(ballRad, 2)) {
    return true;
  }
  return false;
}