The distance of a point from a line (line-point distance), understood as the orthogonal distance, that is, the distance between the given point and the nearest point on the line, is:
In the n-dimensional case, the point on the line given by equation (1.58) that is closest to a point
is the point for which the scalar
assumes the value
| (1.68) |
This formulation is particularly useful when measuring the distance between a point and a segment
using the line generated as in equation (1.65).
In this case, a value of
between
indicates that the closest point to
lies inside the segment, as the scalar projection of the segment
onto the segment
.
Finally, in section 1.6.10, equation (1.90) will show how to find the point on a hyperplane closest to a generic point. This formulation can also be applied to lines written in hyperplane form; consequently, the point on the line
closest to the point
is
| (1.69) |
Paolo medici