SOFA API  11ec13c9
Open source framework for multi-physics simuation
sofa::type::TBoundingBox< TReal > Class Template Reference

#include <BoundingBox.h>

Inheritance diagram for sofa::type::TBoundingBox< TReal >:

Public Member Functions

 TBoundingBox (const TReal *minBBoxPtr, const TReal *maxBBoxPtr)
 
 TBoundingBox ()
 
- Public Member Functions inherited from sofa::type::BoundingBox
constexpr BoundingBox ()
 
constexpr BoundingBox (const sofa::type::Vec3 &minBBox, const sofa::type::Vec3 &maxBBox)
 Define using the endpoints of the main diagonal. More...
 
constexpr BoundingBox (const bbox_t &bbox)
 
constexpr BoundingBox (const Real xMin, const Real xMax, const Real yMin, const Real yMax, const Real zMin, const Real zMax)
 Define using xMin, xMax, yMin, yMax, zMin, zMax in this order. More...
 
template<typename Scalar >
constexpr BoundingBox (const Vec< 6, Scalar > &bbox)
 
 operator bbox_t () const
 
bool operator== (const BoundingBox &other) const
 
void invalidate ()
 
bool isValid () const
 
bool isFlat () const
 
bool isNegligible () const
 
bool isNegligeable () const
 
bool isNull () const
 
SRealminBBoxPtr ()
 
SRealmaxBBoxPtr ()
 
const SRealminBBoxPtr () const
 
const SRealmaxBBoxPtr () const
 
const sofa::type::Vec3minBBox () const
 
const sofa::type::Vec3maxBBox () const
 
sofa::type::Vec3minBBox ()
 
sofa::type::Vec3maxBBox ()
 
bool contains (const sofa::type::Vec3 &point) const
 
bool contains (const BoundingBox &other) const
 
bool intersect (const BoundingBox &other) const
 
void intersection (const BoundingBox &other)
 
void include (const sofa::type::Vec3 &point)
 
void include (const BoundingBox &other)
 
void inflate (SReal amount)
 
BoundingBox getIntersection (const BoundingBox &other) const
 
BoundingBox getInclude (const sofa::type::Vec3 &point) const
 
BoundingBox getInclude (const BoundingBox &other) const
 
BoundingBox getInflate (SReal amount) const
 

Additional Inherited Members

- Protected Attributes inherited from sofa::type::BoundingBox
bbox_t bbox
 
- Static Public Member Functions inherited from sofa::type::BoundingBox
static constexpr BoundingBox neutral_bbox ()
 

Constructor details

◆ TBoundingBox() [1/2]

template<typename TReal >
sofa::type::TBoundingBox< TReal >::TBoundingBox ( const TReal *  minBBoxPtr,
const TReal *  maxBBoxPtr 
)
inline

◆ TBoundingBox() [2/2]

template<typename TReal >
sofa::type::TBoundingBox< TReal >::TBoundingBox ( )
inline