Changeset 4525 in orxonox.OLD for orxonox/trunk/src/util/collision_detection
- Timestamp:
- Jun 7, 2005, 12:37:43 AM (20 years ago)
- Location:
- orxonox/trunk/src/util/collision_detection
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/collision_detection/bounding_sphere.h
r4514 r4525 19 19 virtual ~BoundingSphere(); 20 20 21 inline const float getRadius () const { return this->radius; } 21 22 22 23 private: 23 24 float radius; 24 25 }; 25 26 -
orxonox/trunk/src/util/collision_detection/bounding_volume.h
r4524 r4525 21 21 22 22 inline const Vector* getCenter() const { return this->center; } 23 inline const Vector* getAxis () const { return this->axis; } 24 inline const sVect3D* getHalfLength() const { return this->halfLength; } 23 inline const int getIndex() { return this->treeIndex; } 25 24 26 25 virtual sVect3D* getVertices() const = NULL; … … 31 30 virtual void drawBVBlended(int currentDepth, const int depth) const = NULL; 32 31 32 33 33 private: 34 34 Vector* center; //!< Center point of box 35 Vector* axis; //!< Axes of oriented box [x,y,z]36 sVect3D* halfLength; //!< Half lengths of the box37 35 38 36 unsigned int treeIndex; //!< Index number of the BV in the tree -
orxonox/trunk/src/util/collision_detection/obb.h
r4521 r4525 19 19 virtual ~OBB(); 20 20 21 21 inline const Vector* getAxis () const { return this->axis; } 22 inline const sVect3D* getHalfLength() const { return this->halfLength; } 22 23 23 24 private: 24 OBB* leftNode; //!< left node of the tree 25 OBB* rightNode; //!< right node of the tree 25 Vector* axis; //!< Axes of oriented box [x,y,z] 26 sVect3D* halfLength; //!< Half lengths of the box 27 28 OBB* leftNode; //!< left node of the tree 29 OBB* rightNode; //!< right node of the tree 26 30 }; 27 31
Note: See TracChangeset
for help on using the changeset viewer.