我有以下形状图像
当我触摸蓝色区域或不在我的imageview中时,我想验证我的触摸事件。我需要将弧和矩形合并为一个并验证触摸事件的坐标?
如果它是一个圆圈,我会使用它
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);
}