Find the shortest distance between 2 non-paralle lines (skew lines) in 3-space

Click For Summary

Discussion Overview

The discussion focuses on methods for finding the shortest distance between two non-parallel lines, known as skew lines, in three-dimensional space. Participants explore various mathematical approaches and techniques for calculating this distance, including both geometric and calculus-based methods.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Exploratory

Main Points Raised

  • One participant requests an explanation of how to find the shortest distance between skew lines, providing specific line equations as examples.
  • Another participant outlines a method involving the cross product of the two lines, constructing a perpendicular plane, projecting the lines onto this plane, and finding the intersection point of the projections to determine the distance.
  • A different approach is suggested that involves representing the lines in parameter form, setting up a distance squared function, taking partial derivatives, and solving for the parameters to find the distance between the points on the lines.
  • One participant mentions finding a simple solution online and shares a link to an external resource.
  • Another participant proposes a method that involves normalizing the direction vectors of the lines, extruding them to form planes, and finding the intersections of these planes to identify the endpoints of the shortest segment connecting the lines.

Areas of Agreement / Disagreement

Participants present multiple competing methods for calculating the shortest distance between skew lines, with no consensus on a single approach. Each method has its own merits and assumptions, leading to a variety of perspectives on the problem.

Contextual Notes

Some methods rely on specific mathematical properties of the lines and may depend on the definitions used for distance and projection. The discussion does not resolve the effectiveness or applicability of the different approaches presented.

yanyin
Messages
20
Reaction score
0
explain how you go about finding the shortest distance between 2 non-parallel lines (i.e. skew lines).
for example:
x=3-2t, y=1-4t, z = t and (x+2)/3=y+1=(z+1)/-2
 
Physics news on Phys.org
You can work out the details.

1. Take the cross product of the two lines.

2. Construct a plane perpendicular to this vector.

3. Project the two original lines onto this plane.

4. Find the point of intersection of the two projections.

5. Find the points on the original two lines which projected onto the intersection point.

6. Find the distance between these points. That's what you are looking for.
 
Since this is the calculus forum, here is an alternate approach to my previous note.

1. Represent both lines in parameter form (s and t).

2. Set up the distance squared (H) between arbitrary points p on line 1 and q on line 2 as a function of the two parameters.

3, Take partial derivatives of H with respect to t and with respect to s. This will be two linear equations in two unknowns s and t.

4. Solve for s and t. Find the points on the 2 lines corresponding to these values of s and t and compute the distance between them.

5. If you are not interested in the points on the lines but only the distance, plug the found values of s and t into the equation for H and take a square root.
 
i found a very simple, basic and easy to understand solution on the web, take a look if you like:
http://www.mis.coventry.ac.uk/jtm/slides/8/sld8p5.pdf
 
Last edited by a moderator:
I like this approach for its simplicity and symmetry:
1. Normalize-Cross-Prod the directions of L1 and L2 to obtain the direction of their adjoining lineSeg dL
2. Extrude L1 along direction dL (= plane PL1)
3. Extrude L2 along direction dL (= plane PL2)
4. The endpoints of the shortest LineSeg bridging between L1 and L2 are:
intersection( PL1 , L2 )
intersection( PL2 , L1 )

from Pierre Bierre, author, "Flexing the Power of Algorithmic Geometry"
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
82
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
4
Views
2K