# Find (x,y) of a point with 3 equations for circle // Coordonnées d'un point

Hello everybody !

We're french so sorry for our english ^^

So we have a project for school and we want to find the coordinates of a point with 3 equations of 3 circles.

Because we came to the conclusion that if we use only 2 equations we will find the coordinates of two points. Do you agree with us ?

So

• (x- Xa)² + (y- Ya)² = Ra²
• (x- Xb)² + (y- Yb)² = Rb²
• (x- Xc)² + (y- Yc)² = Rc²

We know : Xa, Ya, Xb, Yb, Xc, Yc, Ra, Rb, Rc.

We already find the solutions with 2 equations but we don't know how to use it with the third one...

Probably the third circle is used to select which of the two points is the wanted solution. What you have to is testing which of the points is a member of the third circle

So you need to determine if the point is within a circle or all three circles, then find the coordinates of that point in all three circles?

Are you looking for a code to solve this?

There are a number of possibilities with 2 circles

1. the circles do overlap and have 2 points in common
2. the circles touch and have one point in common
3. the circles do not overlap/touch

in case (1) The third circle can be used to choose one of the two points under the assumption that the 3rd circle also goes through one of these points.
in case (2) same

in case (3) you might check if the 3rd circle touches or overlaps the other circles.

it is simple to check if two circles overlap:
if (distance(midpoint-a , midpoint-b) < Ra + Rb) ==> overlap
if (distance(midpoint-a , midpoint-b) == Ra + Rb) ==> touch
if (distance(midpoint-a , midpoint-b) > Ra + Rb) ==> no overlap/touch

these formulas does not say anything about the intersection points (except in case 2)
but give you a quick check if doing all the math makes sense

Are you doing something like this?
Please excuse the image size, it was taken from my phone.

Because we came to the conclusion that if we use only 2 equations we will find the coordinates of two points. Do you agree with us ?

No: you have:

1. Two points if the circles intersect in two points.

2. One point if they are tangent

3. No points if they do not intersect (I'll have to check if this case issues a(n) imaginary(ies) solution(s); I dont think so)

An amazing case this of detemining a point with three circles: where does it come from?

Best regards

You don’t mention what relationship the circles have to the point.

What does this have to do with Arduino?

It looks like a school trig assignment.

Pete

Poor little duck.

Perhaps my imagination died because I don't see it.

LOL

Thank you for your repplies !

Yes, we’re looking for a code to solve this problem.
Like one of you said, we wanted to use the equation of the third circle to select one of the 2 points we found with the first 2 equations. But we don’t how to program this… Can x have two values ?

Maybe if I explain our complete project you will understand better:

We put 3 ultra sound transmitters and we want to know where our lost object which have recievers on him is.
So knowing the amplitude use by the transmitters and the amplitude recieve by the reciever on the object and a formula we can find the distance between transmitter A and the object = rA, the distance between transmitter B and the object = rB, the distance between transmitter C and the object= rC

(Xa, Ya) the coordinate of Transmitter A etc…

So at the end we want to know the coordinate of our object. We know this coordinate can’t be very precise that’s why we decided to put cases on our model like a Battleships game.

Like this :

So at the end, we want arduino to tell us on a little screen the position of our object, here : B3 for exemple.