public static class Rectangle4D.Integer extends Rectangle4D
Rectangle4D.Double, Rectangle4D.Float, Rectangle4D.Integer| Modifier and Type | Field and Description |
|---|---|
int |
sizeT |
int |
sizeX |
int |
sizeY |
int |
sizeZ |
int |
t |
int |
x |
int |
y |
int |
z |
| Constructor and Description |
|---|
Rectangle4D.Integer() |
Rectangle4D.Integer(int x,
int y,
int z,
int t,
int sizeX,
int sizeY,
int sizeZ,
int sizeT) |
Rectangle4D.Integer(Rectangle4D.Integer r) |
Rectangle4D.Integer(Rectangle4D r) |
| Modifier and Type | Method and Description |
|---|---|
Rectangle4D |
createIntersection(Rectangle4D r)
Returns a new
Rectangle4D object representing the intersection of this
Rectangle4D with the specified Rectangle4D. |
Rectangle4D |
createUnion(Rectangle4D r)
Returns a new
Rectangle4D object representing the union of this
Rectangle4D with the specified Rectangle4D. |
Dimension4D.Integer |
getDimension()
Returns the dimension.
|
Point4D.Integer |
getPosition()
Returns the point coordinates.
|
double |
getSizeT()
Returns the size of T dimension.
|
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 |
getT()
Returns the minimum T coordinate.
|
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 t,
double sizeX,
double sizeY,
double sizeZ,
double sizeT)
Sets the bounds of this
Rectangle4D to the integer bounds
which encompass the specified double bounds. |
void |
setRect(int x,
int y,
int z,
int t,
int sizeX,
int sizeY,
int sizeZ,
int sizeT)
Sets the position and size of this
Rectangle4D to the specified
integer values. |
void |
setSizeT(double value)
Sets the size of T dimension.
|
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 |
setT(double value)
Sets the minimum T coordinate.
|
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.
|
Rectangle4D.Integer |
toInteger()
Returns an integer
Rectangle4D that completely encloses the
double Rectangle. |
java.awt.geom.Rectangle2D |
toRectangle2D()
Convert to 2D rectangle
|
Rectangle3D |
toRectangle3D()
Convert to 3D rectangle
|
add, add, add, clone, contains, contains, contains, equals, getCenterT, getCenterX, getCenterY, getCenterZ, getMaxT, getMaxX, getMaxY, getMaxZ, getMinT, getMinX, getMinY, getMinZ, hashCode, intersect, intersects, intersects, isEmpty, isInfiniteT, isInfiniteX, isInfiniteY, isInfiniteZ, setInfiniteT, setInfiniteX, setInfiniteY, setInfiniteZ, toString, unionpublic int x
public int y
public int z
public int t
public int sizeX
public int sizeY
public int sizeZ
public int sizeT
public Rectangle4D.Integer(int x, int y, int z, int t, int sizeX, int sizeY, int sizeZ, int sizeT)
public Rectangle4D.Integer(Rectangle4D.Integer r)
public Rectangle4D.Integer(Rectangle4D r)
public Rectangle4D.Integer()
public void setRect(double x, double y, double z, double t, double sizeX, double sizeY, double sizeZ, double sizeT)
Rectangle4D to the integer bounds
which encompass the specified double bounds.setRect in class Rectangle4Dx - the X coordinate of the minimum corner position of this Rectangle4Dy - the Y coordinate of the minimum corner position of this Rectangle4Dz - the Z coordinate of the minimum corner position of this Rectangle4Dt - the T coordinate of the minimum corner position of this Rectangle4DsizeX - size for X dimension of this Rectangle4DsizeY - size for Y dimension of this Rectangle4DsizeZ - size for Z dimension of this Rectangle4DsizeT - size for T dimension of this Rectangle4Dpublic void setRect(int x, int y, int z, int t, int sizeX, int sizeY, int sizeZ, int sizeT)
Rectangle4D to the specified
integer values.x - the X coordinate of the minimum corner position of this Rectangle4Dy - the Y coordinate of the minimum corner position of this Rectangle4Dz - the Z coordinate of the minimum corner position of this Rectangle4Dt - the T coordinate of the minimum corner position of this Rectangle4DsizeX - size for X dimension of this Rectangle4DsizeY - size for Y dimension of this Rectangle4DsizeZ - size for Z dimension of this Rectangle4DsizeT - size for T dimension of this Rectangle4Dpublic double getX()
Rectangle4DgetX in class Rectangle4Dpublic void setX(double value)
Rectangle4DsetX in class Rectangle4Dpublic double getY()
Rectangle4DgetY in class Rectangle4Dpublic void setY(double value)
Rectangle4DsetY in class Rectangle4Dpublic double getZ()
Rectangle4DgetZ in class Rectangle4Dpublic void setZ(double value)
Rectangle4DsetZ in class Rectangle4Dpublic double getT()
Rectangle4DgetT in class Rectangle4Dpublic void setT(double value)
Rectangle4DsetT in class Rectangle4Dpublic double getSizeX()
Rectangle4DgetSizeX in class Rectangle4Dpublic void setSizeX(double value)
Rectangle4DsetSizeX in class Rectangle4Dpublic double getSizeY()
Rectangle4DgetSizeY in class Rectangle4Dpublic void setSizeY(double value)
Rectangle4DsetSizeY in class Rectangle4Dpublic double getSizeZ()
Rectangle4DgetSizeZ in class Rectangle4Dpublic void setSizeZ(double value)
Rectangle4DsetSizeZ in class Rectangle4Dpublic double getSizeT()
Rectangle4DgetSizeT in class Rectangle4Dpublic void setSizeT(double value)
Rectangle4DsetSizeT in class Rectangle4Dpublic Point4D.Integer getPosition()
Rectangle4DgetPosition in class Rectangle4Dpublic Dimension4D.Integer getDimension()
Rectangle4DgetDimension in class Rectangle4Dpublic Rectangle4D.Integer toInteger()
Rectangle4DRectangle4D 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 Rectangle4DRectangle that completely encloses
the actual double Rectangle.public Rectangle4D createIntersection(Rectangle4D r)
Rectangle4DRectangle4D object representing the intersection of this
Rectangle4D with the specified Rectangle4D.createIntersection in class Rectangle4Dr - the Rectangle4D to be intersected with this Rectangle4DRectangle4D contained in both the specified
Rectangle4D and in this Rectangle4D.public Rectangle4D createUnion(Rectangle4D r)
Rectangle4DRectangle4D object representing the union of this
Rectangle4D with the specified Rectangle4D.createUnion in class Rectangle4Dr - the Rectangle4D to be combined with this Rectangle4DRectangle4D containing both the specified
Rectangle4D and this Rectangle4D.public java.awt.geom.Rectangle2D toRectangle2D()
Rectangle4DtoRectangle2D in class Rectangle4Dpublic Rectangle3D toRectangle3D()
Rectangle4DtoRectangle3D in class Rectangle4D