RobWorkProject  23.9.11-
Public Member Functions | List of all members
AABB< T > Class Template Reference

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
 
calcVolume () const
 calculate the volume of this OBB
 
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
 

Detailed Description

template<class T>
class rw::geometry::AABB< T >

Axis Aligned Bounding Box class.

Constructor & Destructor Documentation

◆ AABB()

AABB ( const rw::math::Vector3D< T > &  corner1,
const rw::math::Vector3D< T > &  corner2 
)
inline

Construct an AABB by defining the two oposit corners.

Parameters
corner1[in] the first corner
corner2[in] the second corner

Member Function Documentation

◆ diagonal()

rw::math::Vector3D<T> diagonal ( )
inline

returns the diagonal of the box

Returns
Vector3D<double>

The documentation for this class was generated from the following file: