X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry%2Funion.h;h=8c02f2b808dc8a18301653c77e8175e83b2ea555;hb=4b895388d12b160f486c8b49b3296b15eeed7cc2;hp=738f1f240f3de600dac9d63e1e048fe786bc3d75;hpb=4fc002747e8138501d08942be247e60cd99ac404;p=libs%2Fmath.git diff --git a/source/geometry/union.h b/source/geometry/union.h index 738f1f2..8c02f2b 100644 --- a/source/geometry/union.h +++ b/source/geometry/union.h @@ -10,6 +10,7 @@ template struct UnionOps { static BoundingBox combine_aabb(const BoundingBox &a, const BoundingBox &b) { return a|b; } + static Coverage combine_coverage(Coverage a, Coverage b) { return std::max(a, b); } static bool shortcircuit(bool c) { return c; } };