distance3d.distance.plane_to_cylinder

distance3d.distance.plane_to_cylinder(plane_point, plane_normal, cylinder2origin, radius, length)[source]

Compute the shortest distance between a plane and a cylinder.

Parameters:
plane_pointarray, shape (3,)

Point on the plane.

plane_normalarray, shape (3,)

Normal of the plane. We assume unit length.

cylinder2originarray, shape (4, 4)

Pose of the cylinder.

radiusfloat

Radius of the cylinder.

lengthfloat

Length of the cylinder.

Returns:
distfloat

The shortest distance between rectangle and plane.

closest_point_planearray, shape (3,)

Closest point on plane.

closest_point_cylinderarray, shape (3,)

Closest point on cylinder.