X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgeometry.hpp;h=16651d82be46427b89296784c46735cc65a2c9c2;hb=9c2baccb84195b7a2858c2b967c94d15cd31836b;hp=d74e08e6b6fc8c29a5bc104ce381d6f0632e6289;hpb=753be639d7d04f9f7415db9fc2721485c531f0a1;p=blank.git diff --git a/src/geometry.hpp b/src/geometry.hpp index d74e08e..16651d8 100644 --- a/src/geometry.hpp +++ b/src/geometry.hpp @@ -8,6 +8,9 @@ namespace blank { constexpr float PI = 3.141592653589793238462643383279502884; +constexpr float PI_0p5 = PI * 0.5f; +constexpr float PI_1p5 = PI * 1.5f; +constexpr float PI_2p0 = PI * 2.0f; struct AABB { glm::vec3 min; @@ -32,6 +35,8 @@ bool Intersection( float *dist = nullptr, glm::vec3 *normal = nullptr); +bool CullTest(const AABB &box, const glm::mat4 &MVP); + } #endif