Here you can find the source of interpolate(float var1, float var2, float var3)
public static float interpolate(float var1, float var2, float var3)
//package com.java2s; //License from project: Apache License public class Main { public static float interpolate(float var1, float var2, float var3) { return var1 + (var2 - var1) * var3; }//from www . j ava2s .c om public static double interpolate(double var1, double var2, double var3) { return var1 + (var2 - var1) * var3; } }