Java interpolate interpolateLinear(float lastState, float currentState, float ip)

Here you can find the source of interpolateLinear(float lastState, float currentState, float ip)

Description

interpolate Linear

License

Open Source License

Declaration

public static float interpolateLinear(float lastState, float currentState, float ip) 

Method Source Code

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

public class Main {
    public static float interpolateLinear(float lastState, float currentState, float ip) {
        return lastState + (currentState - lastState) * ip;
    }// ww  w.j a  v  a2  s.  c  om

    public static double interpolateLinear(double lastState, double currentState, double ip) {
        return lastState + (currentState - lastState) * ip;
    }
}

Related

  1. interpolatedSample(double xStart, double xVal, double xEnd, double yStart, double yEnd)
  2. interpolatefinal(double a, final double b, final double d)
  3. interpolateFloat(float f0, float f1, double mixer)
  4. interpolateFloat(float t, float a, float b)
  5. interpolateLinear(final float a, final float b, final float t)
  6. interpolateProp(final String source, final String propName, final String defValue)
  7. interpolateRotation(float par1, float par2, float par3)
  8. interpolateRotation(float prevRotation, float nextRotation, float partialTick)
  9. interpolateRound(double a, double b, double t)