Skip to content

Commit

Permalink
fix(geom): replace INFINITY by numeric_limits
Browse files Browse the repository at this point in the history
  • Loading branch information
luishfonseca committed Oct 5, 2023
1 parent ecfc4a0 commit 7598d73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/include/cubos/core/geom/aabb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ namespace cubos::core::geom
struct AABB
{
/// @brief Diagonal of the AABB.
glm::vec3 diag[2] = {glm::vec3{-INFINITY}, glm::vec3{INFINITY}};
glm::vec3 diag[2] = {glm::vec3{-std::numeric_limits<float>::infinity()},
glm::vec3{-std::numeric_limits<float>::infinity()}};

/// @brief Minimum point of the AABB.
/// @return Minimum point of the AABB.
Expand Down

0 comments on commit 7598d73

Please sign in to comment.