X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgeometry.hpp;fp=src%2Fgeometry.hpp;h=df75f22bf66720d31c6b4d4e0c08b83cb7fb312d;hb=76b3ec0f6aa0dacf6d4944a2787991f3585299e8;hp=78fe5f5a2ce538deb943eee6c160f9369eb26c9f;hpb=6e59f3102d6d64355d5a30b708a326327b089aaf;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; }