Calculates the intersection of two rectangles.
It is allowed for dest to be the same as either this or src2. If the
rectangles do not intersect, dest’s width and height is set to 0 and its x and y values are undefined. If you are only
interested in whether the rectangles intersect, but not in the intersecting area itself, pass null for
dest.
| this | |
| src2 | |
| dest |
return location for the intersection of this and |
|
true if the rectangles intersect. |