Contents

byIntersection(with:)

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

Declaration

func byIntersection(with region: SKRegion) -> Self

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