/** * 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(); } } }
private double[] readDoubles(ByteOrderDataInStream is, int num) throws IOException { double[] doubles = new double[num]; for (int i = 0; i < num; i++) { doubles[i] = is.readDouble(); } return doubles; }
private double[][] readPoints(ByteOrderDataInStream is, int num) throws IOException { double[][] points = new double[num][]; for (int i = 0; i < num; i++) { points[i] = new double[]{is.readDouble(), is.readDouble()}; } return points; }
private double[] readDoubles(ByteOrderDataInStream is, int num) throws IOException { double[] doubles = new double[num]; for (int i = 0; i < num; i++) { doubles[i] = is.readDouble(); } return doubles; }
private double[][] readPoints(ByteOrderDataInStream is, int num) throws IOException { double[][] points = new double[num][]; for (int i = 0; i < num; i++) { points[i] = new double[]{is.readDouble(), is.readDouble()}; } return points; }
/** * 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(); } } }
/** * 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(); } } }