erebus

annotate liberebus/src/bvol.h @ 12:ea4bcf186d66

whatever
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 24 May 2014 21:52:19 +0300
parents 4abdce1361b9
children bab25c0ce337
rev   line source
nuclear@2 1 #ifndef BVOL_H_
nuclear@2 2 #define BVOL_H_
nuclear@2 3
nuclear@2 4 #include "vmath/ray.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_