LibNoise.Primitive.SimplexPerlin.Dot C# (CSharp) Method

Dot() protected static method

Computes dot product in 4D.
protected static Dot ( int g, float x, float y, float z, float t ) : float
g int 4-vector (grid offset).
x float X coordinates.
y float Y coordinates.
z float Z coordinates.
t float T coordinates.
return float
        protected static float Dot(int[] g, float x, float y, float z, float t)
        {
            return g[0]*x + g[1]*y + g[2]*z + g[3]*t;
        }

Same methods

SimplexPerlin::Dot ( int g, float x, float y ) : float
SimplexPerlin::Dot ( int g, float x, float y, float z ) : float