public final class Regions
extends java.lang.Object
Region
s.Modifier and Type | Method and Description |
---|---|
static FlatRegion |
asFlatRegion(Region region)
Attempt to get a
FlatRegion from the given region. |
static int |
maximumBlockY(Region region)
Get the maximum Y coordinate of the given region using the region's
Region.getMaximumPoint() method. |
static double |
maximumY(Region region)
Get the maximum Y coordinate of the given region using the region's
Region.getMaximumPoint() method. |
static int |
minimumBlockY(Region region)
Get the minimum Y coordinate of the given region using the region's
Region.getMinimumPoint() method. |
static double |
minimumY(Region region)
Get the minimum Y coordinate of the given region using the region's
Region.getMinimumPoint() method. |
public static double minimumY(Region region)
Region.getMinimumPoint()
method.region
- the regionpublic static double maximumY(Region region)
Region.getMaximumPoint()
method.region
- the regionpublic static int minimumBlockY(Region region)
Region.getMinimumPoint()
method.region
- the regionpublic static int maximumBlockY(Region region)
Region.getMaximumPoint()
method.region
- the regionpublic static FlatRegion asFlatRegion(Region region)
FlatRegion
from the given region.
If the given region is already a FlatRegion
, then the region
will be cast and returned. Otherwise, a new CuboidRegion
will
be created covers the provided region's minimum and maximum extents.
region
- the region