diff --git a/openVulkanoCpp/Math/AABB.hpp b/openVulkanoCpp/Math/AABB.hpp index 9c68237..6108c9d 100644 --- a/openVulkanoCpp/Math/AABB.hpp +++ b/openVulkanoCpp/Math/AABB.hpp @@ -131,6 +131,10 @@ namespace OpenVulkano::Math } AABB_T& operator +=(const AABB_T& other) { Grow(other); return *this; } + + AABB_T& operator +=(const T& point) { Grow(point); return *this; } + + [[nodiscard]] operator bool() const { return !IsEmpty(); } }; typedef AABB_T AABB;