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