distance3d.distance.plane_to_ellipsoid

distance3d.distance.plane_to_ellipsoid(plane_point, plane_normal, ellipsoid2origin, radii)[source]

Compute the shortest distance between a plane and an ellipsoid.

Parameters:
plane_pointarray, shape (3,)

Point on the plane.

plane_normalarray, shape (3,)

Normal of the plane. We assume unit length.

ellipsoid2originarray, shape (4, 4)

Pose of the ellipsoid.

radiiarray, shape (3,)

Radii of the ellipsoid.

Returns:
distfloat

The shortest distance between rectangle and plane.

closest_point_planearray, shape (3,)

Closest point on plane.

closest_point_ellipsoidarray, shape (3,)

Closest point on ellipsoid.