distance3d.distance.plane_to_box¶
- distance3d.distance.plane_to_box(plane_point, plane_normal, box2origin, size)[source]¶
Compute the shortest distance between a plane and a box.
- Parameters:
- plane_pointarray, shape (3,)
Point on the plane.
- plane_normalarray, shape (3,)
Normal of the plane. We assume unit length.
- box2originarray, shape (4, 4)
Pose of the box.
- sizearray, shape (3,)
Size of the box along its axes.
- Returns:
- distfloat
The shortest distance between rectangle and plane.
- closest_point_planearray, shape (3,)
Closest point on plane.
- closest_point_boxarray, shape (3,)
Closest point on box.