erebus

annotate liberebus/src/bvol.h @ 48:9971a08f4104

merged
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 24 Feb 2016 00:29:31 +0200
parents bab25c0ce337
children
rev   line source
nuclear@2 1 #ifndef BVOL_H_
nuclear@2 2 #define BVOL_H_
nuclear@2 3
nuclear@45 4 #include <gmath/gmath.h>
nuclear@2 5
nuclear@2 6 class AABox {
nuclear@2 7 public:
nuclear@46 8 Vec3 vmin, vmax;
nuclear@2 9
nuclear@2 10 AABox() : vmin(-0.5, -0.5, -0.5), vmax(0.5, 0.5, 0.5) {}
nuclear@46 11 AABox(const Vec3 &v0, const Vec3 &v1) : vmin(v0), vmax(v1) {}
nuclear@2 12
nuclear@2 13 bool intersect(const Ray &ray) const;
nuclear@2 14 };
nuclear@2 15
nuclear@2 16 #endif // BVOL_H_