Solved

Circle intersection

Posted on 2010-11-08
18
507 Views
Last Modified: 2012-05-10
I am trying to find out if these two circles intersect with eachother

(x-2)2 +(y+2)2 = 1

how do I do this?
0
Comment
Question by:tango2009
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
  • 4
  • +2
18 Comments
 
LVL 27

Expert Comment

by:d-glitch
ID: 34088285
That's only one circle.
0
 
LVL 27

Expert Comment

by:d-glitch
ID: 34088301
The way to check if two circles intersect is to look at the distance between their centers
and the sum of their radii.
0
 
LVL 27

Expert Comment

by:d-glitch
ID: 34088324
Do you know how to find the center and radius of this circle:

        (x-2)² +(y+2)² = 1
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 32

Expert Comment

by:phoffric
ID: 34088404
This has nice pictures to help visualize:
      http://local.wasp.uwa.edu.au/~pbourke/geometry/2circle/

It not only addresses your question, but also identifies the points of intersection.

There is even a link at the top that has a C source code example by Tim Voght.
0
 

Author Comment

by:tango2009
ID: 34088950
sorry made a mistake in posting its these two circles

(x-2)2 +(y+2)2 = 1
x2 +y2 = 4

thanks for your reply phroffic I will have a go using your link
0
 
LVL 32

Expert Comment

by:phoffric
ID: 34089010
The previous link was for good pictures and some c-code.
Here is a math link that starts off with the basic equations.
     http://www.sonoma.edu/users/w/wilsonst/papers/geometry/circles/default.html

BTW - some notation for writing on EE to show raising to the power of 2:
(x-2)^2 +(y+2)^2 = 1
x^2 +y^2 = 4

You can even do:
(x-2)² +(y+2)² = 1
x² +y² = 4
0
 

Author Comment

by:tango2009
ID: 34092113
This is how far Iv got can you see if I am doing this right

(x-2) ^2 + (y+2)^2 = 1
x^2 + y^2 = 4

(x + 2 + y + 2 -1) + (x^2 + y^2 - 4)

x + y + 4x + 4y

x + y -8

= 4 (x + y -2 )

Y = (-4x + 8) / 4 = -x + 2 -> 2 - x

next I have to substitute the value of y in the eqaution. I am on the right tracks so far or am I off point.
0
 
LVL 84

Expert Comment

by:ozo
ID: 34092202
What do those lines represent?
What's on the left of the 3rd = ?
Do you need to find the points of intersection, or just determine whether they intersect?
0
 

Author Comment

by:tango2009
ID: 34092233
These are two circles that I have to check if they intersect or not?

'What's on the left of the 3rd = ?' Not sure which one you mean. Is it this bit =4 ( x + y - 2) if so thats a typo sorry there shouldn't be an eqauls there.
0
 
LVL 84

Accepted Solution

by:
ozo earned 125 total points
ID: 34092290
The first two equations are circles.
I'm not sure what the next four quantities represent.
Nor what the line in the last equation represents.
Whatever you are doing is unnecessary to check whether they intersect or not.
For that, it is sufficient to determine the radius of each circle and the distance between their centres.
0
 
LVL 27

Assisted Solution

by:d-glitch
d-glitch earned 125 total points
ID: 34092652
You can tell (just by looking at the two equations) that the radius of the first circle is 1
and the radius of the second circle is 2.  Do you see this?

You can also tell (again just by looking) what the centers of the two circles are.
Do you know how to do this?
0
 
LVL 32

Expert Comment

by:phoffric
ID: 34094933
In my previous link is this link:
     http://www.sonoma.edu/users/w/wilsonst/papers/geometry/circles/T1--2/T1-3-1.html
which helps you understand the coordinates of the center of a circle and the radius.
0
 

Author Comment

by:tango2009
ID: 34095073
Ok

So with this eqaution (x-2)² +(y+2)² = 1

The centre of the circle is (2,2) and the radius is 1

With the other equation isn't the radius 4 and the centre (2,2)?
0
 
LVL 32

Expert Comment

by:phoffric
ID: 34095177
>> the radius is 1
Yes

>> The centre of the circle is (2,2)
No. Take a look at the formulas and be careful about the signs.

Hint:  You probably know this:    +9 = -(-9)
But see if you can apply this idea to the center of circle problem.
0
 
LVL 32

Expert Comment

by:phoffric
ID: 34095213
>> x^2 + y^2 = 4
>> isn't the radius 4 and the centre (2,2)?

Ok, you are saying that r = 4, x0 = y0 = 2.
Test out your idea by plugging in your values into the circle equation from the link:

(x - x0)² + (y - y0)² = r²

Write down the equation plugging in the values. The equation you come up with will be a circle whose center is (2,2) and whose radius is 4. Does this equation match the equation of the one you posted?
0
 
LVL 32

Assisted Solution

by:phoffric
phoffric earned 125 total points
ID: 34107857
Here is an example that I am making up.(x + 19)² + (y - 17)² = 36We recognize the form of this equation as a circle having a center (x0,y0) and radius r. We want to find out these 3 values.The standard form of a circle (from the link) is:    (x - x0)²  + (y - y0)² =   r²    (x + 19)² + (y - 17)² = 36We need minus signs inside the parenthesis. Notice that +19 == -(-19), and that 36 == 6² , so rewrite as:    (x + 19)² + (y - 17)² = 36   ==>    (x - (-19) )²  + (y - 17)² =   6²    (x -   x0  )²  + (y - y0)² =   r²By inspection, you can see that x0 is -19, y0 is 17, and r is 6; so we have a circle whose center is    (-19, 6) and whose radius is 6.
0
 
LVL 32

Expert Comment

by:phoffric
ID: 34107861
correction to cut and paste error:By inspection, you can see that x0 is -19, y0 is 17, and r is 6; so we have a circle whose center is   (-19, 17) and whose radius is 6.
0
 
LVL 2

Assisted Solution

by:nickalh
nickalh earned 125 total points
ID: 34210432
To extract the center and radius from a circle convert it to

GENERIC EQUATION OF A CIRCLE
(x - x_0)² + (y - y_0)² = r²
form

For example,
(x - 3)^2  + (y+ 7)^2 = 100
becomes

(x - 3)^2  + (y  - (- 7) )^2 = 10^2
Now it's identically in the generic form.
We can lift out x_0 = 3,   y_0= -7 and the radius = 10.


So for the 2nd equation, x^2 + y^2 = 4
the center is not (2, 2) because there is no 2 being added or subtracted from x and no 2 being added or subtracted from y.

The radius is not 4.  because it still needs to go into square form first.  Only when we have the form
(x - x_0)² + (y - y_0)² = r²
can we directly find x_0, y_0 or r from the equation.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Sampling 3 71
Dice Roll Probabilities 3 154
Request to review costing formula 3 70
how does a seed know what it is when planted? 10 74
Complex Numbers are funny things.  Many people have a basic understanding of them, some a more advanced.  The confusion usually arises when that pesky i (or j for Electrical Engineers) appears and understanding the meaning of a square root of a nega…
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question