43 SbBox3(
const Type minx,
const Type miny,
const Type minz,
44 const Type maxx,
const Type maxy,
const Type maxz)
45 : minvec(minx, miny, minz), maxvec(maxx, maxy, maxz) { }
47 : minvec(minv), maxvec(maxv) { }
55 this->minvec.setValue(SbBoxMin(point[0], this->minvec[0]),
56 SbBoxMin(point[1], this->minvec[1]),
57 SbBoxMin(point[2], this->minvec[2]));
58 this->maxvec.setValue(SbBoxMax(point[0], this->maxvec[0]),
59 SbBoxMax(point[1], this->maxvec[1]),
60 SbBoxMax(point[2], this->maxvec[2]));
66 static Type SbBoxMin(Type a, Type b) {
return (a < b) ? a : b; }
67 static Type SbBoxMax(Type a, Type b) {
return (a > b) ? a : b; }
71 #endif // !COIN_SBBOX3_H SbBox3(const SbVec3< Type > &minv, const SbVec3< Type > &maxv)
Definition: SbBox3.h:46
SbVec3< Type > & getMin(void)
Definition: SbBox3.h:51
SbBox3(void)
Definition: SbBox3.h:42
const SbVec3< Type > & getMin(void) const
Definition: SbBox3.h:49
void extendBy(const SbVec3< Type > &point)
Definition: SbBox3.h:54
SbVec3< Type > & getMax(void)
Definition: SbBox3.h:52
const SbVec3< Type > & getMax(void) const
Definition: SbBox3.h:50
SbBox3(const Type minx, const Type miny, const Type minz, const Type maxx, const Type maxy, const Type maxz)
Definition: SbBox3.h:43