branch | pyrit |
changeset 15 | a0a3e334744f |
parent 14 | fc18ac4833f2 |
child 19 | 4e0955fca797 |
14:fc18ac4833f2 | 15:a0a3e334744f |
---|---|
17 using namespace std; |
17 using namespace std; |
18 |
18 |
19 class Ray |
19 class Ray |
20 { |
20 { |
21 public: |
21 public: |
22 Vector3 a, dir; |
22 Vector3 o, dir; |
23 Ray(const Vector3 &aa, const Vector3 &adir): |
23 Ray(const Vector3 &ao, const Vector3 &adir): |
24 a(aa), dir(adir) {}; |
24 o(ao), dir(adir) {}; |
25 }; |
25 }; |
26 |
26 |
27 /* axis-aligned bounding box */ |
27 /* axis-aligned bounding box */ |
28 class BBox |
28 class BBox |
29 { |
29 { |