S2Polygon.approxContains

Returns true if this polgyon (A) approximately contains the given other polygon (B). This is true if it is possible to move the vertices of B no further than "tolerance" such that A contains the modified B.

For example, the empty polygon will contain any polygon whose maximum width is no more than "tolerance".

  1. bool approxContains(S2Polygon b, S1Angle tolerance)
    class S2Polygon
    bool
    approxContains
  2. bool approxContains(S2Polyline b, S1Angle tolerance)

Meta