Skip to main content
8 events
when toggle format what by license comment
Apr 15, 2020 at 22:01 vote accept user82395214
Apr 15, 2020 at 20:20 comment added DMGregory By my reading, the two intervals overlap fully in the y axis (both boxes occupy exactly the same height range), and overlap partially in the x axis (the blue box intrudes partway into the red), so there is no "adjacent" result to confuse the outcome. They overlap on every axis, so we report they are overlapping.
Apr 15, 2020 at 20:15 comment added user82395214 Yes this is assuming AA. However, for the bottom right example, wouldn’t this return 0, aka adjacent, even though it should return overlapped? (Since we are returning “the greatest result on any axis”?
Apr 15, 2020 at 16:44 comment added Natalo77 It seems like OP is describing AABBs however, without knowing of their existence, so I think your answer was good
Apr 15, 2020 at 13:19 history edited DMGregory CC BY-SA 4.0
Reordering for better intuition on the numbers
Apr 15, 2020 at 13:16 comment added DMGregory Ah, from the diagram I just assumed we were dealing exclusively with AABBs, since no rotated boxes were shown. Maybe I should have asked to confirm. :/
Apr 15, 2020 at 13:05 comment added Natalo77 This is the correct answer - Bounding Boxes are all well and good, but Axis-Aligned Bounding Boxes are the efficient brother
Apr 15, 2020 at 12:14 history answered DMGregory CC BY-SA 4.0