gpuray_glsl
annotate src/box.h @ 5:000017955721
fixed the cone normal
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 11 Nov 2014 20:25:59 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef BOX_H_ |
nuclear@0 | 2 #define BOX_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 #include "vmath/vmath.h" |
nuclear@0 | 5 #include "object.h" |
nuclear@0 | 6 |
nuclear@0 | 7 class Box : public Object { |
nuclear@0 | 8 public: |
nuclear@0 | 9 Vector3 min, max; |
nuclear@0 | 10 |
nuclear@0 | 11 Box(); |
nuclear@0 | 12 Box(const Vector3 &min, const Vector3 &max); |
nuclear@0 | 13 |
nuclear@0 | 14 bool intersect(const Ray &ray, HitPoint *pt) const; |
nuclear@0 | 15 }; |
nuclear@0 | 16 |
nuclear@0 | 17 #endif // BOX_H_ |