Enter a point and a direction for each line to find the distance between them.
Write the three coordinates, like (1, 2, 3).
Write the three components, like (1, 0, 0).
Write the three coordinates, like (1, 2, 3).
Write the three components, like (1, 0, 0).
Try
Result
You entereddistance between the lines through (0,0,0) and (0,1,1)
1
Show the work
1
Direction of the common perpendicular
The shortest segment between two lines is at right angles to both, so it runs along d1×d2.
n=d1×d2=(1,0,0)×(0,1,0)=(0,0,1)
2
Distance between skew lines
Join a point on each line with p2−p1, then find how much of that join lies along the common perpendicular: the absolute value of the dot product with n, divided by the length of n.