Function S2Region.clone

Returns a deep copy of the region.

abstract S2Region clone();

Note that each subtype of S2Region returns an object reference of its own type (e.g., S2Cap.clone() returns an S2Cap).