X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgeometry.hpp;h=df75f22bf66720d31c6b4d4e0c08b83cb7fb312d;hb=83ed3de28841d1eecfca39ff540e804cf6809b32;hp=78fe5f5a2ce538deb943eee6c160f9369eb26c9f;hpb=4ef32c5a4a5bdb6da8383f66d8265715eb2ed4f9;p=blank.git diff --git a/src/geometry.hpp b/src/geometry.hpp index 78fe5f5..df75f22 100644 --- a/src/geometry.hpp +++ b/src/geometry.hpp @@ -17,7 +17,7 @@ struct AABB { glm::vec3 min; glm::vec3 max; - void Adjust() { + void Adjust() noexcept { if (max.x < min.x) std::swap(max.x, min.x); if (max.y < min.y) std::swap(max.y, min.y); if (max.z < min.z) std::swap(max.z, min.z); @@ -34,9 +34,9 @@ bool Intersection( const AABB &, const glm::mat4 &M, float *dist = nullptr, - glm::vec3 *normal = nullptr); + glm::vec3 *normal = nullptr) noexcept; -bool CullTest(const AABB &box, const glm::mat4 &MVP); +bool CullTest(const AABB &box, const glm::mat4 &MVP) noexcept; }