gpuray_glsl
diff src/box.h @ 0:f234630e38ff
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 09 Nov 2014 13:03:36 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/box.h Sun Nov 09 13:03:36 2014 +0200 1.3 @@ -0,0 +1,17 @@ 1.4 +#ifndef BOX_H_ 1.5 +#define BOX_H_ 1.6 + 1.7 +#include "vmath/vmath.h" 1.8 +#include "object.h" 1.9 + 1.10 +class Box : public Object { 1.11 +public: 1.12 + Vector3 min, max; 1.13 + 1.14 + Box(); 1.15 + Box(const Vector3 &min, const Vector3 &max); 1.16 + 1.17 + bool intersect(const Ray &ray, HitPoint *pt) const; 1.18 +}; 1.19 + 1.20 +#endif // BOX_H_