nuclear@2: #ifndef BVOL_H_ nuclear@2: #define BVOL_H_ nuclear@2: nuclear@45: #include nuclear@2: nuclear@2: class AABox { nuclear@2: public: nuclear@2: Vector3 vmin, vmax; nuclear@2: nuclear@2: AABox() : vmin(-0.5, -0.5, -0.5), vmax(0.5, 0.5, 0.5) {} nuclear@2: AABox(const Vector3 &v0, const Vector3 &v1) : vmin(v0), vmax(v1) {} nuclear@2: nuclear@2: bool intersect(const Ray &ray) const; nuclear@2: }; nuclear@2: nuclear@2: #endif // BVOL_H_