Home
last modified time | relevance | path

Searched refs:lengthPix (Results 1 – 1 of 1) sorted by relevance

/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DValPixConverter.java29 … public static float valToPix(double val, double min, double max, float lengthPix, boolean flip) { in valToPix() argument
30 if(lengthPix <= ZERO) { in valToPix()
34 double scale = lengthPix / range; in valToPix()
39 pix = (lengthPix - pix); in valToPix()
49 public static double valPerPix(double min, double max, float lengthPix) { in valPerPix() argument
51 return valRange/lengthPix; in valPerPix()
64 … public static double pixToVal(float pix, double min, double max, float lengthPix, boolean flip) { in pixToVal() argument
69 if(lengthPix <= ZERO) { in pixToVal()
74 pMult = lengthPix - pix; in pixToVal()
77 return ((range / lengthPix) * pMult) + min; in pixToVal()