public static class Dimension3D.Integer extends Dimension3D
Dimension3D.Double, Dimension3D.Float, Dimension3D.Integer
Constructor and Description |
---|
Dimension3D.Integer() |
Dimension3D.Integer(int[] sizeXYZ) |
Dimension3D.Integer(int sizeX,
int sizeY,
int sizeZ) |
Modifier and Type | Method and Description |
---|---|
double |
getSizeX()
Returns the size of the X dimension in double precision.
|
double |
getSizeY()
Returns the size of the Y dimension in double precision.
|
double |
getSizeZ()
Returns the size of the Z dimension in double precision.
|
boolean |
isInfiniteX()
Returns
true if the X dimension should be considered as infinite. |
boolean |
isInfiniteY()
Returns
true if the Y dimension should be considered as infinite. |
boolean |
isInfiniteZ()
Returns
true if the Z dimension should be considered as infinite. |
void |
setSize(double sizeX,
double sizeY,
double sizeZ)
Sets the size of this
Dimension3D object. |
void |
setSizeX(double value)
Sets the size of the X dimension of this
Dimension3D in double
precision. |
void |
setSizeY(double value)
Sets the size of the Y dimension of this
Dimension3D in double
precision. |
void |
setSizeZ(double value)
Sets the size of the Z dimension of this
Dimension3D in double
precision. |
java.awt.geom.Dimension2D |
toDimension2D()
Convert to 2D dimension.
|
Dimension3D.Integer |
toInteger()
Returns an integer
Dimension3D that encloses the double Dimension3D . |
clone, equals, setSize, toString
public Dimension3D.Integer(int sizeX, int sizeY, int sizeZ)
public Dimension3D.Integer(int[] sizeXYZ)
public Dimension3D.Integer()
public double getSizeX()
Dimension3D
getSizeX
in class Dimension3D
public double getSizeY()
Dimension3D
getSizeY
in class Dimension3D
public double getSizeZ()
Dimension3D
getSizeZ
in class Dimension3D
public void setSizeX(double value)
Dimension3D
Dimension3D
in double
precision.setSizeX
in class Dimension3D
public void setSizeY(double value)
Dimension3D
Dimension3D
in double
precision.setSizeY
in class Dimension3D
public void setSizeZ(double value)
Dimension3D
Dimension3D
in double
precision.setSizeZ
in class Dimension3D
public void setSize(double sizeX, double sizeY, double sizeZ)
Dimension3D
Dimension3D
object.setSize
in class Dimension3D
sizeX
- the new size for the X dimensionsizeY
- the new size for the Y dimensionsizeZ
- the new size for the Z dimensionpublic boolean isInfiniteX()
Dimension3D
true
if the X dimension should be considered as infinite.isInfiniteX
in class Dimension3D
public boolean isInfiniteY()
Dimension3D
true
if the Y dimension should be considered as infinite.isInfiniteY
in class Dimension3D
public boolean isInfiniteZ()
Dimension3D
true
if the Z dimension should be considered as infinite.isInfiniteZ
in class Dimension3D
public java.awt.geom.Dimension2D toDimension2D()
Dimension3D
toDimension2D
in class Dimension3D
public Dimension3D.Integer toInteger()
Dimension3D
Dimension3D
that encloses the double Dimension3D
.Dimension3D.Integer
might also fail to completely enclose the
original double Dimension3D
if it overflows the limited range of the integer
data type.toInteger
in class Dimension3D
Dimension3D
that completely encloses
the actual double Dimension3D
.