Plane.closest_point

Plane.closest_point(point)[source]

Compute the closest point on the plane to a given point.

Parameters:
point[float, float, float] | compas.geometry.Point

The point.

Returns:
compas.geometry.Point

The closest point on the plane.

Examples

>>> plane = Plane.worldXY()
>>> point = plane.closest_point([1.0, 1.0, 1.0])
>>> print(point)
Point(x=1.000, y=1.000, z=0.000)