Here you can find the source of lerpInt(int i1, int i2, double f)
public static int lerpInt(int i1, int i2, double f)
//package com.java2s; //License from project: Open Source License public class Main { public static int lerpInt(int i1, int i2, double f) { return i1 + (int) ((i2 - i1) * f); }//w w w.j av a 2 s . c om }