public static class Rectangle3D.Integer extends Rectangle3D
Rectangle3D.Double, Rectangle3D.Float, Rectangle3D.Integer| Modifier and Type | Field and Description |
|---|---|
int |
sizeX |
int |
sizeY |
int |
sizeZ |
int |
x |
int |
y |
int |
z |
| Constructor and Description |
|---|
Rectangle3D.Integer() |
Rectangle3D.Integer(int x,
int y,
int z,
int sizeX,
int sizeY,
int sizeZ) |
Rectangle3D.Integer(Rectangle3D.Integer r) |
Rectangle3D.Integer(Rectangle3D r) |
| Modifier and Type | Method and Description |
|---|---|
Rectangle3D |
createIntersection(Rectangle3D r)
Returns a new
Rectangle3D object representing the intersection of this Rectangle3D with
the specified Rectangle3D. |
Rectangle3D |
createUnion(Rectangle3D r)
Returns a new
Rectangle3D object representing the union of this Rectangle3D with the
specified Rectangle3D. |
Dimension3D.Integer |
getDimension()
Returns the dimension.
|
Point3D.Integer |
getPosition()
Returns the point coordinates.
|
double |
getSizeX()
Returns the size of X dimension.
|
double |
getSizeY()
Returns the size of Y dimension.
|
double |
getSizeZ()
Returns the size of Z dimension.
|
double |
getX()
Returns the minimum X coordinate.
|
double |
getY()
Returns the minimum Y coordinate.
|
double |
getZ()
Returns the minimum Z coordinate.
|
void |
setRect(double x,
double y,
double z,
double sizeX,
double sizeY,
double sizeZ)
Sets the bounds of this
Rectangle3D to the integer bounds
which encompass the specified double bounds. |
void |
setRect(int x,
int y,
int z,
int sizeX,
int sizeY,
int sizeZ)
Sets the position and size of this
Rectangle3D to the specified integer values. |
void |
setSizeX(double value)
Sets the size of X dimension.
|
void |
setSizeY(double value)
Sets the size of Y dimension.
|
void |
setSizeZ(double value)
Sets the size of Z dimension.
|
void |
setX(double value)
Sets the minimum X coordinate.
|
void |
setY(double value)
Sets the minimum Y coordinate.
|
void |
setZ(double value)
Sets the minimum Z coordinate.
|
Rectangle3D.Integer |
toInteger()
Returns an integer
Rectangle3D that completely encloses the
double Rectangle. |
java.awt.geom.Rectangle2D |
toRectangle2D()
Convert to 2D rectangle
|
add, add, add, clone, contains, contains, contains, contains, equals, getBounds, getCenterX, getCenterY, getCenterZ, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, hashCode, intersect, intersects, intersects, intersects, intersectsLine, intersectsLine, intersectsLine, isEmpty, isInfiniteX, isInfiniteY, isInfiniteZ, setInfiniteX, setInfiniteY, setInfiniteZ, toString, unionpublic int x
public int y
public int z
public int sizeX
public int sizeY
public int sizeZ
public Rectangle3D.Integer(int x, int y, int z, int sizeX, int sizeY, int sizeZ)
public Rectangle3D.Integer(Rectangle3D.Integer r)
public Rectangle3D.Integer(Rectangle3D r)
public Rectangle3D.Integer()
public void setRect(double x, double y, double z, double sizeX, double sizeY, double sizeZ)
Rectangle3D to the integer bounds
which encompass the specified double bounds.setRect in class Rectangle3Dx - the X coordinate of the minimum corner position of this Rectangle3Dy - the Y coordinate of the minimum corner position of this Rectangle3Dz - the Z coordinate of the minimum corner position of this Rectangle3DsizeX - size for X dimension of this Rectangle3DsizeY - size for Y dimension of this Rectangle3DsizeZ - size for Z dimension of this Rectangle3Dpublic void setRect(int x, int y, int z, int sizeX, int sizeY, int sizeZ)
Rectangle3D to the specified integer values.x - the X coordinate of the minimum corner position of this Rectangle3Dy - the Y coordinate of the minimum corner position of this Rectangle3Dz - the Z coordinate of the minimum corner position of this Rectangle3DsizeX - size for X dimension of this Rectangle3DsizeY - size for Y dimension of this Rectangle3DsizeZ - size for Z dimension of this Rectangle3Dpublic double getX()
Rectangle3DgetX in class Rectangle3Dpublic void setX(double value)
Rectangle3DsetX in class Rectangle3Dpublic double getY()
Rectangle3DgetY in class Rectangle3Dpublic void setY(double value)
Rectangle3DsetY in class Rectangle3Dpublic double getZ()
Rectangle3DgetZ in class Rectangle3Dpublic void setZ(double value)
Rectangle3DsetZ in class Rectangle3Dpublic double getSizeX()
Rectangle3DgetSizeX in class Rectangle3Dpublic void setSizeX(double value)
Rectangle3DsetSizeX in class Rectangle3Dpublic double getSizeY()
Rectangle3DgetSizeY in class Rectangle3Dpublic void setSizeY(double value)
Rectangle3DsetSizeY in class Rectangle3Dpublic double getSizeZ()
Rectangle3DgetSizeZ in class Rectangle3Dpublic void setSizeZ(double value)
Rectangle3DsetSizeZ in class Rectangle3Dpublic Point3D.Integer getPosition()
Rectangle3DgetPosition in class Rectangle3Dpublic Dimension3D.Integer getDimension()
Rectangle3DgetDimension in class Rectangle3Dpublic Rectangle3D.Integer toInteger()
Rectangle3DRectangle3D that completely encloses the
double Rectangle. The returned Rectangle might also fail to
completely enclose the original double Rectangle if it overflows
the limited range of the integer data type.toInteger in class Rectangle3DRectangle that completely encloses
the actual double Rectangle.public Rectangle3D createIntersection(Rectangle3D r)
Rectangle3DRectangle3D object representing the intersection of this Rectangle3D with
the specified Rectangle3D.createIntersection in class Rectangle3Dr - the Rectangle3D to be intersected with this Rectangle3DRectangle3D contained in both the specified Rectangle3D and in this
Rectangle3D.public Rectangle3D createUnion(Rectangle3D r)
Rectangle3DRectangle3D object representing the union of this Rectangle3D with the
specified Rectangle3D.createUnion in class Rectangle3Dr - the Rectangle3D to be combined with this Rectangle3DRectangle3D containing both the specified Rectangle3D and this
Rectangle3D.public java.awt.geom.Rectangle2D toRectangle2D()
Rectangle3DtoRectangle2D in class Rectangle3D