#include <OOBox.h>
Public Methods | |
| OOBox () | |
| OOBox (OOBox &box) | |
| Point3 & | center () |
| const Point3 & | center () const |
| Vec3 & | axis (int i) |
| const Vec3 & | axis (int i) const |
| Vec3 * | axes () |
| const Vec3 * | axes () const |
| float & | halfLen (int i) |
| const float & | halfLen (int i) const |
| float * | halfLens () |
| const float * | halfLens () const |
| OOBox & | operator= (const OOBox &box) |
| bool | operator== (const OOBox &box) const |
| void | getVerts (Point3 verts[8]) const |
| void | mergeWith (const OOBox &box) |
| void | ident () |
Public Attributes | |
| Point3 | mCenter |
| Vec3 | mAxis [3] |
| float | mHalfLen [3] |
|
|
Definition at line 52 of file OOBox.h. References ident.
00053 { ident(); }
|
|
|
Definition at line 106 of file OOBox.h. References mAxis, mCenter, and mHalfLen.
|
|
|
Definition at line 143 of file OOBox.h. References mAxis.
00144 {
00145 return mAxis;
00146 }
|
|
|
Definition at line 138 of file OOBox.h. References mAxis.
00139 {
00140 return mAxis;
00141 }
|
|
|
Definition at line 133 of file OOBox.h. References mAxis.
00134 {
00135 return mAxis[i];
00136 }
|
|
|
Definition at line 128 of file OOBox.h. References mAxis.
00129 {
00130 return mAxis[i];
00131 }
|
|
|
Definition at line 123 of file OOBox.h. References mCenter.
00124 {
00125 return mCenter;
00126 }
|
|
|
Definition at line 118 of file OOBox.h. References mCenter.
00119 {
00120 return mCenter;
00121 }
|
|
|
Definition at line 193 of file OOBox.h. References mAxis, mCenter, and mHalfLen.
00194 {
00195 Vec3 x_half_axis = mAxis[0]*mHalfLen[0];
00196 Vec3 y_half_axis = mAxis[1]*mHalfLen[1];
00197 Vec3 z_half_axis = mAxis[2]*mHalfLen[2];
00198
00199 verts[0] = mCenter - x_half_axis - y_half_axis - z_half_axis;
00200 verts[1] = mCenter + x_half_axis - y_half_axis - z_half_axis;
00201 verts[2] = mCenter + x_half_axis + y_half_axis - z_half_axis;
00202 verts[3] = mCenter - x_half_axis + y_half_axis - z_half_axis;
00203 verts[4] = mCenter - x_half_axis - y_half_axis + z_half_axis;
00204 verts[5] = mCenter + x_half_axis - y_half_axis + z_half_axis;
00205 verts[6] = mCenter + x_half_axis + y_half_axis + z_half_axis;
00206 verts[7] = mCenter - x_half_axis + y_half_axis + z_half_axis;
00207 }
|
|
|
Definition at line 153 of file OOBox.h. References mHalfLen.
00154 {
00155 return mHalfLen[i];
00156 }
|
|
|
Definition at line 148 of file OOBox.h. References mHalfLen.
00149 {
00150 return mHalfLen[i];
00151 }
|
|
|
Definition at line 163 of file OOBox.h. References mHalfLen.
00164 {
00165 return mHalfLen;
00166 }
|
|
|
Definition at line 158 of file OOBox.h. References mHalfLen.
00159 {
00160 return mHalfLen;
00161 }
|
|
|
Definition at line 86 of file OOBox.h. References mAxis, mCenter, and mHalfLen. Referenced by OOBox.
|
|
|
|
|
|
Definition at line 169 of file OOBox.h. References mAxis, mCenter, and mHalfLen.
|
|
|
Definition at line 182 of file OOBox.h. References mAxis, mCenter, and mHalfLen.
|
|
|
Definition at line 97 of file OOBox.h. Referenced by axes, axis, getVerts, ident, OOBox, operator=, and operator==. |
|
|
Definition at line 96 of file OOBox.h. Referenced by center, getVerts, ident, OOBox, operator=, and operator==. |
|
|
Definition at line 98 of file OOBox.h. Referenced by getVerts, halfLen, halfLens, ident, OOBox, operator=, and operator==. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002