From the line equation we denote r1 = (3, −4, 2) and e1 = (2, 1, 4).
The vector from point r1 to point P is:
QP = (px − x1)i + (py − y1)j + (pz − z1)k
QP = (4 − 3)i + [1 − (−4)]j + (−5 −2)k = i + 5j −7k
The perpendicular vector to QP and the line is the cross product of this vectors and is:
The norm (magnitude) of the cross product is:
The norm of the line directions numbers vector is:
And the distance of the line from the point is:
We mark the point (x, y, z) as the intersection point of the shortest line from the given point to the given line.
this line is located on the perpendicular plane from line L
1.
The point P is also located on the same plane and has direction numbers of (2, 1, 4). The following relation is true.
To find the shortest line intersection point with the given line, we set the line equation divisions equal to t.
We get a set of 3 equations in the x, y and z direction with the unknown t:
x = 2t + 3
y = t − 4
z = 4t + 2
Substitute the values of x, y and z into the equation found before, we get:
And the value of the parameter t is:
The value of the intersection point x,y and z is: (1, −5, −2)