distance3d.distance.line_segment_to_box¶
- distance3d.distance.line_segment_to_box(segment_start, segment_end, box2origin, size)[source]¶
Compute the shortest distance from line segment to box.
- Parameters:
- segment_startarray, shape (3,)
Start point of segment.
- segment_endarray, shape (3,)
End point of segment.
- box2originarray, shape (4, 4)
Pose of the box.
- sizearray, shape (3,)
Size of the box along its axes.
- Returns:
- distancefloat
The shortest distance between line segment and box.
- closest_point_line_segmentarray, shape (3,)
Closest point on line segment.
- closest_point_boxarray, shape (3,)
Closest point on box.