Here you can find the source of interpolate(float bottom, float top, float ratio)
public static float interpolate(float bottom, float top, float ratio)
//package com.java2s; public class Main { public static float interpolate(float bottom, float top, float ratio) { return bottom + (top - bottom) * ratio; }/*from w ww . ja va 2s . co m*/ }