gpuray_glsl

view 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 source
1 #ifndef BOX_H_
2 #define BOX_H_
4 #include "vmath/vmath.h"
5 #include "object.h"
7 class Box : public Object {
8 public:
9 Vector3 min, max;
11 Box();
12 Box(const Vector3 &min, const Vector3 &max);
14 bool intersect(const Ray &ray, HitPoint *pt) const;
15 };
17 #endif // BOX_H_