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

Dot() protected static method

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

Same methods

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