distance3d.distance.point_to_box

distance3d.distance.point_to_box(point, box2origin, size)[source]

Compute the shortest distance between point and box.

Parameters:
pointarray, shape (3,)

3D point.

box2originarray, shape (4, 4)

Pose of the box.

sizearray, shape (3,)

Size of the box along its axes.

Returns:
distfloat

The shortest between point and box.

closest_point_boxarray, shape (3,)

Closest point on box.