I have two rectangles on a grid, defined by x, y, width, and height (all integers).
I want to tell if one of them bisects the other. That is, not just overlaps, but goes all the way through so as to create three rectangles.
Is there a relatively time-efficient algorithm to do this?
