Function IntRect.Intersection

Intersection (IntRect a, IntRect b)

Returns the intersection rect between the two rects.

Public Static
IntRect Intersection (

IntRect

a

IntRect

b

)

Returns the intersection rect between the two rects.

The intersection rect is the area which is inside both rects. If the rects do not have an intersection, an invalid rect is returned.