Пример #1
0
        internal static Double interpolate_XY_4(
            Double x, Double y, Double z, Double w, Double xs, Double ys,
            Int32 x0, Int32 x1, Int32 y0, Int32 y1, Int32 iz, Int32 iw,
            Int32 seed, WorkerNoise4 noisefunc)
        {
            var v1 = interpolate_X_4(x, y, z, w, xs, x0, x1, y0, iz, iw, seed, noisefunc);
            var v2 = interpolate_X_4(x, y, z, w, xs, x0, x1, y1, iz, iw, seed, noisefunc);

            return Lerp(ys, v1, v2);
        }
Пример #2
0
        internal static Double interpolate_XYZW_4(
            Double x, Double y, Double z, Double w, Double xs, Double ys, Double zs, Double ws,
            Int32 x0, Int32 x1, Int32 y0, Int32 y1, Int32 z0, Int32 z1, Int32 w0, Int32 w1,
            Int32 seed, WorkerNoise4 noisefunc)
        {
            var v1 = interpolate_XYZ_4(x, y, z, w, xs, ys, zs, x0, x1, y0, y1, z0, z1, w0, seed, noisefunc);
            var v2 = interpolate_XYZ_4(x, y, z, w, xs, ys, zs, x0, x1, y0, y1, z0, z1, w1, seed, noisefunc);

            return Lerp(ws, v1, v2);
        }
Пример #3
0
        internal static Double interpolate_X_4(
            Double x, Double y, Double z, Double w, Double xs,
            Int32 x0, Int32 x1, Int32 iy, Int32 iz, Int32 iw,
            Int32 seed, WorkerNoise4 noisefunc)
        {
            var v1 = noisefunc(x, y, z, w, x0, iy, iz, iw, seed);
            var v2 = noisefunc(x, y, z, w, x1, iy, iz, iw, seed);

            return Lerp(xs, v1, v2);
        }