public static class Rectangle4D.Double extends Rectangle4D
Rectangle4D.Double, Rectangle4D.Float, Rectangle4D.Integer
Modifier and Type | Field and Description |
---|---|
double |
sizeT |
double |
sizeX |
double |
sizeY |
double |
sizeZ |
double |
t |
double |
x |
double |
y |
double |
z |
Constructor and Description |
---|
Rectangle4D.Double() |
Rectangle4D.Double(double x,
double y,
double z,
double t,
double sizeX,
double sizeY,
double sizeZ,
double sizeT) |
Rectangle4D.Double(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.Double |
getDimension()
Returns the dimension.
|
Point4D.Double |
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 position and size of this
Rectangle4D to the specified
double 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.
|
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, toInteger, toString, union
public double x
public double y
public double z
public double t
public double sizeX
public double sizeY
public double sizeZ
public double sizeT
public Rectangle4D.Double(double x, double y, double z, double t, double sizeX, double sizeY, double sizeZ, double sizeT)
public Rectangle4D.Double(Rectangle4D r)
public Rectangle4D.Double()
public void setRect(double x, double y, double z, double t, double sizeX, double sizeY, double sizeZ, double sizeT)
Rectangle4D
Rectangle4D
to the specified
double
values.setRect
in class Rectangle4D
x
- the X coordinate of the minimum corner position of this Rectangle4D
y
- the Y coordinate of the minimum corner position of this Rectangle4D
z
- the Z coordinate of the minimum corner position of this Rectangle4D
t
- the T coordinate of the minimum corner position of this Rectangle4D
sizeX
- size for X dimension of this Rectangle4D
sizeY
- size for Y dimension of this Rectangle4D
sizeZ
- size for Z dimension of this Rectangle4D
sizeT
- size for T dimension of this Rectangle4D
public double getX()
Rectangle4D
getX
in class Rectangle4D
public void setX(double value)
Rectangle4D
setX
in class Rectangle4D
public double getY()
Rectangle4D
getY
in class Rectangle4D
public void setY(double value)
Rectangle4D
setY
in class Rectangle4D
public double getZ()
Rectangle4D
getZ
in class Rectangle4D
public void setZ(double value)
Rectangle4D
setZ
in class Rectangle4D
public double getT()
Rectangle4D
getT
in class Rectangle4D
public void setT(double value)
Rectangle4D
setT
in class Rectangle4D
public double getSizeX()
Rectangle4D
getSizeX
in class Rectangle4D
public void setSizeX(double value)
Rectangle4D
setSizeX
in class Rectangle4D
public double getSizeY()
Rectangle4D
getSizeY
in class Rectangle4D
public void setSizeY(double value)
Rectangle4D
setSizeY
in class Rectangle4D
public double getSizeZ()
Rectangle4D
getSizeZ
in class Rectangle4D
public void setSizeZ(double value)
Rectangle4D
setSizeZ
in class Rectangle4D
public double getSizeT()
Rectangle4D
getSizeT
in class Rectangle4D
public void setSizeT(double value)
Rectangle4D
setSizeT
in class Rectangle4D
public Point4D.Double getPosition()
Rectangle4D
getPosition
in class Rectangle4D
public Dimension4D.Double getDimension()
Rectangle4D
getDimension
in class Rectangle4D
public Rectangle4D createIntersection(Rectangle4D r)
Rectangle4D
Rectangle4D
object representing the intersection of this
Rectangle4D
with the specified Rectangle4D
.createIntersection
in class Rectangle4D
r
- the Rectangle4D
to be intersected with this Rectangle4D
Rectangle4D
contained in both the specified
Rectangle4D
and in this Rectangle4D
.public Rectangle4D createUnion(Rectangle4D r)
Rectangle4D
Rectangle4D
object representing the union of this
Rectangle4D
with the specified Rectangle4D
.createUnion
in class Rectangle4D
r
- the Rectangle4D
to be combined with this Rectangle4D
Rectangle4D
containing both the specified
Rectangle4D
and this Rectangle4D
.public java.awt.geom.Rectangle2D toRectangle2D()
Rectangle4D
toRectangle2D
in class Rectangle4D
public Rectangle3D toRectangle3D()
Rectangle4D
toRectangle3D
in class Rectangle4D