#include <box3.h>
Public Member Functions |
|
GEOMEXPORT | Box3 () |
Box3 (const Point3 &p, const Point3 &q) | |
GEOMEXPORT void | Init () |
GEOMEXPORT void | MakeCube (const Point3 &p, float side) |
Point3 | Min () const |
Point3 | Max () const |
Point3 | Center () const |
Point3 | Width () const |
GEOMEXPORT Point3 | operator[] (int i) const |
GEOMEXPORT Box3 & | operator+= (const Point3 &p) |
GEOMEXPORT Box3 & | operator+= (const Box3 &b) |
GEOMEXPORT void | Scale (float s) |
GEOMEXPORT void | Translate (const Point3 &p) |
GEOMEXPORT void | EnlargeBy (float s) |
GEOMEXPORT void | IncludePoints (Point3 *pts, int numpoints, Matrix3 *tm=NULL) |
GEOMEXPORT Box3 | operator* (const Matrix3 &tm) const |
GEOMEXPORT int | IsEmpty () const |
GEOMEXPORT int | Contains (const Point3 &p) const |
GEOMEXPORT int | Contains (const Box3 &b) const |
GEOMEXPORT int | Intersects (const Box3 &b) const |
Public Attributes |
|
Point3 | pmin |
Point3 | pmax |
GEOMEXPORT Box3 | ( | ) |
GEOMEXPORT void Init | ( | ) |
GEOMEXPORT void MakeCube | ( | const Point3 & | p, |
float | side | ||
) |
Point3 Min | ( | ) | const [inline] |
Point3 Max | ( | ) | const [inline] |
Point3 Center | ( | ) | const [inline] |
Point3 Width | ( | ) | const [inline] |
GEOMEXPORT Point3 operator[] | ( | int | i | ) | const |
GEOMEXPORT void Scale | ( | float | s | ) |
GEOMEXPORT void Translate | ( | const Point3 & | p | ) |
GEOMEXPORT void EnlargeBy | ( | float | s | ) |
GEOMEXPORT int IsEmpty | ( | ) | const |
GEOMEXPORT int Contains | ( | const Point3 & | p | ) | const |
GEOMEXPORT int Contains | ( | const Box3 & | b | ) | const |
GEOMEXPORT int Intersects | ( | const Box3 & | b | ) | const |