Java interpolate interpolateLinear(final float a, final float b, final float t)

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

Description

interpolate Linear

License

LGPL

Declaration

public static float interpolateLinear(final float a, final float b, final float t) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static float interpolateLinear(final float a, final float b, final float t) {
        return a + t * (b - a);
    }/*from  www .j  a  v a 2 s.co  m*/

    public static double interpolateLinear(final double a, final double b, final double t) {
        return a + t * (b - a);
    }
}

Related

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