Here you can find the source of interpolate(final float prev, final float curr, final float alpha)
public static float interpolate(final float prev, final float curr, final float alpha)
//package com.java2s; //License from project: Creative Commons License public class Main { public static float interpolate(final float prev, final float curr, final float alpha) { return (prev * (1 - alpha)) + (curr * alpha); }//from w ww. j a va2 s. c o m }