Point Plane Distance
From CGAFaq
Given a plane containing the point and having unit--length
normal
, a plane equation is
or
for a suitably
chosen scalar
. If in fact a plane point
is known,
then
.
The distance from a point to the plane is the length of the
projection of
onto a normal line to the plane.
Any point
may be written as
where is the projection of
onto the
plane. Necessarily
. The coefficient
is
The length of the projection, which is the distance from to the
plane, is
---
Another method can be used to calculate the point/plane distance that does not require selecting an arbitrary point on the plane. This method takes advantage of the properties of a plane in normal form.
Recall that the equation of a plane can be written as where a, b, c, d are constants and (x, y, z) represents any point on the plane. We can write this more simply as the plane vector P = (a, b, c, d).
Let N be the vector (a, b, c), extracted from the equation of the plane. N represents a vector pointing along the normal of the plane. The plane vector can be converted into normal form by dividing by the length of N. That is:
P' = (a', b', c', d') is the equation of the plane in normal form. Note that N' = (a', b', c') is now unit length. Additionally, |d'| is the minimum distance from the origin to the plane. More particularly, -d' * N' is the closest point on the plane to the origin.
Now, the distance from a point Q = (x, y, z) to a plane with normal N' passing through the origin is found by projecting Q onto N'
adjusting for the distance from the plane to the origin we get a point/plane distance of
Categories: Points | Planes | Distance

