weibs
2006-11-24 12:45:23
Hey, I've been trying to figure this out for a while, but I can't get it.
I have the starting coords of the first line, and the ending coords of the second line, the staring coords of the second line, and the ending coords of the second line. I need to find the point of intersection of the two lines.
Here's a little picture for a better explanation:

The red line is the first line, and the black line is the second line. I need to find the intersection coordinates, (5, 5) using a formula or something. In this situation, it wouldn't be hard considering the red line is (y = 5) and the black line is (x = 5) so you'd just put the x and y together to get the intersection point of 5, 5. But, the lines I'll be dealing with are more like this:

I know there's some way to do it, I just can't get it.
Thanks in advance,
-Weibs.
I have the starting coords of the first line, and the ending coords of the second line, the staring coords of the second line, and the ending coords of the second line. I need to find the point of intersection of the two lines.
Here's a little picture for a better explanation:

The red line is the first line, and the black line is the second line. I need to find the intersection coordinates, (5, 5) using a formula or something. In this situation, it wouldn't be hard considering the red line is (y = 5) and the black line is (x = 5) so you'd just put the x and y together to get the intersection point of 5, 5. But, the lines I'll be dealing with are more like this:

I know there's some way to do it, I just can't get it.
Thanks in advance,
-Weibs.