Here you can find the source of lerp(int a, int b, float value)
public static int lerp(int a, int b, float value)
//package com.java2s; //License from project: Apache License public class Main { public static int lerp(int a, int b, float value) { return (int) (a + (b - a) * value); }//from w w w .jav a2s . c om public static long lerp(long a, long b, float value) { return (long) (a + (b - a) * value); } public static float lerp(float a, float b, float value) { return a + (b - a) * value; } public static double lerp(double a, double b, double value) { return a + (b - a) * value; } }