Currently, Area offers GetIntersection, GetDifference, and GetUnion functions. C#'s HashSet<T> offers similar operations, but they're called IntersectWith, ExceptWIth, and UnionWith, respectively. C#'s operations generally take IEnumerable<T> as well.
It should be possible to implement area's interface similarly; or, at least, to provide functions that mimic this API. This can also avoid the need to re-allocate an area, if a user desires.
Currently, Area offers
GetIntersection
,GetDifference
, andGetUnion
functions. C#'sHashSet<T>
offers similar operations, but they're calledIntersectWith
,ExceptWIth
, andUnionWith
, respectively. C#'s operations generally takeIEnumerable<T>
as well.It should be possible to implement area's interface similarly; or, at least, to provide functions that mimic this API. This can also avoid the need to re-allocate an area, if a user desires.