Here you can find the source of lerp(double v1, double v2, double amt)
public static double lerp(double v1, double v2, double amt)
//package com.java2s; public class Main { public static double lerp(double v1, double v2, double amt) { return v1 + (v2 - v1) * amt; }/*w w w.j ava2 s .c o m*/ }