#include <box.h>
Public Member Functions | |
Box (int nx, int ny, int nz, int nxd, int nyd, int nzd) | |
bool | isEmpty () const |
bool | isValid () const |
bool | contains (int32 px, int32 py, int32 pz) const |
bool | containsXY (int32 px, int32 py) const |
bool | isBelow (int32 px, int32 py, int32 pz) const |
void | translate (int32 dx, int32 dy, int32 dz) |
void | moveTo (int32 nx, int32 ny, int32 nz) |
void | resize (int32 nxd, int32 nyd, int32 nzd) |
bool | overlaps (const Box &o) const |
bool | overlapsXY (const Box &o) const |
void | extend (const Box &o) |
bool | operator== (const Box &rhs) const |
bool | operator!= (const Box &rhs) const |
bool | equals (const Box &o) const |
Public Attributes | |
int32 | _x |
int32 | _y |
int32 | _z |
int32 | _xd |
int32 | _yd |
int32 | _zd |
Represents a worldspace bounding box and manipulation of those bounds. The box is built from a world point and positive dimensions The box has reversed coordinates for x and y, meaning those dimensions are subtracted from primary world point to calculate other points.