Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/util/collision_detection/obb.h @ 4525

Last change on this file since 4525 was 4525, checked in by patrick, 19 years ago

orxonox/trunk: implemented some more bv, obb and bs functions now reached the point to start implementing it

File size: 801 bytes
Line 
1/*!
2    \file obb.h
3    \brief Definition of an OBB (Object aligned Bounding Box)
4
5*/
6
7#ifndef _OBB_H
8#define _OBB_H
9
10#include "base_object.h"
11#include "bounding_volume.h"
12
13
14//! A class representing an extended bounding volume tree: an obb tree
15class OBB : public BoundingVolume {
16
17 public:
18  OBB();
19  virtual ~OBB();
20
21  inline const Vector* getAxis () const { return this->axis; }
22  inline const sVect3D* getHalfLength() const { return this->halfLength; } 
23
24 private:
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
30};
31
32#endif /* _OBB_H */
Note: See TracBrowser for help on using the repository browser.