public class BoundingBox
extends java.lang.Object
| Constructor and Description |
|---|
BoundingBox(double minX,
double maxX,
double minY,
double maxY,
double minZ,
double maxZ)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
static BoundingBox |
getBoundingBox(AbstractDrawable3DObject object)
Get the bounding box of an object
|
boolean |
isIntersecting(BoundingBox box) |
boolean |
isStrictlyIntersecting(BoundingBox box) |
java.lang.String |
toString() |
int |
xCompare(BoundingBox box)
Get the relative x-position of this bounding-box and of the box
|
int |
yCompare(BoundingBox box)
Get the relative y-position of this bounding-box and of the box
|
int |
zCompare(BoundingBox box)
Get the relative z-position of this bounding-box and of the box
|
public BoundingBox(double minX,
double maxX,
double minY,
double maxY,
double minZ,
double maxZ)
minX - the minimal XmaxX - the maximal XminY - the minimal YmaxY - the maximal YminZ - the minimal ZmaxZ - the maximal Zpublic int xCompare(BoundingBox box)
box - a BoundingBoxpublic int yCompare(BoundingBox box)
box - a BoundingBoxpublic int zCompare(BoundingBox box)
box - a BoundingBoxpublic boolean isIntersecting(BoundingBox box)
box - a BoundingBoxpublic boolean isStrictlyIntersecting(BoundingBox box)
box - a BoundingBoxpublic static BoundingBox getBoundingBox(AbstractDrawable3DObject object)
object - a 3D objectpublic java.lang.String toString()
toString in class java.lang.Object