addPair method

void addPair(
  1. Shape s1,
  2. Shape s2
)

Add overlaping pairs

Implementation

void addPair(Shape s1,Shape s2 ) {
  Pair pair = Pair( s1, s2 );
  pairs.add(pair);
  numPairs++;
}