This function takes as inputs two bounding boxes and calculates the norm between the two closest points in each box. If the boxes overlap, then the distance is defined as 0.
Tony Reina (2021). bbDist (https://www.mathworks.com/matlabcentral/fileexchange/56883-bbdist), MATLAB Central File Exchange. Retrieved .
Your documentation says
% Bounding boxes in MATLAB are stored as
% bb = [x y width height]
However, the help page in MATLAB says, "[start,finish] = H5S.get_select_bounds(space_id) returns the coordinates of the bounding box containing the current selection. start contains the starting coordinates of the bounding box and finish contains the coordinates of the diagonally opposite corner."
Can you comment on the discrepancy?
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!