Java cos cosineInterpolate(float y1, float y2, float mu)

Here you can find the source of cosineInterpolate(float y1, float y2, float mu)

Description

cosine Interpolate

License

Open Source License

Declaration

public static float cosineInterpolate(float y1, float y2, float mu) 

Method Source Code

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

public class Main {
    public static float cosineInterpolate(float y1, float y2, float mu) {
        float mu2;

        mu2 = (float) (1 - Math.cos(mu * Math.PI)) / 2;
        return (y1 * (1 - mu2) + y2 * mu2);
    }//from  www  .  j  a v  a 2  s. c o  m
}

Related

  1. cosd(double x)
  2. cosDeg(double degrees)
  3. cosf(float f)
  4. cosf(float value)
  5. cosineCoefficient(double[] hist1, double[] hist2)
  6. cosineTheorem(double d12, double d23, double theta123)
  7. cosInt(double s)