The distance from a point to a line (line-point distance), measured orthogonally—that is, as the distance between the given point and the nearest point on the line—is:
In the n-dimensional case, the point on the line defined by Equation (1.58) that is nearest to a point
is the point for which the scalar
takes the value
| (1.68) |
This formulation is particularly useful for 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 point nearest to
lies within the segment, since it is the scalar projection of the segment
onto the segment
.
Finally, Section 1.6.10, Equation (1.90), will show how to find the point on a hyperplane nearest to an arbitrary point. This formulation also applies to lines written in hyperplane form. Consequently, the point on the line
nearest to the point
is
| (1.69) |
Paolo medici