Пример #1
0
 @Override
 public void max(final Positionable max) {
   for (int d = 0; d < max.numDimensions(); d++) {
     max.setPosition(position[d] + radius, d);
   }
 }
 @Override
 public void min(Positionable min) {
   for (int i = 0; i < dims.length; ++i) {
     min.setPosition(0, i);
   }
 }
Пример #3
0
 @Override
 public void min(final Positionable min) {
   for (int d = 0; d < min.numDimensions(); d++) {
     min.setPosition(position[d] - radius, d);
   }
 }
 @Override
 public void max(Positionable max) {
   for (int i = 0; i < dims.length; ++i) {
     max.setPosition(dims[i] - 1, i);
   }
 }