Exemplo n.º 1
0
 internal CellularCache Get(Double x, Double y)
 {
     if (!cache2D.IsValid || x != cache2D.X || y != cache2D.Y)
     {
         Noise.CellularFunction(x, y, seed, cache2D.F, cache2D.D);
         cache2D.X       = x;
         cache2D.Y       = y;
         cache2D.IsValid = true;
     }
     return(cache2D);
 }
Exemplo n.º 2
0
 internal CellularCache Get(Double x, Double y, Double z)
 {
     if (!cache3D.IsValid || x != cache3D.X || y != cache3D.Y || z != cache3D.Z)
     {
         Noise.CellularFunction(x, y, z, seed, cache3D.F, cache3D.D);
         cache3D.X       = x;
         cache3D.Y       = y;
         cache3D.Z       = z;
         cache3D.IsValid = true;
     }
     return(cache3D);
 }
Exemplo n.º 3
0
        internal CellularCache Get(Double x, Double y, Double z, Double w, Double u, Double v)
        {
            if (!cache6D.IsValid || x != cache6D.X || y != cache6D.Y || z != cache6D.Z || w != cache6D.W || u != cache6D.U || v != cache6D.V)
            {
                Noise.CellularFunction(x, y, z, w, u, v, seed, cache6D.F, cache6D.D);
                cache6D.X       = x;
                cache6D.Y       = y;
                cache6D.Z       = z;
                cache6D.W       = w;
                cache6D.U       = u;
                cache6D.V       = v;
                cache6D.IsValid = true;
            }

            return(cache6D);
        }