Signed distance from a point to a plane
ID: signed-distance-from-a-point-to-a-plane
Orient the plane with a unit normal . A point then has signed distance from a point to a planeIts absolute value is the ordinary distance from a point to a plane. The closest point on a plane is , so the displacement from the point to its orthogonal projection onto a plane is . Reversing the unit normal and reverses without changing the plane or the distance from a point to a plane. A sphere of radius centred at has sphere-plane intersection radius when .
For a general, not necessarily unit, normal vector in , the oriented distance is . In the worked example of distance from a point to a plane, orientation toward assigns to ; reversing that unit normal assigns . The closest point on a plane and the unsigned distance are unaffected.
New to topics? Read the docs here!