我有以下形状图像
当我触摸蓝色区域或不在我的图像视图中时,我想验证我的触摸事件。我需要将圆弧和矩形组合为一个并验证触摸事件的坐标吗?
如果它是一个圆圈,我会使用它
private boolean isIn3PointArea(float touchX, float touchY, float centerX, float centerY, double r){
float x = touchX - centerX;
float y = touchY - centerY;
return (touchY < centerY && Math.sqrt(x*x+y*y) > r);
}