fCraft.Noise.StaticNoise C# (CSharp) Method

StaticNoise() public method

public StaticNoise ( int x, int y ) : float
x int
y int
return float
        public float StaticNoise( int x, int y )
        {
            int n = Seed + x + y * short.MaxValue;
            n = ( n << 13 ) ^ n;
            return ( float )( 1.0 - ( ( n * ( n * n * 15731 + 789221 ) + 1376312589 ) & 0x7FFFFFFF ) / 1073741824d );
        }

Same methods

Noise::StaticNoise ( int x, int y, int z ) : float