distance3d.distance.point_to_plane

distance3d.distance.point_to_plane(point, plane_point, plane_normal, signed=False)[source]

Compute the shortest distance between a point and a plane.

Parameters:
pointarray, shape (3,)

3D point.

plane_pointarray, shape (3,)

Point on the plane.

plane_normalarray, shape (3,)

Normal of the plane. We assume unit length.

signedbool, optional (default: False)

Should the distance have a sign?

Returns:
distfloat

The shortest distance between point and plane. A sign indicates the direction along the normal.

closest_point_planearray, shape (3,)

Closest point on plane.