![]() |
RobWorkProject
23.9.11-
|
Axis Aligned Bounding Box class. More...
#include <AABB.hpp>
Inherits BV< AABB< T > >.
Public Member Functions | |
| AABB () | |
| constructor | |
| AABB (const rw::math::Vector3D< T > &corner1, const rw::math::Vector3D< T > &corner2) | |
| Construct an AABB by defining the two oposit corners. More... | |
| virtual | ~AABB () |
| destructor | |
| void | setHalfLengths (const rw::math::Vector3D< T > &pos) |
| set half lengths | |
| const rw::math::Vector3D< T > & | getHalfLengths () const |
| get halflengths of this box | |
| void | setPosition (const rw::math::Vector3D< T > &pos) |
| set position | |
| const rw::math::Vector3D< T > & | getPosition () const |
| position of this AABB | |
| T | calcVolume () const |
| calculate the volume of this OBB | |
| T | calcArea () const |
| calculates the total area of the box | |
| rw::math::Vector3D< T > | diagonal () |
| returns the diagonal of the box More... | |
Public Member Functions inherited from BV< AABB< T > > | |
| const rw::math::Vector3D< value_type > & | getPosition () const |
| value_type | calcArea () const |
| value_type | calcVolume () const |
Additional Inherited Members | |
Public Types inherited from BV< AABB< T > > | |
| typedef AABB< T > | DerivedType |
| typedef AABB< T > | BVType |
| typedef Traits< AABB< T > >::value_type | value_type |
| typedef rw::core::Ptr< BV< AABB< T > > > | Ptr |
Axis Aligned Bounding Box class.
|
inline |
Construct an AABB by defining the two oposit corners.
| corner1 | [in] the first corner |
| corner2 | [in] the second corner |
|
inline |
returns the diagonal of the box