Function S2Polygon.boundaryNear

Return true if two polygons have boundaries that are within "max_error" of each other along their entire lengths. More precisely, there must be a bijection between the two sets of loops such that for each pair of loops, "a_loop->BoundaryNear(b_loop)" is true.

bool boundaryNear (
  in const(S2Polygon) b,
  S1Angle max_error = fromRadians(1e-15)
) const;