Instance Method

insetBy(dx:dy:)

Returns the specified rectangle inset by the specified amounts.

Declaration

func insetBy(dx: Double, dy: Double) -> MKMapRect

Parameters

rect

The original rectangle.

dx

The amount (in map points) to subtract from both sides along the x-axis.

dy

The amount (in map points) to subtract from both sides along the y-axis.

Return Value

The inset rectangle. If the original rectangle was null, that rectangle is returned instead.

See Also

Modifying the Rectangle

func union(MKMapRect) -> MKMapRect

Returns a rectangle representing the union of the two rectangles.

func intersection(MKMapRect) -> MKMapRect

Returns the rectangle representing the intersection of two rectangles.

func offsetBy(dx: Double, dy: Double) -> MKMapRect

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