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]) np.float64(0.0)
>>> plane.distance_point([5, 2, 1]) np.float64(1.0)
>>> plane.distance_point([5, 2, -4]) np.float64(4.0)