Java Lerp lerp(double x, double x1, double x2, double q00, double q01)

Here you can find the source of lerp(double x, double x1, double x2, double q00, double q01)

Description

lerp

License

Open Source License

Declaration

private static double lerp(double x, double x1, double x2, double q00,
            double q01) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static double lerp(double x, double x1, double x2, double q00,
            double q01) {
        return ((x2 - x) / (x2 - x1)) * q00 + ((x - x1) / (x2 - x1)) * q01;
    }/*from ww  w.j a  va2s.  c  o m*/
}

Related

  1. lerp(double from, double to, double progress)
  2. lerp(double min, double max, double percentage)
  3. lerp(double min, double max, double val)
  4. lerp(double start, double distance, double factor)
  5. lerp(double v1, double v2, double amt)
  6. lerp(double x, double x1, double x2, double q00, double q01)
  7. lerp(final double a, final double min, final double max)
  8. lerp(final double percent, final int startColor, final int endColor)
  9. lerp(final float a, final float b, final float f)