visitCrossingEdgePairs

Visits all pairs of crossing edges in the given S2ShapeIndex, terminating early if the given EdgePairVisitor function returns false (in which case VisitCrossings returns false as well). "type" indicates whether all crossings should be visited, or only interior crossings.

CAVEAT: Crossings may be visited more than once.

  1. bool visitCrossingEdgePairs(S2ShapeIndex index, CrossingType type, EdgePairVisitor visitor)
  2. bool visitCrossingEdgePairs(S2ShapeIndex a_index, S2ShapeIndex b_index, CrossingType type, EdgePairVisitor visitor)

Meta