Instance Method

regionByIntersectionWithRegion:

Returns a new region created by intersecting the contents of this region with another region.

Declaration

- (instancetype)regionByIntersectionWithRegion:(SKRegion *)region;

Parameters

region

The region to intersect.

Return Value

A new region whose contents include all points that are included in both regions.

See Also

Creating and Initializing Region Objects

+ infiniteRegion

Returns a region that defines a region that includes all points.

- initWithSize:

Initializes a new region with a rectangular area.

- initWithRadius:

Initializes a new region with a circular area.

- initWithPath:

Initializes a new region using a Core Graphics path.

- inverseRegion

Returns a new region that is the mathematical inverse of an existing region.

- regionByDifferenceFromRegion:

Returns a new region created by subtracting the contents of another region from this region.

- regionByUnionWithRegion:

Returns a new region created by combining the contents of this region with another region.