Move Box intersection code to DoIntersect

This commit is contained in:
Eryn Wells 2014-08-09 10:08:21 -07:00
parent d0d667d6d2
commit 3846a1aa3a
2 changed files with 57 additions and 51 deletions

View file

@ -28,6 +28,9 @@ struct Box
/** @see charles::Object::Write */
void Write(std::ostream& ost) const;
protected:
bool DoIntersect(const basics::Ray& ray, TVector& t, Stats& stats) const;
private:
/**
* Perform the intersection test on a slab, defined by `slabHigh` and