Function

MKMapRectDivide

Divides the specified rectangle into two smaller rectangles.

Declaration

void MKMapRectDivide(MKMapRect rect, MKMapRect *slice, MKMapRect *remainder, double amount, CGRectEdge edge);

Parameters

rect

The rectangle to divide.

slice

On input, a pointer to a map rectangle. On output, this parameter contains the portion of rect that was removed.

remainder

On input, a pointer to a map rectangle. On output, this parameter contains the remaining portion of rect that was not removed.

amount

The amount of rect to remove along the specified edge. If this value is negative, it is set to 0.

edge

The edge from which to remove the specified amount.

See Also

Modifying the Rectangle

MKMapRectUnion

Returns a rectangle representing the union of the two rectangles.

MKMapRectIntersection

Returns the rectangle representing the intersection of 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.