Function

CGRectIsInfinite

Returns whether a rectangle is infinite.

Declaration

bool CGRectIsInfinite(CGRect rect);

Parameters

rect

The rectangle to examine.

Return Value

Returns YES if the specified rectangle is infinite; otherwise, NO.

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

CGRectIsEmpty

Returns whether a rectangle has zero width or height, or is a null rectangle.

CGRectIsNull

Returns whether the rectangle is equal to the null rectangle.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software