Breaks the outer rect into 1-4 parts based on the inner rect. If the inner rect doesn't intersect then a 0 length array will be returned.
The outer rectangle.
The inner rectangle.
Subtract vertical before horizontal. Default Value false.
false
An array of rectangles representing the remaining parts of the outer rectangle after subtracting the inner rectangle.
This assumes both valid (bottom > top, right > left) and non zero rects
Breaks the outer rect into 1-4 parts based on the inner rect. If the inner rect doesn't intersect then a 0 length array will be returned.