public class Bounds
- Object
- Bounds
Encapsulates bounds in a 3D space.
Constructors
public Bounds(double minX, double minY, double minZ, double width, double height, double depth) |
Methods
public double getMinX() | Gets min X coordinate of bounding cube. |
public void setMinX(double minX) | Sets min X coordinate of bounding cube. |
public double getMinY() | Gets the min Y coordinate of bounding cube. |
public void setMinY(double minY) | Sets the min Y coordinate of bounding cube. |
public double getMinZ() | Sets the min Z coordinate of bounding cube. |
public void setMinZ(double minZ) | Sets the min Z coordinate of the bounding cube. |
public double getWidth() | Gets the width of the bounding cube (along x-axis) |
public void setWidth(double width) | Sets the width of the bouding cube along x-axis. |
public double getHeight() | Gets the height of the bounding cube along y-axis). |
public void setHeight(double height) | Sets the height of the bounding cube along y-axis. |
public double getDepth() | Gets the depth of the bounding cube along z-axis. |
public void setDepth(double depth) | Sets the depth of the bounding cube along z-axis |
Inherited methods
Constructor details
Bounds
public Bounds(double minX, double minY, double minZ, double width, double height, double 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
minXdouble- 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
minYdouble- 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
minZdouble- 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
widthdouble- 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
heightdouble- 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
depthdouble- the depth to set