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, union
public 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 Rectangle3D
x
- the X coordinate of the minimum corner position of this Rectangle3D
y
- the Y coordinate of the minimum corner position of this Rectangle3D
z
- the Z coordinate of the minimum corner position of this Rectangle3D
sizeX
- size for X dimension of this Rectangle3D
sizeY
- size for Y dimension of this Rectangle3D
sizeZ
- size for Z dimension of this Rectangle3D
public 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 Rectangle3D
y
- the Y coordinate of the minimum corner position of this Rectangle3D
z
- the Z coordinate of the minimum corner position of this Rectangle3D
sizeX
- size for X dimension of this Rectangle3D
sizeY
- size for Y dimension of this Rectangle3D
sizeZ
- size for Z dimension of this Rectangle3D
public double getX()
Rectangle3D
getX
in class Rectangle3D
public void setX(double value)
Rectangle3D
setX
in class Rectangle3D
public double getY()
Rectangle3D
getY
in class Rectangle3D
public void setY(double value)
Rectangle3D
setY
in class Rectangle3D
public double getZ()
Rectangle3D
getZ
in class Rectangle3D
public void setZ(double value)
Rectangle3D
setZ
in class Rectangle3D
public double getSizeX()
Rectangle3D
getSizeX
in class Rectangle3D
public void setSizeX(double value)
Rectangle3D
setSizeX
in class Rectangle3D
public double getSizeY()
Rectangle3D
getSizeY
in class Rectangle3D
public void setSizeY(double value)
Rectangle3D
setSizeY
in class Rectangle3D
public double getSizeZ()
Rectangle3D
getSizeZ
in class Rectangle3D
public void setSizeZ(double value)
Rectangle3D
setSizeZ
in class Rectangle3D
public Point3D.Integer getPosition()
Rectangle3D
getPosition
in class Rectangle3D
public Dimension3D.Integer getDimension()
Rectangle3D
getDimension
in class Rectangle3D
public Rectangle3D.Integer toInteger()
Rectangle3D
Rectangle3D
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 Rectangle3D
Rectangle
that completely encloses
the actual double Rectangle
.public Rectangle3D createIntersection(Rectangle3D r)
Rectangle3D
Rectangle3D
object representing the intersection of this Rectangle3D
with
the specified Rectangle3D
.createIntersection
in class Rectangle3D
r
- the Rectangle3D
to be intersected with this Rectangle3D
Rectangle3D
contained in both the specified Rectangle3D
and in this
Rectangle3D
.public Rectangle3D createUnion(Rectangle3D r)
Rectangle3D
Rectangle3D
object representing the union of this Rectangle3D
with the
specified Rectangle3D
.createUnion
in class Rectangle3D
r
- the Rectangle3D
to be combined with this Rectangle3D
Rectangle3D
containing both the specified Rectangle3D
and this
Rectangle3D
.public java.awt.geom.Rectangle2D toRectangle2D()
Rectangle3D
toRectangle2D
in class Rectangle3D