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) { }
49 const SbVec3<Type> & getMin(
void)
const {
return this->minvec; }
50 const SbVec3<Type> & getMax(
void)
const {
return this->maxvec; }
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; }