X-Git-Url: https://git.rohieb.name/MicroTrace.git/blobdiff_plain/a8137256e983a49f97ff1fbecd26a1a0372f7b0b..refs/heads/master:/Box.hxx?ds=sidebyside diff --git a/Box.hxx b/Box.hxx index 1417e80..ce09c2b 100644 --- a/Box.hxx +++ b/Box.hxx @@ -7,11 +7,12 @@ class Box { public: Box(); + Box(Vec3f min, Vec3f max); ~Box(); Box(const Box& b); Box& operator=(const Box& b); - + //! Extend the bounding box to contain point a void Extend(const Vec3f& a); //! Clear the bounding box, i.e. set dimensions to infinity. @@ -28,6 +29,7 @@ public: const Vec3f& max() const; private: Vec3f m_min, m_max; + bool OverlapsHelper(Box b) const; }; #endif