36 #include <dime/Basic.h> 37 #include <dime/util/Linear.h> 45 dimeBox(
const dxfdouble x0,
const dxfdouble y0,
const dxfdouble z0,
46 const dxfdouble x1,
const dxfdouble y1,
const dxfdouble z1);
48 void set(
const dxfdouble x0,
const dxfdouble y0,
const dxfdouble z0,
49 const dxfdouble x1,
const dxfdouble y1,
const dxfdouble z1);
51 void get(dxfdouble &x0, dxfdouble &y0, dxfdouble &z0,
52 dxfdouble &x1, dxfdouble &y1, dxfdouble &z1)
const;
54 bool operator & (
const dimeBox &box)
const;
56 bool pointInside(
const dimeVec3f &pt)
const;
62 dxfdouble size()
const;
63 bool hasExtent()
const;
67 dimeBox::pointInside(
const dimeVec3f &pt)
const 69 return ! (pt[0] < this->min[0] || pt[0] >= this->max[0] ||
70 pt[1] < this->min[1] || pt[1] >= this->max[1] ||
71 pt[2] < this->min[2] || pt[2] >= this->max[2]);
75 dimeBox::center()
const 79 (min[2]+max[2])*0.5f);
82 #endif // ! DIME_BOX_H
The dimeVec3f class is for containing and operating on a 3D vector / coordinate.
Definition: Linear.h:61