erebus

annotate liberebus/src/bvol.h @ 47:4b91c9a501d8

minor fix of strange code structure in the thread func
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 01 Feb 2016 14:56:15 +0200
parents 474a0244f57d
children c4d48a21bc4a
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@2 8 Vector3 vmin, vmax;
nuclear@2 9
nuclear@2 10 AABox() : vmin(-0.5, -0.5, -0.5), vmax(0.5, 0.5, 0.5) {}
nuclear@2 11 AABox(const Vector3 &v0, const Vector3 &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_