Here you can find the source of lerp(float a, float b, float t)
public static float lerp(float a, float b, float t)
//package com.java2s; //License from project: Open Source License public class Main { public static float lerp(float a, float b, float t) { return a + (b - a) * t; }/* w ww .j a va2 s . c o m*/ public static int lerp(int a, int b, int t) { return a + (b - a) * t; } }