gpuray_glsl

view src/box.h @ 2:6e3a4daf3159

adding cones
author John Tsiombikas <nuclear@mutantstargoat.com>
date Sun, 09 Nov 2014 14:39:01 +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_