Java interpolate interpolate(double a, double b, double d)

Here you can find the source of interpolate(double a, double b, double d)

Description

interpolate

License

LGPL

Declaration

public static double interpolate(double a, double b, double d) 

Method Source Code

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

public class Main {
    public static double interpolate(double a, double b, double d) {
        return a + (b - a) * d;
    }//from ww  w .ja va 2 s  . c  o  m

    public static float interpolate(float a, float b, float d) {
        return a + (b - a) * d;
    }
}

Related

  1. interpolate(double fromAngle, double toAngle, double ratio)
  2. interpolate(double oldP, double newP, float partialTicks)
  3. interpolate(double p0, double p1, double p2, double p3, double t)
  4. interpolate(double x, double x1, double y1, double x2, double y2)