Const
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.
This assumes both valid (bottom > top, right > left) and non zero rects
The outer rectangle.
The inner rectangle.
Optional
Subtract vertical before horizontal. Default Value false.
false
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.
This assumes both valid (bottom > top, right > left) and non zero rects