S2LatLngRect.intersection

Returns the smallest rectangle containing the intersection of this rectangle and the given rectangle. Note that the region of intersection may consist of two disjoint rectangles, in which case a single rectangle spanning both of them is returned.

class S2LatLngRect
const
intersection

Meta