Getters and setters for Near and Far vectors

This commit is contained in:
Eryn Wells 2014-07-22 21:37:49 -07:00
parent 15db0c42d4
commit b878db592c
2 changed files with 79 additions and 1 deletions

View file

@ -16,6 +16,11 @@ struct Box
Box();
Box(const Vector3& near, const Vector3& far);
Vector3& GetNear();
void SetNear(const Vector3& near);
Vector3& GetFar();
void SetFar(const Vector3& far);
bool DoesIntersect(const Ray& ray, TVector& t) const;
bool point_is_on_surface(const Vector3 &p) const;
Vector3 compute_normal(const Vector3 &p) const;