1 #ifndef _BOX_H
2 #define _BOX_H
3
4 #include "shape.h"
5
6 //- Box
7 class Box : public Shape {
8 //. 3D Box Class.
9 public:
10 Box(const Vector& llf, const Vector& urb);
11
12 const Vector& getLLF() const;
13 void setLLF(const Vector& llf);
14 const Vector& getURB() const;
15 void setURB(const Vector& n);
16
17 // intersect
18 virtual bool intersect(const Ray& r,Vector& p,Vector& n, double& d) const;
19
20 private:
21 Vector llf_;
22 Vector urb_;
23 };
24
25 #endif // _Box_H
26
27