public class Bounds
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected double |
max_x |
protected double |
max_y |
protected double |
max_z |
protected double |
min_x |
protected double |
min_y |
protected double |
min_z |
protected boolean |
set |
| Constructor and Description |
|---|
Bounds() |
Bounds(Bounds b) |
Bounds(double max_x,
double min_x,
double max_y,
double min_y) |
Bounds(double max_x,
double min_x,
double max_y,
double min_y,
double max_z,
double min_z) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToBounds(Bounds bounds)
Enlarge the Bounds to the given Bounds if they enlarge the area.
|
void |
addToBounds(double x,
double y,
double z)
Enlarge the Bounds if the given bounds enlarge the coordinates
|
void |
addToBounds(Point p) |
boolean |
contains(Bounds bounds)
Determines if the given bounding box part or inside the bounds.
|
boolean |
contains(Point p) |
void |
debug() |
boolean |
enclose(Bounds bounds)
Determines if the given bounds are enclosed.
|
double |
getDepth() |
double |
getHeight() |
double |
getMaximumX() |
double |
getMaximumY() |
double |
getMaximumZ() |
double |
getMinimumX() |
double |
getMinimumY() |
double |
getMinimumZ() |
double |
getWidth() |
boolean |
isValid() |
void |
setMaximumX(double max_x) |
void |
setMaximumY(double max_y) |
void |
setMaximumZ(double max_z) |
void |
setMinimumX(double min_x) |
void |
setMinimumY(double min_y) |
void |
setMinimumZ(double min_z) |
void |
setValid(boolean set) |
protected double max_x
protected double min_x
protected double max_y
protected double min_y
protected double max_z
protected double min_z
protected boolean set
public Bounds()
public Bounds(double max_x,
double min_x,
double max_y,
double min_y,
double max_z,
double min_z)
public Bounds(double max_x,
double min_x,
double max_y,
double min_y)
public Bounds(Bounds b)
public double getMaximumX()
public void setMaximumX(double max_x)
max_x - The max_x to set.public double getMaximumY()
public void setMaximumY(double max_y)
max_y - The max_y to set.public double getMinimumX()
public void setMinimumX(double min_x)
min_x - The min_x to set.public double getMinimumY()
public void setMinimumY(double min_y)
min_y - The min_y to set.public double getMinimumZ()
public void setMinimumZ(double min_z)
public double getMaximumZ()
public void setMaximumZ(double max_z)
public void addToBounds(Bounds bounds)
bounds - public void addToBounds(double x,
double y,
double z)
x - y - z - public void addToBounds(Point p)
public double getWidth()
public double getHeight()
public double getDepth()
public boolean isValid()
public void setValid(boolean set)
set - The set to set.public void debug()
public boolean contains(Bounds bounds)
bounds - public boolean contains(Point p)
public boolean enclose(Bounds bounds)
bounds -