public static class Rectangle3D.Float extends Rectangle3D
Rectangle3D.Double, Rectangle3D.Float, Rectangle3D.Integer| Modifier and Type | Field and Description |
|---|---|
float |
sizeX |
float |
sizeY |
float |
sizeZ |
float |
x |
float |
y |
float |
z |
| Constructor and Description |
|---|
Rectangle3D.Float() |
Rectangle3D.Float(float x,
float y,
float z,
float sizeX,
float sizeY,
float sizeZ) |
Rectangle3D.Float(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.Float |
getDimension()
Returns the dimension.
|
Point3D.Float |
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, unionpublic float x
public float y
public float z
public float sizeX
public float sizeY
public float sizeZ
public Rectangle3D.Float(float x, float y, float z, float sizeX, float sizeY, float sizeZ)
public Rectangle3D.Float(Rectangle3D r)
public Rectangle3D.Float()
public void setRect(double x, double y, double z, double sizeX, double sizeY, double sizeZ)
Rectangle3DRectangle3D to the specified double values.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 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.Float getPosition()
Rectangle3DgetPosition in class Rectangle3Dpublic Dimension3D.Float getDimension()
Rectangle3DgetDimension in class Rectangle3Dpublic 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