Contents

CGRectIsInfinite(_:)

Returns whether a rectangle is infinite.

Declaration

func CGRectIsInfinite(_ rect: CGRect) -> Bool

Parameters

  • rect:

    The rectangle to examine.

Return Value

Returns true if the specified rectangle is infinite; otherwise, false.

Discussion

An infinite rectangle is one that has no defined bounds. Infinite rectangles can be created as output from a tiling filter. For example, the Core Image framework perspective tile filter creates an image whose extent is described by an infinite rectangle.

See Also

Checking Rectangle Characteristics