Please sign in to comment.
Add generics to RasterizedRegion, change return type of Regions.raster
The generics were added to RasterizedRegion so that getRealRegion can return the actual type of the region which was rasterized. This could be done by calling getSource numerous times, but occassionally the getSource method is not part of the interface which makes the casts more confusing. Also the generics provide a nice syntax, for example a rasterized HyperRectangle can now be written as RasterizedRegion<HyperRectangle>. The return type of Regions.raster was changed to RasterizedRegion to take advantage of these nice features.
- Loading branch information...
Showing with 6 additions and 10 deletions.