Here you can find the source of interpolateLinear(float lastState, float currentState, float ip)
public static float interpolateLinear(float lastState, float currentState, float ip)
//package com.java2s; //License from project: Open Source License public class Main { public static float interpolateLinear(float lastState, float currentState, float ip) { return lastState + (currentState - lastState) * ip; }// ww w.j a v a2 s. c om public static double interpolateLinear(double lastState, double currentState, double ip) { return lastState + (currentState - lastState) * ip; } }