getHeightRatio method

double getHeightRatio(
  1. double val
)

Implementation

double getHeightRatio(double val) {
  double res = (val / refHeight) * 100;
  double temp = res * blockSizeVertical;
  return temp;
}