Esempio n. 1
0
        internal static Double interpolate_XY_2(
            Double x, Double y, Double xs, Double ys, 
            Int32 x0, Int32 x1, Int32 y0, Int32 y1,
            Int32 seed, WorkerNoise2 noisefunc)
        {
            var v1 = interpolate_X_2(x, y, xs, x0, x1, y0, seed, noisefunc);
            var v2 = interpolate_X_2(x, y, xs, x0, x1, y1, seed, noisefunc);

            return Lerp(ys, v1, v2);
        }
Esempio n. 2
0
        internal static Double interpolate_X_2(
            Double x, Double y, Double xs,
            Int32 x0, Int32 x1, Int32 iy,
            Int32 seed, WorkerNoise2 noisefunc)
        {
            var v1 = noisefunc(x, y, x0, iy, seed);
            var v2 = noisefunc(x, y, x1, iy, seed);

            return Lerp(xs, v1, v2);
        }