Java Lerp lerp(float a, float b, float t)

Here you can find the source of lerp(float a, float b, float t)

Description

lerp

License

Open Source License

Declaration

public static float lerp(float a, float b, float t) 

Method Source Code

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

public class Main {
    public static float lerp(float a, float b, float t) {
        return a + (b - a) * t;
    }/* w  ww .j  a va2 s  . c  o m*/

    public static int lerp(int a, int b, int t) {
        return a + (b - a) * t;
    }
}

Related

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