Bounding rectangle of this region.
Array of rectangles making up this region.
Adds the given rectangle to this region.
Adds the given region to this region.
Returns whether this region contains the given point.
Returns whether this region contains the given point.
Returns this region as an array of contiguous regions, based on 8-way connectivity (regions touching each other diagonally are considered one contiguous region).
The returned regions are guaranteed not to touch each other.
Sets the selected area to the intersection of the current selected area and the given rectangle.
Sets the selected area to the intersection of the current selected area and the given region.
Subtracts the given rectangle from this region.
Subtracts the given region from this region.
Generated using TypeDoc
Holds a discrete region, usually of a TileLayer.
When iterating all the locations within a region, don't use boundingRect in combination with contains! It is much faster to iterate over rects instead.