intersect


Description:

public bool intersect (Rectangle src1, Rectangle src2)

Calculates the intersection of two rectangles.

If the rectangles do not intersect, dest's width and height are set to 0 and its x and y values are undefined.

this may point to the same object as src1 or src2.

Returns TRUE if the rectangles intersect.

Parameters:

this

return location for the intersection of src1 and src2, or NULL.

src1

a Rectangle

src2

a Rectangle