diff --git a/openVulkanoCpp/Math/AABB.hpp b/openVulkanoCpp/Math/AABB.hpp index 4f9b944..88469df 100644 --- a/openVulkanoCpp/Math/AABB.hpp +++ b/openVulkanoCpp/Math/AABB.hpp @@ -106,6 +106,11 @@ namespace OpenVulkano::Math return Math::Utils::all(Math::Utils::greaterThan(min, position)) && Math::Utils::all(Math::Utils::lessThan(position, max)); } + [[nodiscard]] bool IsEmpty() const + { + return min == Math::Vector3f(INFINITY) && max == Math::Vector3f(-INFINITY); + } + /** * \brief Resets the AABB to min=Inf, max=-Inf, same as Init() */