Move Stats to its own module
Move Stats to its own module and pass it around to the intersection methods to keep track of how many tests and successful intersections there are.
This commit is contained in:
parent
b60e27824b
commit
79c951030d
12 changed files with 166 additions and 62 deletions
|
@ -26,7 +26,7 @@ public:
|
|||
float get_radius();
|
||||
void set_radius(float r);
|
||||
|
||||
bool DoesIntersect(const Ray& ray, TVector& t) const;
|
||||
bool DoesIntersect(const Ray& ray, TVector& t, Stats& stats) const;
|
||||
bool point_is_on_surface(const Vector3 &p) const;
|
||||
Vector3 compute_normal(const Vector3 &p) const;
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue