SOFA API  f963b064
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
 BoundingBox ()
 
 BoundingBox (const sofa::type::Vec3 &minBBox, const sofa::type::Vec3 &maxBBox)
 Define using the endpoints of the main diagonal. More...
 
 BoundingBox (const bbox_t &bbox)
 
 BoundingBox (SReal xmin, SReal xmax, SReal ymin, SReal ymax, SReal zmin, SReal zmax)
 Define using xmin, xmax, ymin, ymax, zmin, zmax in this order. More...
 
 BoundingBox (const Vec6f &bbox)
 Define using xmin, xmax, ymin, ymax, zmin, zmax in this order. More...
 
 BoundingBox (const Vec6d &bbox)
 Define using xmin, xmax, ymin, ymax, zmin, zmax in this order. More...
 
 operator bbox_t () const
 
void invalidate ()
 
bool isValid () const
 
bool isFlat () const
 
bool isNegligeable () const
 
bool isNull () const
 
SReal * minBBoxPtr ()
 
SReal * maxBBoxPtr ()
 
const SReal * minBBoxPtr () const
 
const SReal * maxBBoxPtr () 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 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