X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fshape.cpp;h=59e4f1feee1dfd8a3a67851d729512fa66888cc3;hb=76b3ec0f6aa0dacf6d4944a2787991f3585299e8;hp=545a8e4712a57c0b998353eaeeaab111d86063fb;hpb=15ff5ed48855c6bd09bc8f5152f46065484c1e94;p=blank.git diff --git a/src/shape.cpp b/src/shape.cpp index 545a8e4..59e4f1f 100644 --- a/src/shape.cpp +++ b/src/shape.cpp @@ -75,7 +75,7 @@ bool NullShape::Intersects( const Ray &, const glm::mat4 &, float &, glm::vec3 & -) const { +) const noexcept { return false; } @@ -162,7 +162,7 @@ bool CuboidShape::Intersects( const Ray &ray, const glm::mat4 &M, float &dist, glm::vec3 &normal -) const { +) const noexcept { return Intersection(ray, bb, M, &dist, &normal); } @@ -294,7 +294,7 @@ bool StairShape::Intersects( const glm::mat4 &M, float &dist, glm::vec3 &norm -) const { +) const noexcept { float top_dist, bot_dist; glm::vec3 top_norm, bot_norm; bool top_hit = Intersection(ray, top, M, &top_dist, &top_norm);