};
assertEquals(compass.length, AxisDirections.COMPASS_COUNT);
final int base = NORTH.ordinal();
final int h = compass.length / 2;
for (int i=0; i<compass.length; i++) {
final AxisDirection direction = compass[i];
final AxisDirection opposite = AxisDirections.opposite(direction);
final String message = direction.name();
int io = i+h, in = i;
if (i >= h) io -= AxisDirections.COMPASS_COUNT;
if (i > h) in -= AxisDirections.COMPASS_COUNT;
assertEquals(message, base + i, direction.ordinal());
assertEquals(message, base + io, opposite.ordinal());
assertEquals(message, 0, AxisDirections.angleForCompass(direction, direction));
assertEquals(message, h, abs(AxisDirections.angleForCompass(direction, opposite)));
assertEquals(message, in, AxisDirections.angleForCompass(direction, NORTH));
}
}