Вопрос

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