TOPICS
Search

Signed Distance


The signed distance from a point to an oriented hyperplane is the perpendicular distance with a sign determined by which side contains the point. It is positive on the side toward which the unit normal vector points, negative on the opposite side, and zero on the hyperplane.

If n^^ is the unit normal vector and x_0 is any point of the hyperplane, the signed distance of x is the dot product

 d=n^^·(x-x_0).

Reversing n^^ reverses the sign of d (Georgiades 1992).

On a line with a unit-scale coordinate x increasing in the chosen direction, the signed distance from A to B is x_B-x_A.

For a triangle traversed in the order A, B, C, take the left side of the line directed from A to B as positive. The signed distance of C from that line is the signed height in the signed area formula.

In trilinear coordinates, each sideline of the reference triangle is oriented by the unit normal vector pointing toward the opposite polygon vertex.


See also

2-Dimensional Point-Line Distance, Distance, Hyperplane, Point-Plane Distance, Signed Area, Trilinear Coordinates

Explore with Wolfram|Alpha

References

Georgiades, P. "Signed Distance from Point to Plane." In Graphics Gems III (Ed. D. Kirk). San Diego, CA: Academic Press, pp. 223-224, 1992. https://doi.org/10.1016/B978-0-08-050755-2.50050-6.

Cite this as:

Weisstein, Eric W. "Signed Distance." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/SignedDistance.html

Subject classifications