How do you find the distance betweeen two parallel lines in #3# dimensional space?
3 Answers
One way...
Explanation:
If you have two parallel lines in
#l_1(t) = bb(p) + t bb(v)#
#l_2(t) = bb(q) + t bb(v)#
where
The plane:
#v_1 x + v_2 y + v_3 z = 0#
is normal to both lines and each line intersects it in exactly one point.
For the line
#(bb(p)+t bb(v)) * bb(v) = 0#
Hence:
#t = -(bb(p) * bb(v)) / (bb(v) * bb(v))#
and the point of intersection is:
#bb(p) - ((bb(p) * bb(v)) / (bb(v) * bb(v))) bb(v)#
Similarly, the point of intersection of
#bb(q) - ((bb(q) * bb(v)) / (bb(v) * bb(v))) bb(v)#
The distance between the lines is the distance between these two points:
#sqrt((bb(q)-bb(p)-(((bb(q)-bb(p)) * bb(v)) / (bb(v) * bb(v))) bb(v)) * (bb(q)-bb(p)-(((bb(q)-bb(p)) * bb(v)) / (bb(v) * bb(v))) bb(v)))#
Distance:
Explanation:
Note: This formula only works for finding the shortest distance between two parallel lines
Finding the (shortest) distance between two parallel lines is the same as finding the distance between a line and point.
Let the line
Consider the triangle
Then
Remark: If
See below
Explanation:
Given two parallel lines
with
then
then
NOTE