bool isPointInFirstArea = isPointInTheCircle(xPos, yPos,
bottomCircleOffsetByX,
bottomCircleOffsetByY,
bottomCircleRadius)
&& isPointUpperThenCurve(xPos, yPos);
bool isPointInSecondArea = isPointInTheCircle(xPos, yPos,
upperCircleOffsetByX,
upperCircleOffsetByY,
upperCircleRadius)
&& !isPointUpperThenCurve(xPos, yPos);
bool isPointInArea = isPointInFirstArea || isPointInSecondArea;
cout << "Point in current area: ";<br> cout << isPointInArea << endl;<br>
}
return 0;
}