Java Lerp lerp(int a, int b, int mul, int div)

Here you can find the source of lerp(int a, int b, int mul, int div)

Description

lerp

License

Open Source License

Declaration

public static int lerp(int a, int b, int mul, int div) 

Method Source Code

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

public class Main {
    public static int lerp(int a, int b, int mul, int div) {
        return a + (b - a) * mul / div;
    }//from   w ww  .  j a  v a  2 s.c o m
}

Related

  1. lerp(float target, float current, float factor)
  2. lerp(float to, float from, float f)
  3. lerp(float va, float vb, float t)
  4. lerp(float value1, float value2, float amount)
  5. lerp(int a, int b, float value)
  6. lerpa(double a1, double a2, double t)
  7. lerpAndPremultiplyColorWithAlpha(float t, int[] color1, int[] color2)
  8. lerpAngle(float fromRadians, float toRadians, float progress)
  9. LerpDegrees(float start, float end, float amount)