From c3fa79d0d7c6da387a2f4fe2e579e837525065b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Fonseca?= Date: Thu, 5 Oct 2023 09:43:42 +0100 Subject: [PATCH] fix(geom): replace INFINITY by numeric_limits --- core/include/cubos/core/geom/aabb.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/include/cubos/core/geom/aabb.hpp b/core/include/cubos/core/geom/aabb.hpp index 98e145df9..64bb8a77f 100644 --- a/core/include/cubos/core/geom/aabb.hpp +++ b/core/include/cubos/core/geom/aabb.hpp @@ -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::infinity()}, + glm::vec3{-std::numeric_limits::infinity()}}; /// @brief Minimum point of the AABB. /// @return Minimum point of the AABB.