Plane.contains_point

Plane.contains_point(point, tol=None)[source]

Verify if a given point lies in the plane.

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

The point.

tolfloat, optional

Tolerance for the distance from the point to the plane. Default is TOL.absolute.

Returns:
bool

True if the point lies in the plane. False otherwise.

Examples

>>> plane = Plane.worldXY()
>>> plane.contains_point([1.0, 1.0, 0.0])
True