Calculate point on line, perpendicular and intersecting another line in 3d space

Click For Summary
To find a point on a line in 3D space that is perpendicular to another line and intersects it, one can represent both lines using parametric equations based on parameters s and t. By calculating the squared distance between the two lines, a quadratic function can be derived, which can be differentiated to find critical points. This results in two equations that can be solved for unique values of s and t, provided the lines are not parallel. If the lines are parallel, one can set a parameter (e.g., s = 0) to find a corresponding t. For detailed calculations, consulting geometry or computer graphics textbooks is recommended.
WLamers
Messages
4
Reaction score
0
Hello All,

I am looking for a way to find a point on a line (eg. line 1). This line has a perpendicular which has an intersection with another line in 3d space (line 2).

I have the coordinates of line 1 and 2 and their direction vectors (lines have an infinite length). I also have the distance between the two lines. Can anybody help me with this problem?


Thank you in advance!
 
Physics news on Phys.org
It is fairly straight-forward to find the minimum distance between to parametric lines. Write the two lines as a function of, say, parameters s and t. Calculate the squared distance between the two lines will give a quadratic function in s and t which can be differentiated and equated to zero. This gives two equations in the two unknowns s and t which can be solved for unique s and t if the lines are not parallel (the vector product of the two direction vectors must be non-zero). These values can be inserted into the parametric lines to find the actual points. If the lines are parallel there are infinitely many lines connecting them at minimum distance, so you can choose one parameters, say s = 0, and insert this in either of the two equations from which t can be found.

If you can positively state that this is not homework, I you can probably persuade me (or someone else here) to write up the actual calculations following from the above procedure. Or you could try look it up in a textbook on geometry or computer graphics where this is a commonly described problem.
 

Similar threads

  • · Replies 73 ·
3
Replies
73
Views
7K
Replies
17
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
24
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K