skspatial.objects.Plane.distance_point

Plane.distance_point(point: Union[ndarray, Sequence]) float64[source]

Return the distance from a point to the plane.

Parameters:
pointarray_like

Input point.

Returns:
np.float64

Distance from the point to the plane.

References

http://mathworld.wolfram.com/Point-PlaneDistance.html

Examples

>>> from skspatial.objects import Plane
>>> plane = Plane([0, 0, 0], [0, 0, 1])
>>> plane.distance_point([5, 2, 0])
0.0
>>> plane.distance_point([5, 2, 1])
1.0
>>> plane.distance_point([5, 2, -4])
4.0