Try reading this discussion. It is the same problem, different points.
http://math.stackexchange.com/questions/1300484/distance-between-line-and-a-point
Find the shortest distance between the point D with coordinates (-2,-2,9) and the line passing through the points with coordinates B(2,4,6) and C(4,1,5)
1 answer