S2Polygon.approxDisjoint

Returns true if this polgyon (A) and the given polygon (B) are approximately disjoint. This is true if it is possible to ensure that A and B do not intersect by moving their vertices no further than "tolerance". This implies that in borderline cases where A and B overlap slightly, this method returns true (A and B are approximately disjoint).

For example, any polygon is approximately disjoint from a polygon whose maximum width is no more than "tolerance".

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

Meta