Getters and setters for Near and Far vectors
This commit is contained in:
parent
15db0c42d4
commit
b878db592c
2 changed files with 79 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue