region method
A constructor to an object describes a rectangular region at a particular coordinate.
Syntax
Call syntax
BOOL obj = [[Region alloc] region : region isIntersectedWithRegion: anotherRegion ];
Declaration
(BOOL)region:(Region *)region isIntersectedWithRegion:(Region *)anotherRegion
Parameters
- region
- Type:Region*
- The object provided as a parameter specifies both the top left of the new region and its dimensions.
- anotherRegion
- Type:Region*
Return value
- Type: BOOL