Plane.projected_point

Plane.projected_point(point, direction=None)[source]

Returns the projection of a given point onto the plane.

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

The point.

Returns:
compas.geometry.Point | None

The projected point, or None if a direction is given and it is parallel to the plane.

Examples

>>> plane = Plane.worldXY()
>>> plane.projected_point([1.0, 1.0, 1.0])
Point(1.000, 1.000, 0.000)