10 Box(Vec3f min, Vec3f max);
14 Box& operator=(const Box& b);
16 //! Extend the bounding box to contain point a
17 void Extend(const Vec3f& a);
18 //! Clear the bounding box, i.e. set dimensions to infinity.
20 //! Extend the box to contain the given box.
21 void Extend(const Box& box);
22 //! Test for overlap with the given box b.
23 bool Overlaps(const Box& b) const;
24 //! Clip the given ray against the box. tnear and tfar should be filled by this function!
25 void Clip(const Ray& ray, float& tnear,float& tfar) const;
27 //! Query the dimension of the bounding box.
28 const Vec3f& min() const;
29 const Vec3f& max() const;