Add operators to AABB
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user