Ejemplo n.º 1
0
 private double extrapolate(Seed seed, int xsb, int ysb, int zsb, double dx, double dy, double dz)
 {
     var index = seed.Get(xsb, ysb, zsb);
     var a = gradients3D[index] * dx
         + gradients3D[index + 1] * dy
         + gradients3D[index + 2] * dz;
     return a;
 }
Ejemplo n.º 2
0
 private double extrapolate(Seed seed, int xsb, int ysb, double dx, double dy)
 {
     var seedIndex = seed.Get(xsb, ysb) & 0x0E;
     return gradients2D[seedIndex] * dx
         + gradients2D[seedIndex + 1] * dy;
 }