@Test public void testValPerPix() { assertEquals(1.0, ValPixConverter.valPerPix(0, 100, 100)); double expected = 200d/100; assertEquals(expected, ValPixConverter.valPerPix(100, 300, 100)); expected = 50d/100; assertEquals(expected, ValPixConverter.valPerPix(0, 50, 100)); expected = 200d/100; assertEquals(expected, ValPixConverter.valPerPix(-100, 100, 100)); }
public static double valPerPix(double min, double max, float lengthPix) { double valRange = range(min, max); return valRange/lengthPix; }
ValPixConverter { public static double valPerPix(double min, double max, float lengthPix) { double valRange = range(min, max); return valRange/lengthPix; } }
ValPixConverter { public static double valPerPix(double min, double max, float lengthPix) { double valRange = range(min, max); return valRange/lengthPix; }  }
ValPixConverter { public static double valPerPix(double min, double max, float lengthPix) { double valRange = range(min, max); return valRange/lengthPix; }  static float valToPix(double val, double min, double max, float lengthPix, boolean flip); static double range(double min, double max); static double valPerPix(double min, double max, float lengthPix); static double pixToVal(float pix, double min, double max, float lengthPix, boolean flip); static PointF valToPix(Number x, Number y, RectF plotArea, Number minX, Number maxX, Number minY, Number maxY); }
ValPixConverter { public static double valPerPix(double min, double max, float lengthPix) { double valRange = range(min, max); return valRange/lengthPix; }  static float valToPix(double val, double min, double max, float lengthPix, boolean flip); static double range(double min, double max); static double valPerPix(double min, double max, float lengthPix); static double pixToVal(float pix, double min, double max, float lengthPix, boolean flip); static PointF valToPix(Number x, Number y, RectF plotArea, Number minX, Number maxX, Number minY, Number maxY);  }