Vector Math – Line intersection

In this post I test how to intersect lines. The aim was to learn how you get the intersection point (x and y coordinate ) of two intersecting lines. This flash movie builds on a number of vector math functions. The most important principles are:

  • How to get a random position on a circle.
  • How to rotate vectors.
  • How to get the U value of intersection point between two lines.
  • And lastly plug that U value back in the equation to get the x and y coordinate of intersection.

You can drag the slider below to generate some new lines to intersect.


Get Adobe Flash player


Leave a Reply

Your email address will not be published. Please enter your name, email and a comment.

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>