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.