distance3d.distance.plane_to_plane

distance3d.distance.plane_to_plane(plane_point1, plane_normal1, plane_point2, plane_normal2, epsilon=1e-06)[source]

Compute the shortest distance between two planes.

Parameters:
plane_point1array, shape (3,)

Point on the plane.

plane_normal1array, shape (3,)

Normal of the plane. We assume unit length.

plane_point2array, shape (3,)

Point on the plane.

plane_normal2array, shape (3,)

Normal of the plane. We assume unit length.

epsilonfloat, optional (default: 1e-6)

Values smaller than epsilon are considered to be 0.

Returns:
distfloat

The shortest distance between line segment and plane.

closest_point_plane1array, shape (3,)

Closest point on first plane.

closest_point_plane2array, shape (3,)

Closest point on second plane.