Class Bounds
java.lang.Object
com.codename1.ui.scene.Bounds
Encapsulates bounds in a 3D space.
-
Constructor Summary
ConstructorsConstructorDescriptionBounds(double minX, double minY, double minZ, double width, double height, double depth) Parameters
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetDepth()Gets the depth of the bounding cube along z-axis.doubleGets the height of the bounding cube along y-axis).doublegetMinX()Gets min X coordinate of bounding cube.doublegetMinY()Gets the min Y coordinate of bounding cube.doublegetMinZ()Sets the min Z coordinate of bounding cube.doublegetWidth()Gets the width of the bounding cube (along x-axis)voidsetDepth(double depth) Sets the depth of the bounding cube along z-axisvoidsetHeight(double height) Sets the height of the bounding cube along y-axis.voidsetMinX(double minX) Sets min X coordinate of bounding cube.voidsetMinY(double minY) Sets the min Y coordinate of bounding cube.voidsetMinZ(double minZ) Sets the min Z coordinate of the bounding cube.voidsetWidth(double width) Sets the width of the bouding cube along x-axis.
-
Constructor Details
-
Bounds
public Bounds(double minX, double minY, double minZ, double width, double height, double depth) Parameters
-
minX -
minY -
minZ -
width -
height -
depth
-
-
-
Method Details
-
getMinX
public double getMinX()Gets min X coordinate of bounding cube.
Returns
the minX
-
setMinX
public void setMinX(double minX) Sets min X coordinate of bounding cube.
Parameters
minX: the minX to set
-
getMinY
public double getMinY()Gets the min Y coordinate of bounding cube.
Returns
the minY
-
setMinY
public void setMinY(double minY) Sets the min Y coordinate of bounding cube.
Parameters
minY: the minY to set
-
getMinZ
public double getMinZ()Sets the min Z coordinate of bounding cube.
Returns
the minZ
-
setMinZ
public void setMinZ(double minZ) Sets the min Z coordinate of the bounding cube.
Parameters
minZ: the minZ to set
-
getWidth
public double getWidth()Gets the width of the bounding cube (along x-axis)
Returns
the width
-
setWidth
public void setWidth(double width) Sets the width of the bouding cube along x-axis.
Parameters
width: the width to set
-
getHeight
public double getHeight()Gets the height of the bounding cube along y-axis).
Returns
the height
-
setHeight
public void setHeight(double height) Sets the height of the bounding cube along y-axis.
Parameters
height: the height to set
-
getDepth
public double getDepth()Gets the depth of the bounding cube along z-axis.
Returns
the depth
-
setDepth
public void setDepth(double depth) Sets the depth of the bounding cube along z-axis
Parameters
depth: the depth to set
-