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()
>>> plane.closest_point([1.0, 1.0, 1.0])
Point(1.000, 1.000, 0.000)