diff --git a/geom/aabb.hpp b/geom/aabb.hpp index c4d56749..d6ceed53 100644 --- a/geom/aabb.hpp +++ b/geom/aabb.hpp @@ -109,6 +109,14 @@ namespace util::geom { return *this = *this | p; } + aabb operator| [[nodiscard]] (aabb rhs) const noexcept + { + return { + min (lo, rhs.lo), + max (hi, rhs.hi) + }; + } + ::util::point lo; ::util::point hi;