code: 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();
              }
  
          }
      }
docs: Reads a coordinate value with the specified dimensionality.
  Makes the X and Y ordinates precise according to the precision model
  in use.