GlobeEngine
BoundingBox.h
Go to the documentation of this file.
1 
9 #ifndef GlobeEngine_BoundingBox_h
10 #define GlobeEngine_BoundingBox_h
11 
12 #include <vmmlib/vmmlib.hpp>
13 
14 namespace ge {
15  template <int DIM, class TYPE> class BoundingBox
16  {
17  public:
18  BoundingBox() {clear(); };
20  void clear() {
21  this->minBound = vmml::vector< DIM, TYPE>::ZERO;
22  this->maxBound = vmml::vector< DIM, TYPE>::ZERO;
23  }
24 
25  void create(vmml::vector< DIM, TYPE> _minBound, vmml::vector< DIM, TYPE> _maxBound) {
26  this->minBound = _minBound;
27  this->maxBound = _maxBound;
28  }
29 
30  vmml::vector< DIM, TYPE> getMinBounds(){
31  return this->minBound;
32  }
33  vmml::vector< DIM, TYPE> getMaxBounds(){
34  return this->maxBound;
35  }
36 
37  private:
38  vmml::vector< DIM, TYPE> minBound;
39  vmml::vector< DIM, TYPE> maxBound;
40 
41  };
42 
47 
48 }
49 #endif
vmml::vector< DIM, TYPE > getMinBounds()
Definition: BoundingBox.h:30
BoundingBox< 2, double > BoundingBox2d
Definition: BoundingBox.h:44
BoundingBox< 3, double > BoundingBox3d
Definition: BoundingBox.h:46
void create(vmml::vector< DIM, TYPE > _minBound, vmml::vector< DIM, TYPE > _maxBound)
Definition: BoundingBox.h:25
Definition: BoundingBox.h:15
vmml::vector< DIM, TYPE > getMaxBounds()
Definition: BoundingBox.h:33
BoundingBox< 2, float > BoundingBox2f
Definition: BoundingBox.h:43
void clear()
Definition: BoundingBox.h:20
Definition: AvalancheTrainingSimulationEngine.h:28
~BoundingBox()
Definition: BoundingBox.h:19
BoundingBox< 3, float > BoundingBox3f
Definition: BoundingBox.h:45
BoundingBox()
Definition: BoundingBox.h:18