Java Lerp lerp(double amt, double start, double end)

Here you can find the source of lerp(double amt, double start, double end)

Description

lerp

License

LGPL

Declaration

public static double lerp(double amt, double start, double end) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static double lerp(double amt, double start, double end) {
        if (amt <= 0.0D) {
            return start;
        }//ww w.  j a  v a2s  .  c  o m
        if (amt >= 1.0D) {
            return end;
        }
        return start + (end - start) * amt;
    }
}

Related

  1. lerp(double a, double b, double amt)
  2. lerp(double a, double b, double f)
  3. lerp(double a, double b, double lambda)
  4. lerp(double a, double l, double h)
  5. lerp(double distance, double firstPoint, double secondPoint)
  6. lerp(double from, double to, double p)
  7. lerp(double from, double to, double progress)
  8. lerp(double min, double max, double percentage)