#include <BoundingBox.h>
Protected Attributes | |
bbox_t | bbox |
Public Member Functions | |
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 |
SReal * | minBBoxPtr () |
SReal * | maxBBoxPtr () |
const SReal * | minBBoxPtr () const |
const SReal * | maxBBoxPtr () const |
const sofa::type::Vec3 & | minBBox () const |
const sofa::type::Vec3 & | maxBBox () const |
sofa::type::Vec3 & | minBBox () |
sofa::type::Vec3 & | maxBBox () |
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 |
Static Public Member Functions | |
static constexpr BoundingBox | neutral_bbox () |
Friends | |
std::ostream & | operator<< (std::ostream &out, const BoundingBox &bbox) |
std::istream & | operator>> (std::istream &in, BoundingBox &bbox) |
|
protected |
|
inlineconstexpr |
|
inlineconstexpr |
Define using the endpoints of the main diagonal.
|
inlineexplicitconstexpr |
|
inlineconstexpr |
Define using xMin, xMax, yMin, yMax, zMin, zMax in this order.
|
inlineexplicitconstexpr |
bool sofa::type::BoundingBox::contains | ( | const BoundingBox & | other | ) | const |
bool sofa::type::BoundingBox::contains | ( | const sofa::type::Vec3 & | point | ) | const |
BoundingBox sofa::type::BoundingBox::getInclude | ( | const BoundingBox & | other | ) | const |
BoundingBox sofa::type::BoundingBox::getInclude | ( | const sofa::type::Vec3 & | point | ) | const |
BoundingBox sofa::type::BoundingBox::getInflate | ( | SReal | amount | ) | const |
BoundingBox sofa::type::BoundingBox::getIntersection | ( | const BoundingBox & | other | ) | const |
void sofa::type::BoundingBox::include | ( | const BoundingBox & | other | ) |
void sofa::type::BoundingBox::include | ( | const sofa::type::Vec3 & | point | ) |
void sofa::type::BoundingBox::inflate | ( | SReal | amount | ) |
bool sofa::type::BoundingBox::intersect | ( | const BoundingBox & | other | ) | const |
void sofa::type::BoundingBox::intersection | ( | const BoundingBox & | other | ) |
void sofa::type::BoundingBox::invalidate | ( | ) |
bool sofa::type::BoundingBox::isFlat | ( | ) | const |
bool sofa::type::BoundingBox::isNegligeable | ( | ) | const |
bool sofa::type::BoundingBox::isNegligible | ( | ) | const |
bool sofa::type::BoundingBox::isNull | ( | ) | const |
bool sofa::type::BoundingBox::isValid | ( | ) | const |
sofa::type::Vec3 & sofa::type::BoundingBox::maxBBox | ( | ) |
const sofa::type::Vec3 & sofa::type::BoundingBox::maxBBox | ( | ) | const |
SReal * sofa::type::BoundingBox::maxBBoxPtr | ( | ) |
const SReal * sofa::type::BoundingBox::maxBBoxPtr | ( | ) | const |
sofa::type::Vec3 & sofa::type::BoundingBox::minBBox | ( | ) |
const sofa::type::Vec3 & sofa::type::BoundingBox::minBBox | ( | ) | const |
SReal * sofa::type::BoundingBox::minBBoxPtr | ( | ) |
const SReal * sofa::type::BoundingBox::minBBoxPtr | ( | ) | const |
|
inlinestaticconstexpr |
sofa::type::BoundingBox::operator bbox_t | ( | ) | const |
bool sofa::type::BoundingBox::operator== | ( | const BoundingBox & | other | ) | const |
|
friend |
|
friend |