MKMapRectDivide(_:_:_:_:_:)
Divides the specified rectangle into two smaller rectangles.
Declaration
func MKMapRectDivide(_ rect: MKMapRect, _ slice: UnsafeMutablePointer<MKMapRect>, _ remainder: UnsafeMutablePointer<MKMapRect>, _ amount: Double, _ edge: CGRectEdge)Parameters
- rect:
The rectangle to divide.
- slice:
On input, a pointer to a map rectangle. On output, this parameter contains the portion of
rectthat the method removes. - remainder:
On input, a pointer to a map rectangle. On output, this parameter contains the remaining portion of
rectthat the method doesn’t remove. - amount:
The amount of
rectto remove along the specified edge. If this value is negative, the system sets it to0. - edge:
The edge from which to remove the specified amount.