for (int j = 0; j < pts.length; j++) {
if (i == j) continue;
boolean segResult = false;
if (useSegInt)
segResult = rectSegIntersector.intersects(pts[i], pts[j]);
boolean sideResult = false;
if (useSideInt)
sideResult = rectSideIntersector.intersects(pts[i], pts[j]);
if (useSegInt && useSideInt)