Function doBBoxesIntersect