skspatial.objects.Plane.project_point¶
- Plane.project_point(point: Union[ndarray, Sequence]) Point [source]¶
Project a point onto the plane.
- Parameters
- pointarray_like
Input point.
- Returns
- Point
Projection of the point onto the plane.
Examples
>>> from skspatial.objects import Plane
>>> plane = Plane(point=[0, 0, 0], normal=[0, 0, 2])
>>> plane.project_point([10, 2, 5]) Point([10., 2., 0.])
>>> plane.project_point([5, 9, -3]) Point([5., 9., 0.])