- #1
ross
- 4
- 0
I'm using the following equation to represent lines
(x, y) = (start_x, start_y) + t((end_x, end_y) - (start_x, start_y))
I'm trying to find the interesection point of two lines written in this form.
I have been able to solve for t and plug it back into the equation, but i get two values of t when i solve for it. So that gives me 2 possible x values and 2 possible y values in the end. One x value is correct, and one y value is correct, but I get a wrong x value and a wrong y value.
I'm wondering if there's a totally different way, or a way to get rid of the x and y value that I don't need.
Thanks.
(x, y) = (start_x, start_y) + t((end_x, end_y) - (start_x, start_y))
I'm trying to find the interesection point of two lines written in this form.
I have been able to solve for t and plug it back into the equation, but i get two values of t when i solve for it. So that gives me 2 possible x values and 2 possible y values in the end. One x value is correct, and one y value is correct, but I get a wrong x value and a wrong y value.
I'm wondering if there's a totally different way, or a way to get rid of the x and y value that I don't need.
Thanks.