geom/aabb: define combining 'or' operator
This commit is contained in:
parent
09dfad5391
commit
e77f59e3ae
@ -109,6 +109,14 @@ namespace util::geom {
|
||||
return *this = *this | p;
|
||||
}
|
||||
|
||||
aabb operator| [[nodiscard]] (aabb<S,T> rhs) const noexcept
|
||||
{
|
||||
return {
|
||||
min (lo, rhs.lo),
|
||||
max (hi, rhs.hi)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
::util::point<S,T> lo;
|
||||
::util::point<S,T> hi;
|
||||
|
Loading…
Reference in New Issue
Block a user