intersection


Description:

public bool intersection (Rect b, out Rect res)

Computes the intersection of this and b, and places it in res, if res is not null.

This function will normalize both this and b prior to computing their intersection.

This function can be used to simply check if the intersection of this and b is not empty, by using null for res.

Parameters:

this

a Rect

b

a Rect

res

a Rect, or null

Returns:

true if the intersection of this and b is not empty