Point.on_plane

Point.on_plane(plane, tol=None)[source]

Determine if the point lies on the given plane.

Parameters:
planecompas.geometry.Plane

The plane.

tolfloat, optional

A tolerance value for the distance between the point and the plane. Default is TOL.absolute.

Returns:
bool

True, if the point lies on the plane. False, otherwise.

Examples

>>> from compas.geometry import Plane
>>> from compas.geometry import Vector
>>> plane = Plane(Point(0.0, 0.0, 0.0), Vector(0.0, 0.0, 1.0))
>>> point = Point(0.5, 0.5, 0.0)
>>> point.on_plane(plane)
True