For start I have 3 points : A,B,C
The points are placed in a grid. The grid is actually an ImageView in a FrameLayout and both of them are inside a RelativeLayout
The 3 points are places on RelativeLayout, on top of the grid.
Now the 3 points represent the center of a circle with different radius each time(doesn't matter), so when I place the 3 points I draw a circle around each of them.
The circles are drawn like this :
Drawable drawable = getResources().getDrawable(R.drawable.circle);
GradientDrawable gradientDrawable = (GradientDrawable) drawable;
gradientDrawable.setColor(getResources().getColor(android.R.color.transparent));
gradientDrawable.setShape(GradientDrawable.OVAL);
//Then scale it
gradientDrawable.setStroke(stroke,color);
circles[i].setImageDrawable(gradientDrawable);
Now I now both the (x,y) of the 3 points as well as their radius
Is there a way to find if the 3 cirlces intersect in one or more pixels?
EDIT:
Example of 3 circles that intersect in a point