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.
- point[float, float, float] |
- Returns:
compas.geometry.Point
| NoneThe projected point, or None if a direction is given and it is parallel to the plane.
Examples
>>> plane = Plane.worldXY() >>> point = plane.projected_point([1.0, 1.0, 1.0]) >>> print(point) Point(x=1.000, y=1.000, z=0.000)