A simple bounding box.
More...
Detailed Description
Constructor & Destructor Documentation
| makVrv::DtBoundingBox::DtBoundingBox |
( |
| ) |
|
Default constructor. Bounding box is set to zero.
| makVrv::DtBoundingBox::DtBoundingBox |
( |
float |
lx, |
|
|
float |
ly, |
|
|
float |
ux, |
|
|
float |
uy |
|
) |
| |
| makVrv::DtBoundingBox::~DtBoundingBox |
( |
| ) |
|
Member Function Documentation
| void makVrv::DtBoundingBox::invalidate |
( |
| ) |
|
Mark the bounds invalid by setting all lower dimensions greater than the upper dimensions.
| bool makVrv::DtBoundingBox::valid |
( |
| ) |
const |
| bool makVrv::DtBoundingBox::contains |
( |
float |
x, |
|
|
float |
y |
|
) |
| const |
Does this bounding box contain the point.
Move the Bounding Box by a vector.
Combine the two boxes together.
| void makVrv::DtBoundingBox::centerOn |
( |
Dt2dPoint |
pos | ) |
|
Move the box's center point to the position, without changing the size.
| void makVrv::DtBoundingBox::expandTo |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
Expand the boxes size around its current center to have a width and height specified.
| void makVrv::DtBoundingBox::getCenter |
( |
Dt2dPoint & |
point | ) |
const |
Get the center of the box.
| float makVrv::DtBoundingBox::width |
( |
| ) |
const |
|
inline |
Get the bounding box width.
| float makVrv::DtBoundingBox::height |
( |
| ) |
const |
|
inline |
Get the bounding box height.
| Dt2dPoint& makVrv::DtBoundingBox::upperPoint |
( |
| ) |
|
|
inline |
| const Dt2dPoint& makVrv::DtBoundingBox::upperPoint |
( |
| ) |
const |
|
inline |
Get the upper point (const).
| Dt2dPoint& makVrv::DtBoundingBox::lowerPoint |
( |
| ) |
|
|
inline |
| const Dt2dPoint& makVrv::DtBoundingBox::lowerPoint |
( |
| ) |
const |
|
inline |
Get the lower point (const).
| void makVrv::DtBoundingBox::toPoints |
( |
float |
points[8] | ) |
const |
Fill in an array of 2d points with the box corners.
Member Data Documentation
| Dt2dPoint makVrv::DtBoundingBox::myLowerPoint |
|
protected |
| Dt2dPoint makVrv::DtBoundingBox::myUpperPoint |
|
protected |
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.vrf4-6-branch/include/vrvGraphics/DtBoundingBox.h