gpuray_glsl
annotate src/box.h @ 2:6e3a4daf3159
adding cones
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Sun, 09 Nov 2014 14:39:01 +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_ |