public class EllipsoidRegion extends AbstractRegion
world| Constructor and Description |
|---|
EllipsoidRegion(EllipsoidRegion ellipsoidRegion) |
EllipsoidRegion(LocalWorld world,
Vector center,
Vector radius)
Construct a new instance of this ellipsoid region.
|
EllipsoidRegion(Vector pos1,
Vector pos2)
Construct a new instance of this ellipsoid region.
|
| Modifier and Type | Method and Description |
|---|---|
EllipsoidRegion |
clone() |
boolean |
contains(Vector pt)
Returns true based on whether the region contains the point,
|
void |
contract(Vector... changes)
Contract the region.
|
void |
expand(Vector... changes)
Expand the region.
|
void |
extendRadius(Vector minRadius) |
int |
getArea()
Get the number of blocks in the region.
|
Vector |
getCenter()
Get the center.
|
Set<Vector2D> |
getChunks()
Get a list of chunks that this region is within.
|
int |
getHeight()
Get Y-size.
|
int |
getLength()
Get Z-size.
|
Vector |
getMaximumPoint()
Get the upper point of the ellipsoid.
|
Vector |
getMinimumPoint()
Get the lower point of the ellipsoid.
|
Vector |
getRadius()
Get the radiuses.
|
int |
getWidth()
Get X-size.
|
void |
setCenter(Vector center)
Set the center.
|
void |
setRadius(Vector radius)
Set radiuses.
|
void |
shift(Vector change)
Shift the region.
|
String |
toString()
Returns string representation in the format
"(centerX, centerY, centerZ) - (radiusX, radiusY, radiusZ)".
|
getChunkCubes, getWorld, iterator, polygonize, setWorldpublic EllipsoidRegion(Vector pos1, Vector pos2)
pos1 - pos2 - public EllipsoidRegion(LocalWorld world, Vector center, Vector radius)
world - center - radius - public EllipsoidRegion(EllipsoidRegion ellipsoidRegion)
public Vector getMinimumPoint()
public Vector getMaximumPoint()
public int getArea()
getArea in interface RegiongetArea in class AbstractRegionpublic int getWidth()
getWidth in interface RegiongetWidth in class AbstractRegionpublic int getHeight()
getHeight in interface RegiongetHeight in class AbstractRegionpublic int getLength()
getLength in interface RegiongetLength in class AbstractRegionpublic void expand(Vector... changes) throws RegionOperationException
changes - array/arguments with multiple related changesRegionOperationExceptionpublic void contract(Vector... changes) throws RegionOperationException
changes - array/arguments with multiple related changesRegionOperationExceptionpublic void shift(Vector change) throws RegionOperationException
Regionshift in interface Regionshift in class AbstractRegionRegionOperationExceptionpublic Vector getCenter()
getCenter in interface RegiongetCenter in class AbstractRegionpublic void setCenter(Vector center)
center - public Vector getRadius()
public void setRadius(Vector radius)
radius - public Set<Vector2D> getChunks()
getChunks in interface RegiongetChunks in class AbstractRegionpublic boolean contains(Vector pt)
pt - public String toString()
public void extendRadius(Vector minRadius)
public EllipsoidRegion clone()
clone in interface Regionclone in class AbstractRegionCopyright © 2010-2014. All Rights Reserved.