erebus
annotate liberebus/src/bvol.h @ 34:d15ee526daa6
- changed the UI font, made it a bit smaller
- fixed the text positioning in the status bar
- added ThreadPool::clear to remove all pending jobs
- fixed the TargetCamera matrix calculation to avoid singularities when the
camera looks straight up or down.
- fixed ommited normalization in TargetCamera's matrix calculation
- added paths/sec display in the status bar
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 08 Jun 2014 08:12:05 +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_ |