X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry%2Fintersection.h;fp=source%2Fgeometry%2Fintersection.h;h=24e668dc35a1924a70e1c3815fecbeac8147595e;hb=2826730b5d68d1ad74dc6363af43ca796f96caa2;hp=0e555b03f7086185076ca904512605b0ae204e08;hpb=99ad80a76d53d090ddf602c085d80b675609b8ba;p=libs%2Fmath.git diff --git a/source/geometry/intersection.h b/source/geometry/intersection.h index 0e555b0..24e668d 100644 --- a/source/geometry/intersection.h +++ b/source/geometry/intersection.h @@ -10,6 +10,7 @@ template struct IntersectionOps { static BoundingBox combine_aabb(const BoundingBox &a, const BoundingBox &b) { return a&b; } + static Coverage combine_coverage(Coverage a, Coverage b) { return ((a==PARTIAL_COVERAGE && b==a) ? UNCERTAIN_COVERAGE : std::min(a, b)); } static bool shortcircuit(bool c) { return !c; } };