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