Beispiel #1
0
  private static b a(b b1) {
    int ai[] = b1.d();
    int ai1[] = b1.e();
    if (ai == null || ai1 == null) {
      throw m.a();
    }
    int l = a(ai, b1);
    int i1 = ai[1];
    int i = ai1[1];
    int j1 = ai[0];
    int k1 = ((ai1[0] - j1) + 1) / l;
    int l1 = ((i - i1) + 1) / l;
    if (k1 <= 0 || l1 <= 0) {
      throw m.a();
    }
    int i2 = l / 2;
    b b2 = new b(k1, l1);
    for (int j = 0; j < l1; j++) {
      for (int k = 0; k < k1; k++) {
        if (b1.a(k * l + (j1 + i2), i1 + i2 + j * l)) {
          b2.b(k, j);
        }
      }
    }

    return b2;
  }
Beispiel #2
0
 private static int a(int ai[], b b1) {
   int j = b1.f();
   int i = ai[0];
   for (int k = ai[1]; i < j && b1.a(i, k); i++) {}
   if (i == j) {
     throw m.a();
   }
   i -= ai[0];
   if (i == 0) {
     throw m.a();
   } else {
     return i;
   }
 }