Here you can find the source of clampedLerp(double lowerBnd, double upperBnd, double slide)
public static double clampedLerp(double lowerBnd, double upperBnd, double slide)
//package com.java2s; //License from project: Open Source License public class Main { public static double clampedLerp(double lowerBnd, double upperBnd, double slide) { return slide < 0.0D ? lowerBnd : (slide > 1.0D ? upperBnd : lowerBnd + (upperBnd - lowerBnd) * slide); }// ww w.ja v a 2 s.co m }