Finding the Intersection Point of Two Lines in Vector Form

  • Context: Undergrad 
  • Thread starter Thread starter ross
  • Start date Start date
  • Tags Tags
    Intersection Lines
Click For Summary
SUMMARY

This discussion focuses on finding the intersection point of two lines represented in vector form using the equation (x, y) = (start_x, start_y) + t((end_x, end_y) - (start_x, start_y)). The key insight is that the parameter "t" does not need to be the same for both lines at the intersection point. Instead, users should solve a 2x2 system of equations for the two parametrization variables, t¹ and t², or eliminate the parametrization to solve for x and y directly using linear equations. The final approach discussed involves converting the vector form into slope-intercept form (y = mx + b) to find the intersection.

PREREQUISITES
  • Understanding of vector equations and parametrization
  • Familiarity with solving systems of linear equations
  • Knowledge of slope-intercept form of a line
  • Basic algebra skills for manipulating equations
NEXT STEPS
  • Study how to solve 2x2 systems of equations using substitution and elimination methods
  • Learn about vector algebra and its applications in geometry
  • Explore the conversion between vector form and slope-intercept form of lines
  • Investigate the geometric interpretation of line intersections in a coordinate plane
USEFUL FOR

Mathematicians, computer graphics developers, and anyone involved in computational geometry or physics simulations seeking to understand line intersections in vector form.

ross
Messages
4
Reaction score
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.
 
Physics news on Phys.org
Welcome to PF!
You are going about this in a fundamentally wrong way.
The parameter "t" need not have the same value at the point of intersection for each line!
What you need, is to solve a 2*2 system of two unknowns, the two parametrization variables:
Let superscript "1" denote Line 1 expression, "2" Line 2 expression.
Then we may write:
[tex](x,y)=(x^{1}_{0},y^{1}_{0})+t^{1}(x_{1}^{1}-x_{0}^{1}, y_{1}^{1}-y_{0}^{1})[/tex]
And line 2:
[tex](x,y)=(x^{2}_{0},y^{2}_{0})+t^{2}(x_{1}^{2}-x_{0}^{2}, y_{1}^{2}-y_{0}^{2})[/tex]
Set these expressions equal to each other, and solve for [tex]t^{1},t^{2}[/tex]

You may also eliminate the parametrization variable, and solve the following system
for x and y:
[tex]y=a^{1}x+b^{1}[/tex]
[tex]y=a^{2}x+b^{2}[/tex]
 
Ok, thanks.

What I ended up doing was turning the (x, y) = (a, b) + t(c - a, d - b) into y = mx + b. Then I solved for x and y.

The reason I wanted t was to know whether the intersection was actually between the two points (0 <= t <= 1). But I can just plug the point I found back into the first equation and solve for t.

x = a + t(c - a)
t = (x - a) / (c - a)
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K