X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry%2Funion.h;h=8c02f2b808dc8a18301653c77e8175e83b2ea555;hb=291c11cf66e7083dc21fffea1afbdeaaad96077d;hp=a1562cb4e6b458b55003d981b5898c0c7ded2f25;hpb=2087c3bb9e6087ccce86360c1c57823aa8a9ff40;p=libs%2Fmath.git diff --git a/source/geometry/union.h b/source/geometry/union.h index a1562cb..8c02f2b 100644 --- a/source/geometry/union.h +++ b/source/geometry/union.h @@ -10,11 +10,8 @@ template struct UnionOps { static BoundingBox combine_aabb(const BoundingBox &a, const BoundingBox &b) { return a|b; } - static bool init_inside() { return false; } - static bool combine_inside(bool a, bool b) { return a || b; } - static bool is_inside_decided(bool a) { return a; } - static bool init_surface() { return true; } - static bool combine_surface(bool a, bool b) { return a && !b; } + static Coverage combine_coverage(Coverage a, Coverage b) { return std::max(a, b); } + static bool shortcircuit(bool c) { return c; } }; /**