AccidentalNoise.Noise.InternalGradientNoise C# (CSharp) Method

InternalGradientNoise() static private method

static private InternalGradientNoise ( Double x, Double y, Double z, Double w, Double u, Double v, Int32 ix, Int32 iy, Int32 iz, Int32 iw, Int32 iu, Int32 iv, Int32 seed ) : Double
x Double
y Double
z Double
w Double
u Double
v Double
ix System.Int32
iy System.Int32
iz System.Int32
iw System.Int32
iu System.Int32
iv System.Int32
seed System.Int32
return Double
        internal static Double InternalGradientNoise(
            Double x, Double y, Double z, Double w, Double u, Double v,
            Int32 ix, Int32 iy, Int32 iz, Int32 iw, Int32 iu, Int32 iv, 
            Int32 seed)
        {
            var hash = Noise.HashCoordinates(ix, iy, iz, iw, iu, iv, seed);

            var dx = x - ix;
            var dy = y - iy;
            var dz = z - iz;
            var dw = w - iw;
            var du = u - iu;
            var dv = v - iv;

            return (dx * NoiseLookupTable.Gradient6D[hash, 0] +
                    dy * NoiseLookupTable.Gradient6D[hash, 1] +
                    dz * NoiseLookupTable.Gradient6D[hash, 2] +
                    dw * NoiseLookupTable.Gradient6D[hash, 3] +
                    du * NoiseLookupTable.Gradient6D[hash, 4] +
                    dv * NoiseLookupTable.Gradient6D[hash, 5]);
        }

Same methods

Noise::InternalGradientNoise ( Double x, Double y, Double z, Double w, Int32 ix, Int32 iy, Int32 iz, Int32 iw, Int32 seed ) : Double
Noise::InternalGradientNoise ( Double x, Double y, Double z, Int32 ix, Int32 iy, Int32 iz, Int32 seed ) : Double
Noise::InternalGradientNoise ( Double x, Double y, Int32 ix, Int32 iy, Int32 seed ) : Double