#include <aabox.h>
Public Member Functions | |
| WWINLINE | AABoxClass (void) |
| WWINLINE | AABoxClass (const Vector3 ¢er, const Vector3 &extent) |
| AABoxClass (const MinMaxAABoxClass &minmaxbox) | |
| AABoxClass (Vector3 *points, int num) | |
| bool | operator== (const AABoxClass &src) |
| bool | operator!= (const AABoxClass &src) |
| WWINLINE void | Init (const Vector3 ¢er, const Vector3 &extent) |
| WWINLINE void | Init (Vector3 *points, int num) |
| WWINLINE void | Init (const MinMaxAABoxClass &minmaxbox) |
| void | Init (const LineSegClass &line) |
| void | Init_Min_Max (const Vector3 &min, const Vector3 &max) |
| void | Init_Random (float min_center=-1.0f, float max_center=1.0f, float min_extent=0.5f, float max_extent=1.0f) |
| void | Add_Point (const Vector3 &point) |
| void | Add_Box (const AABoxClass &b) |
| void | Add_Box (const MinMaxAABoxClass &b) |
| float | Project_To_Axis (const Vector3 &axis) const |
| void | Transform (const Matrix3D &tm) |
| void | Translate (const Vector3 &pos) |
| WWINLINE float | Volume (void) const |
| WWINLINE bool | Contains (const Vector3 &point) const |
| WWINLINE bool | Contains (const AABoxClass &other_box) const |
| WWINLINE bool | Contains (const MinMaxAABoxClass &other_box) const |
Static Public Member Functions | |
| static void | Transform (const Matrix3D &tm, const AABoxClass &in, AABoxClass *out) |
Public Attributes | |
| Vector3 | Center |
| Vector3 | Extent |
|
inline |
| WWINLINE void AABoxClass::Add_Box | ( | const AABoxClass & | b | ) |
| WWINLINE void AABoxClass::Add_Box | ( | const MinMaxAABoxClass & | b | ) |
| WWINLINE bool AABoxClass::Contains | ( | const AABoxClass & | other_box | ) | const |
| WWINLINE bool AABoxClass::Contains | ( | const MinMaxAABoxClass & | other_box | ) | const |
| WWINLINE void AABoxClass::Init | ( | const LineSegClass & | line | ) |
| WWINLINE void AABoxClass::Init | ( | const MinMaxAABoxClass & | minmaxbox | ) |
| void AABoxClass::Init_Random | ( | float | min_center = -1.0f, |
| float | max_center = 1.0f, | ||
| float | min_extent = 0.5f, | ||
| float | max_extent = 1.0f ) |
| WWINLINE bool AABoxClass::operator!= | ( | const AABoxClass & | src | ) |
| WWINLINE bool AABoxClass::operator== | ( | const AABoxClass & | src | ) |
|
static |