Function IntRect.Exclude

Exclude (IntRect a, IntRect b)

Returns a new rect that contains all of a except for the parts covered by b.

Public Static
IntRect Exclude (

IntRect

a

IntRect

b

)

Returns a new rect that contains all of a except for the parts covered by b.

┌───────────┐
B
┌─────┐
─►
└──┼─────┼──┘ ┌─────┐
A A
└─────┘ └─────┘