intersection method

Computes the intersection of this and other.

Rectangle intersection(
Rectangle other
)

Computes the intersection of this and other.

The intersection of two axis-aligned rectangles, if any, is always another axis-aligned rectangle.

Returns the intersection of this and other, or null if they don't intersect.