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

Click For Summary
SUMMARY

This discussion focuses on calculating a point on a line in 3D space that is perpendicular to another line and intersects it. The method involves expressing the two lines as parametric equations and calculating the squared distance between them, resulting in a quadratic function. By differentiating this function and solving the resulting equations, unique parameters s and t can be determined, provided the lines are not parallel. If the lines are parallel, an arbitrary parameter can be chosen to find the minimum distance.

PREREQUISITES
  • Understanding of 3D geometry and parametric equations
  • Familiarity with vector mathematics and direction vectors
  • Knowledge of quadratic functions and differentiation
  • Basic concepts of linear algebra, particularly regarding vector products
NEXT STEPS
  • Study the derivation of parametric equations for lines in 3D space
  • Learn about calculating distances between parametric lines in 3D geometry
  • Explore vector calculus, specifically differentiation of multivariable functions
  • Review textbooks on computer graphics that cover line intersection problems
USEFUL FOR

Mathematicians, computer graphics developers, and engineers working on 3D modeling or simulations that require precise calculations of line intersections and distances in three-dimensional space.

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
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 73 ·
3
Replies
73
Views
9K
Replies
17
Views
3K
Replies
24
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
8K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K