Point.distance_to_plane

Point.distance_to_plane(plane)[source]

Compute the distance to a plane.

Parameters

plane ([point, vector] | compas.geometry.Plane) – The plane.

Returns

float – The distance.

Examples

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