Determine if two rectangles overlap each other in JavaScript
Stack Overflow has a good post on determining if two rectangles are overlapping. I used the discussed algorithm to check for an overlap and then move one away. I’m only moving up or down depending on which rectangle is higher…
Posted in
2 Comments