예제 #1
0
 /**
  * Reads a coordinate value with the specified dimensionality. Makes the X and Y ordinates precise
  * according to the precision model in use.
  */
 private void readCoordinate() throws IOException {
   for (int i = 0; i < inputDimension; i++) {
     if (i <= 1) {
       ordValues[i] = precisionModel.makePrecise(dis.readDouble());
     } else {
       ordValues[i] = dis.readDouble();
     }
   }
 }