private static void writeBoundingBox(double minx, double maxx, double miny, double maxy, DataOutput data) throws IOException { long x1 = toFixedPrecision(minx, RoundingMode.HALF_DOWN); long y1 = toFixedPrecision(miny, RoundingMode.HALF_DOWN); long x2 = toFixedPrecision(maxx, RoundingMode.HALF_UP); long y2 = toFixedPrecision(maxy, RoundingMode.HALF_UP); writeSignedVarLong(x1, data); writeSignedVarLong(y1, data); writeSignedVarLong(x2, data); writeSignedVarLong(y2, data); }
public void writePointBoundingBox(double x, double y, DataOutput data) throws IOException { long x1 = toFixedPrecision(x); long y1 = toFixedPrecision(y); writeSignedVarLong(x1, data); writeSignedVarLong(y1, data); }
public void writePointBoundingBox(double x, double y, DataOutput data) throws IOException { long x1 = toFixedPrecision(x); long y1 = toFixedPrecision(y); writeSignedVarLong(x1, data); writeSignedVarLong(y1, data); }
private static void writeBoundingBox(double minx, double maxx, double miny, double maxy, DataOutput data) throws IOException { long x1 = toFixedPrecision(minx, RoundingMode.HALF_DOWN); long y1 = toFixedPrecision(miny, RoundingMode.HALF_DOWN); long x2 = toFixedPrecision(maxx, RoundingMode.HALF_UP); long y2 = toFixedPrecision(maxy, RoundingMode.HALF_UP); writeSignedVarLong(x1, data); writeSignedVarLong(y1, data); writeSignedVarLong(x2, data); writeSignedVarLong(y2, data); }