Checks if two bounding boxes overlap. If they don't overlap, returns undefined. If they do, return the overlap
first bounding box
second bounding box
Checks if two bounding boxes overlap. If they don't overlap, returns undefined. If they do, return the overlap