Create an empty region set for a gridSize
x gridSize
grid.
dimension of grid, must be nonnegative integer
Readonly
griddimension of grid, must be nonnegative integer
Add a rectangle of grid cells to the region labeled by the given label (or create such a labeled region if it was not already present), if it does not intersect with other existing labeled regions.
Error if adding the rectangle would make label's region discontiguous or would intersect with a cell in another labeled region
label of region
rectangle to add to labeled region. Required to have nonzero area and integer coordinates
drawn from [0,gridSize
].
Get the labels of regions that intersect the given rectangle (where the intersection contains at least one full grid cell).
the labels of regions in this set whose intersection with rect contains at least one grid cell
rectangle to query. Its coordinates must be integers in [0,gridSize
].
Generated using TypeDoc
An implementation of RegionSet.
PS2 instructions: you must use the provided rep. You may not change the spec of the constructor.