#include <OOBox.h>
List of all members.
Detailed Description
Definition at line 19 of file OOBox.h.
Constructor & Destructor Documentation
gmtl::OOBox::OOBox |
( |
|
) |
[inline] |
gmtl::OOBox::OOBox |
( |
OOBox & |
box |
) |
[inline] |
Member Function Documentation
Vec3 * gmtl::OOBox::axes |
( |
|
) |
[inline] |
const Vec3 * gmtl::OOBox::axes |
( |
|
) |
const [inline] |
Vec3 & gmtl::OOBox::axis |
( |
int |
i |
) |
[inline] |
const Vec3 & gmtl::OOBox::axis |
( |
int |
i |
) |
const [inline] |
const Point3 & gmtl::OOBox::center |
( |
|
) |
const [inline] |
Point3 & gmtl::OOBox::center |
( |
|
) |
[inline] |
void gmtl::OOBox::getVerts |
( |
Point3 |
verts[8] |
) |
const [inline] |
Definition at line 164 of file OOBox.h.
{
Vec3 x_half_axis = mAxis[0]*mHalfLen[0];
Vec3 y_half_axis = mAxis[1]*mHalfLen[1];
Vec3 z_half_axis = mAxis[2]*mHalfLen[2];
verts[0] = mCenter - x_half_axis - y_half_axis - z_half_axis;
verts[1] = mCenter + x_half_axis - y_half_axis - z_half_axis;
verts[2] = mCenter + x_half_axis + y_half_axis - z_half_axis;
verts[3] = mCenter - x_half_axis + y_half_axis - z_half_axis;
verts[4] = mCenter - x_half_axis - y_half_axis + z_half_axis;
verts[5] = mCenter + x_half_axis - y_half_axis + z_half_axis;
verts[6] = mCenter + x_half_axis + y_half_axis + z_half_axis;
verts[7] = mCenter - x_half_axis + y_half_axis + z_half_axis;
}
const float & gmtl::OOBox::halfLen |
( |
int |
i |
) |
const [inline] |
float & gmtl::OOBox::halfLen |
( |
int |
i |
) |
[inline] |
float * gmtl::OOBox::halfLens |
( |
|
) |
[inline] |
const float * gmtl::OOBox::halfLens |
( |
|
) |
const [inline] |
void gmtl::OOBox::ident |
( |
|
) |
[inline] |
void gmtl::OOBox::mergeWith |
( |
const OOBox & |
box |
) |
|
OOBox & gmtl::OOBox::operator= |
( |
const OOBox & |
box |
) |
[inline] |
bool gmtl::OOBox::operator== |
( |
const OOBox & |
box |
) |
const [inline] |
Member Data Documentation
The documentation for this class was generated from the following file: