33 #include <dime/Basic.h>
34 #include <dime/util/Linear.h>
42 dimeBox(
const dxfdouble x0,
const dxfdouble y0,
const dxfdouble z0,
43 const dxfdouble x1,
const dxfdouble y1,
const dxfdouble z1);
45 void set(
const dxfdouble x0,
const dxfdouble y0,
const dxfdouble z0,
46 const dxfdouble x1,
const dxfdouble y1,
const dxfdouble z1);
48 void get(dxfdouble &x0, dxfdouble &y0, dxfdouble &z0,
49 dxfdouble &x1, dxfdouble &y1, dxfdouble &z1)
const;
51 bool operator & (
const dimeBox &box)
const;
53 bool pointInside(
const dimeVec3f &pt)
const;
59 dxfdouble size()
const;
60 bool hasExtent()
const;
64 dimeBox::pointInside(
const dimeVec3f &pt)
const
66 return ! (pt[0] < this->min[0] || pt[0] >= this->max[0] ||
67 pt[1] < this->min[1] || pt[1] >= this->max[1] ||
68 pt[2] < this->min[2] || pt[2] >= this->max[2]);
72 dimeBox::center()
const
76 (min[2]+max[2])*0.5f);
79 #endif // ! DIME_BOX_H