Move Box intersection code to DoIntersect
This commit is contained in:
parent
d0d667d6d2
commit
3846a1aa3a
2 changed files with 57 additions and 51 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue