RosettaCodeData/Task/Find-the-intersection-of-tw.../00-TASK.txt

12 lines
467 B
Plaintext

Finding the intersection of two lines that are in the same plane is an important topic in collision detection.<ref>[http://mathworld.wolfram.com/Line-LineIntersection.html]</ref>
;Task:
Find the point of intersection of two lines in 2D.
The 1<sup>st</sup> line passes though &nbsp; <big> (4,0) </big> &nbsp; and &nbsp; <big> (6,10)</big> .
<br>The 2<sup>nd</sup> line passes though &nbsp; <big> (0,3) </big> &nbsp; and &nbsp; <big> (10,7)</big> .
<br><br>