overlaps method

bool overlaps(
  1. int start0,
  2. int end0,
  3. MonotoneChainEdge mce,
  4. int start1,
  5. int end1,
)

Tests whether the envelopes of two chain sections overlap (intersect).

@param start0 @param end0 @param mce @param start1 @param end1 @return true if the section envelopes overlap

Implementation

bool overlaps(
    int start0, int end0, MonotoneChainEdge mce, int start1, int end1) {
  return Envelope.intersectsEnvelopeCoords(
      pts[start0], pts[end0], mce.pts[start1], mce.pts[end1]);
}