Java Lerp lerpInt(int i1, int i2, double f)

Here you can find the source of lerpInt(int i1, int i2, double f)

Description

lerp Int

License

Open Source License

Declaration

public static int lerpInt(int i1, int i2, double f) 

Method Source Code

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

public class Main {
    public static int lerpInt(int i1, int i2, double f) {
        return i1 + (int) ((i2 - i1) * f);
    }//w  w w.j av  a 2 s  . c om
}

Related

  1. lerp(int a, int b, int mul, int div)
  2. lerpa(double a1, double a2, double t)
  3. lerpAndPremultiplyColorWithAlpha(float t, int[] color1, int[] color2)
  4. lerpAngle(float fromRadians, float toRadians, float progress)
  5. LerpDegrees(float start, float end, float amount)
  6. lerpQuad(double p0, double k0, double p1, double t)
  7. lerpTowards(float from, float to, float factor)