Function S2Polygon.getOverlapFractions

Return the overlap fractions between two polygons, i.e. the ratios of the area of intersection to the area of each polygon.

static s2.s2polygon.S2Polygon.OverlapFractions getOverlapFractions (
  S2Polygon a,
  S2Polygon b
);