Java interpolate interpolateValues(float prevVal, float nextVal, float partialTick)

Here you can find the source of interpolateValues(float prevVal, float nextVal, float partialTick)

Description

interpolate Values

License

Open Source License

Declaration

public static float interpolateValues(float prevVal, float nextVal, float partialTick) 

Method Source Code

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

public class Main {
    public static float interpolateValues(float prevVal, float nextVal, float partialTick) {
        return prevVal + partialTick * (nextVal - prevVal);
    }/*from ww  w  . jav  a 2 s .  c om*/
}

Related

  1. interpolateRotation(float par1, float par2, float par3)
  2. interpolateRotation(float prevRotation, float nextRotation, float partialTick)
  3. interpolateRound(double a, double b, double t)
  4. interpolateSmoothly(final float position, final float startPosition, final float endPosition, final float startValue, final float endValue)
  5. interpolateValue(double current, double prev, float partialTickTime)
  6. interpolateYawDegrees(float angle1, float ratio1, float angle2, float ratio2)
  7. interpolateYFromX(double x, double x0, double x1, double y0, double y1)