Java interpolate interpolate(double oldP, double newP, float partialTicks)

Here you can find the source of interpolate(double oldP, double newP, float partialTicks)

Description

interpolate

License

Open Source License

Declaration

public static double interpolate(double oldP, double newP, float partialTicks) 

Method Source Code

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

public class Main {
    public static double interpolate(double oldP, double newP, float partialTicks) {
        if (oldP == newP) {
            return oldP;
        }//from  w  w  w.  j  a  va 2 s  .  c  o m
        return oldP + ((newP - oldP) * partialTicks);
    }
}

Related

  1. interpolate(double a, double b, double d)
  2. interpolate(double fromAngle, double toAngle, double ratio)
  3. interpolate(double p0, double p1, double p2, double p3, double t)
  4. interpolate(double x, double x1, double y1, double x2, double y2)
  5. interpolate(double x1, double x2, double inbetween)
  6. interpolate(double x1, double x2, float zeroToOne)