Java Lerp lerp(float fromValue, float toValue, float progress)

Here you can find the source of lerp(float fromValue, float toValue, float progress)

Description

Linearly interpolates between fromValue to toValue on progress position.

License

Open Source License

Declaration

static public float lerp(float fromValue, float toValue, float progress) 

Method Source Code

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

public class Main {
    /** Linearly interpolates between fromValue to toValue on progress position. */
    static public float lerp(float fromValue, float toValue, float progress) {
        return fromValue + (toValue - fromValue) * progress;
    }/*  www.  j a  v a  2  s.  c o m*/
}

Related

  1. lerp(final float percent, final float startValue, final float endValue)
  2. lerp(final float x, final float x1, final float x2, final float q00, final float q01)
  3. lerp(float a, float b, float f)
  4. lerp(float a, float b, float interpolation)
  5. lerp(float a, float b, float t)
  6. lerp(float origin, float target, int steps, int maxSteps)
  7. lerp(float start, float stop, float amt)
  8. lerp(float target, float current, float factor)
  9. lerp(float to, float from, float f)