Function

MKMapRectIntersection

Returns the rectangle representing the intersection of two rectangles.

Declaration

MKMapRect MKMapRectIntersection(MKMapRect rect1, MKMapRect rect2);

Parameters

rect1

The first rectangle.

rect2

The second rectangle.

Return Value

The rectangle representing the intersection of the two rectangles or MKMapRectNull if there is no intersection.

See Also

Modifying the Rectangle

MKMapRectUnion

Returns a rectangle representing the union of the two rectangles.

MKMapRectInset

Returns the specified rectangle inset by the specified amounts.

MKMapRectOffset

Returns a rectangle whose origin point is shifted by the specified amount.

MKMapRectDivide

Divides the specified rectangle into two smaller rectangles.