S2CellUnion.getIntersection

Like GetIntersection(), but works directly with vectors of S2CellIds, Equivalent to:

*out = S2CellUnion(x).Intersection(S2CellUnion(y)).Release()

except that this method has slightly more relaxed normalization requirements: the input vectors may contain groups of 4 child cells that all have the same parent. (In a normalized S2CellUnion, such groups are always replaced by the parent cell.)

class S2CellUnion
static
void
getIntersection
(
in S2CellId[] x
,
in S2CellId[] y
,)
out { assert (isSorted(output)); }

Meta