public static class Rectangle3D.Double extends Rectangle3D
Rectangle3D.Double, Rectangle3D.Float, Rectangle3D.Integer
Modifier and Type | Field and Description |
---|---|
double |
sizeX |
double |
sizeY |
double |
sizeZ |
double |
x |
double |
y |
double |
z |
Constructor and Description |
---|
Rectangle3D.Double() |
Rectangle3D.Double(double x,
double y,
double z,
double sizeX,
double sizeY,
double sizeZ) |
Rectangle3D.Double(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.Double |
getDimension()
Returns the dimension.
|
Point3D.Double |
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 position and size of this
Rectangle3D to the specified double 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.
|
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, toInteger, toString, union
public double x
public double y
public double z
public double sizeX
public double sizeY
public double sizeZ
public Rectangle3D.Double(double x, double y, double z, double sizeX, double sizeY, double sizeZ)
public Rectangle3D.Double(Rectangle3D r)
public Rectangle3D.Double()
public void setRect(double x, double y, double z, double sizeX, double sizeY, double sizeZ)
Rectangle3D
Rectangle3D
to the specified double
values.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 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.Double getPosition()
Rectangle3D
getPosition
in class Rectangle3D
public Dimension3D.Double getDimension()
Rectangle3D
getDimension
in class Rectangle3D
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