function testGeoPolygonGeoPolygonSubCase(geopolygon1, geopolygon2) {
  let intersects = false;
  const { numPolygons, polygons } = geopolygon2;
  for (let n = 0; n < numPolygons; n++) {
    let polygon = polygons[n];
    intersects = testGeoPolygonPolygon(geopolygon1, polygon);
    if (intersects === true) {
      return true;
    }
  }
  return false;
}
// Only when the geopolygon1's bounds is not inside the geopolygon2's bounds
Only when the geopolygon1's bounds is not inside the geopolygon2's bounds
Only when the geopolygon1 ' s bounds is not inside the geopolygon2 ' s bounds
function testGeoPolygonGeoPolygonSubCase(geopolygon1, geopolygon2) {
  let intersects = false;
  const { numPolygons, polygons } = geopolygon2;
  for (let n = 0; n < numPolygons; n++) {
    let polygon = polygons[n];
    intersects = testGeoPolygonPolygon(geopolygon1, polygon);
    if (intersects === true) {
      return true;
    }
  }
  return false;
}
function testGeoPolygonGeoPolygonSubCase ( geopolygon1 , geopolygon2 ) { let intersects = false ; const { numPolygons , polygons } = geopolygon2 ; for ( let n = 0 ; n < numPolygons ; n ++ ) { let polygon = polygons [ n ] ; intersects = testGeoPolygonPolygon ( geopolygon1 , polygon ) ; if ( intersects === true ) { return true ; } } return false ; }
Only when the geopolygon1's bounds is not inside the geopolygon2's bounds
Only when the geopolygon1 ' s bounds is not inside the geopolygon2 ' s bounds