문제

I have a point p and multiple circles C1,C2,C3.... Cn.

How can i find if the point is at the intersection area of this Circles ?enter image description here

I just know the center(x,y) and the radius of the circles C1...Cn and the coordinates of the point p(x,y).

I have to write a cpp code for implementing this problem.

But at first i need to know the logic. Please help.

도움이 되었습니까?

해결책

Just check if the distances of the point from the three centers are less of all the three radius.

EDIT: homework? I should not have answered :/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top