|
| | OBox2 () |
| | Default constructor. More...
|
| |
| | OBox2 (const OBox2 &box) |
| | Copy constructor. More...
|
| |
| | OBox2 (const OBox &box) |
| | Constructor from a box and its local coordinate system. More...
|
| |
| | OBox2 (const double &length, const double &width, const double &height) |
| | build a box centered on [0, 0, 0] from its length, width and height More...
|
| |
| virtual | ~OBox2 () |
| | Destructor. More...
|
| |
| virtual OBox2 & | operator= (const OBox2 &box) |
| |
| virtual bool | operator== (const OBox2 &box) const |
| |
| virtual bool | operator!= (const OBox2 &box) const |
| |
| OPoint3D | BoxCoord (int N) const |
| | Returns the coordinates of one of the box corner. \ We consider that the first corner is the one on the bottom left side \ and then we go clockwise, upper and the same. \ N must be between 0 and 8, where 0 represents the box center. \ 1(0,0,0) 2(0,1,0) 3(1,1,0) 4(1,0,0) 5(1,0,1) 6(0,0,1) 7(0,1,1) 8(1,1,1) More...
|
| |
| virtual bool | isInside (const OPoint3D &pt) const |
| | Test whether the point is inside the box or not. More...
|
| |
| virtual bool | isInside2D (const OPoint3D &pt) const |
| | Test whether the point is inside the box or not (from upper point of view). More...
|
| |
| virtual void | Translate (const OVector3D &vect) |
| | Translate this box. More...
|
| |
| OBox2 | boxRotation (const OPoint3D &O, const OPoint3D &P2) |
| |
| void | BoxRotationOzOy (double alpha, double theta) |
| | Computes the box rotation around Oz and Oy (usual coordinates system). More...
|
| |
| void | moveAndRotate (const OPoint3D &origin, const OVector3D &vec) |
| | Move and rotate the box. More...
|
| |
| | OBox () |
| | Default constructor. More...
|
| |
| | OBox (const OBox &box) |
| | Copy constructor. More...
|
| |
| | OBox (const OCoord3D &min, const OCoord3D &max) |
| |
| | OBox (double x1, double y1, double z1, double x2, double y2, double z2) |
| |
| virtual | ~OBox () |
| | Destructor. More...
|
| |
| virtual OBox & | operator= (const OBox &box) |
| |
| virtual bool | operator== (const OBox &box) const |
| |
| virtual bool | operator!= (const OBox &box) const |
| |
| virtual bool | isInContact (const OBox &box) const |
| | Test whether the boxes are in contact or not. More...
|
| |
| virtual void | Enlarge (const OPoint3D &pt) |
| | Enlarge the box with the point if the point is outside the box. More...
|
| |
| virtual void | Enlarge (float x, float y, float z) |
| | Enlarge the box with the point (x,y, z) if the point is outside the box. More...
|
| |
| virtual void | Enlarge (const OBox &box) |
| | Enlarge this box with the box passed if this box does not contain the box passed. More...
|
| |
| virtual void | Translate (const OPoint3D &vectorTranslate) |
| | Translate this box. More...
|
| |
Class to define a box (not necessary parallel to the axis as OBox)
Definition at line 1379 of file 3d.h.
Returns the coordinates of one of the box corner. \ We consider that the first corner is the one on the bottom left side \ and then we go clockwise, upper and the same. \ N must be between 0 and 8, where 0 represents the box center. \ 1(0,0,0) 2(0,1,0) 3(1,1,0) 4(1,0,0) 5(1,0,1) 6(0,0,1) 7(0,1,1) 8(1,1,1)
- Parameters
-
| N | is the corner we want the coordinates of. |
Definition at line 1859 of file 3d.cpp.