--- a/src/types/boundingbox.cpp Wed May 25 17:48:18 2022 +0300 +++ b/src/types/boundingbox.cpp Wed May 25 17:56:30 2022 +0300 @@ -25,12 +25,12 @@ */ void addPointToBox(BoundingBox &box, const glm::vec3 &vertex) { - box.minimum.x = math::min(vertex.x, box.minimum.x); - box.minimum.y = math::min(vertex.y, box.minimum.y); - box.minimum.z = math::min(vertex.z, box.minimum.z); - box.maximum.x = math::max(vertex.x, box.maximum.x); - box.maximum.y = math::max(vertex.y, box.maximum.y); - box.maximum.z = math::max(vertex.z, box.maximum.z); + box.minimum.x = std::min(vertex.x, box.minimum.x); + box.minimum.y = std::min(vertex.y, box.minimum.y); + box.minimum.z = std::min(vertex.z, box.minimum.z); + box.maximum.x = std::max(vertex.x, box.maximum.x); + box.maximum.y = std::max(vertex.y, box.maximum.y); + box.maximum.z = std::max(vertex.z, box.maximum.z); } /*