Add operators to AABB

This commit is contained in:
Georg Hagen
2025-01-24 15:56:35 +01:00
parent 7187005871
commit 0dcfce7fb2

View File

@@ -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<Vector3f> AABB;