MismatchingTagsException if tags differ. EmptyRegionException if region is empty.
alias R = Region!(int, int); alias TI = R.TaggedInterval; R emptyRegion; auto region1 = R([TI(0, 0, 10), TI(0, 20, 30)]); auto region2 = R([TI(0, 0, 10), TI(1, 0, 10)]); assert(min(region1) == 0); assert(sup(region1) == 30); assertThrown!EmptyRegionException(min(emptyRegion)); assertThrown!EmptyRegionException(sup(emptyRegion)); assertThrown!(MismatchingTagsException!int)(min(region2)); assertThrown!(MismatchingTagsException!int)(sup(region2));
Returns the minimum/supremum point or convex hull of the intervals. Both minimum and supremum are undefined for empty regions but the convex hull is not.