assertFalse("e2.contains(e1)", ae.contains (e1, false));
assertFalse("e2.contains(e1)", ae.contains (e1, true));
}
final int dimension = e1.getDimension();
final int numCases = (int) round(pow(3, dimension));
final GeneralDirectPosition pos = new GeneralDirectPosition(dimension);
for (int index=0; index<numCases; index++) {
int n = index;
for (int i=0; i<dimension; i++) {
final double ordinate;
switch (n % 3) {
case 0: ordinate = e2.getMinimum(i); break;
case 1: ordinate = e2.getMedian (i); break;
case 2: ordinate = e2.getMaximum(i); break;
default: throw new AssertionError(i);
}
pos.setOrdinate(i, ordinate);
n /= 3;
}
assertEquals(0, n); // Opportunist check of this assert method.
assertFalse("e1.contains(" + pos + ')', e1.contains(pos));
}