erebus

view liberebus/src/bvol.h @ 46:c4d48a21bc4a

in the middle of the vmath->gph-math port
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 24 Feb 2016 00:26:50 +0200
parents bab25c0ce337
children
line source
1 #ifndef BVOL_H_
2 #define BVOL_H_
4 #include <gmath/gmath.h>
6 class AABox {
7 public:
8 Vec3 vmin, vmax;
10 AABox() : vmin(-0.5, -0.5, -0.5), vmax(0.5, 0.5, 0.5) {}
11 AABox(const Vec3 &v0, const Vec3 &v1) : vmin(v0), vmax(v1) {}
13 bool intersect(const Ray &ray) const;
14 };
16 #endif // BVOL_H_