Distance between two lines in 3D

  • Thread starter Melawrghk
  • Start date
  • #1
145
0

Homework Statement


L1=(x,y,z)=(-2,-4,-3)+t(-2,3,-2)
L2=(x,y,z)=(0,0,4)+ s(-2,-3,-1)

Find the shortest distance between the two lines

The Attempt at a Solution


First, I did the cross product of the two directional vectors from both lines:
(-2,3,-2) x (-2,-3,-1) = (-9,-2, 12)
And its unit vector is:
-9x-2y+12z
-----------
2291/2

Then I found the distance between two points on the lines:
R = (0,0,4)-(-2,-4,-3) = (2,4,7)

And then I just tried to project the R onto the unit vector and got 58/sqrt(229), but that's not right. Help?
 

Answers and Replies

  • #2
rock.freak667
Homework Helper
6,223
31
that should be correct.

EDIT: yeah Dick is right...Sorry about that
 
Last edited:
  • #3
Dick
Science Advisor
Homework Helper
26,263
619
I get that the cross product is (-9,+2,+12).
 
  • #4
145
0
Ooohhh!!! I see, I'm just retarded and forgot about the negative space in the second row. OOOOH. This all makes sense now!

Thank you!
 

Related Threads on Distance between two lines in 3D

  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
2
Views
789
  • Last Post
Replies
8
Views
5K
  • Last Post
Replies
4
Views
22K
Replies
2
Views
2K
Replies
13
Views
2K
  • Last Post
Replies
7
Views
4K
Replies
1
Views
2K
Replies
1
Views
4K
  • Last Post
Replies
1
Views
525
Top