Editing Computational geometry

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 764: Line 764:
  
 
===Two points of intersection===
 
===Two points of intersection===
When the closest distance from the centre of the circle to the line is less than the circle's radius, the line intersects the circle twice.
+
When the closest distance from the centre of the circle to the line is less than the circle's radius, the line intersects the circle twice. The algebraic method must be used to find these points of intersection.
 
+
To find the two points of intersection, first drop a perpendicular from the centre of the circle to the line. Call the foot of the perpendicular <math>P</math> and denote the distance <math>|OP|</math> by <math>d</math>. Now, let the two points of intersection be <math>Q_1</math> and <math>Q_2</math>. Then, the triangles <math>\triangle OPQ_1</math> and <math>\triangle OPQ_2</math> are right-angled, and hence we see that <math>|OP|^2 + |Q_1P|^2 = |OQ_1|^2 = r^2</math> and <math>|OP|^2 + |Q_2P|^2 = |OQ_2|^2 = r^2</math>. So we compute the value <math>h = \sqrt{r^2 - |OP|^2}</math>; now, if we move <math>h</math> units in either direction along the line from <math>P</math>, we will reach either <math>Q_1</math> or <math>Q_2</math>. (The technique to do so is given in section [[#Translation along a line|Translation along a line]].)
+
  
 
==Intersection of a circle with a circle==
 
==Intersection of a circle with a circle==

Please note that all contributions to PEGWiki are considered to be released under the Attribution 3.0 Unported (see PEGWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)

Templates used on this page: