Exemplo n.º 1
0
 public float interpolate(float xpos, float ypos, float[][] f, boolean periodic) {
   Interpolation.setSpace(ssx, ssy);
   // Normal Interpolation
   if (!periodic) {
     if (interpolationMethod == 0) return Interpolation.biLin(xpos, ypos, f);
     else return Interpolation.biCubic(xpos, ypos, f);
   }
   // Periodic Interpolation
   else {
     if (interpolationMethod == 0) return Interpolation.per_BiLin(xpos, ypos, f);
     else return Interpolation.per_BiCub(xpos, ypos, f);
   }
 }