VoxelTerrain.NoiseCube.NoiseCube C# (CSharp) Метод

NoiseCube() публичный Метод

Creates a cube with specified dimensions and randomizes all values.
public NoiseCube ( int width, int height, int depth ) : System
width int Width of a cube.
height int Height of a cube.
depth int Depth of a cube.
Результат System
        public NoiseCube(int width, int height, int depth)
        {
            this.width = width;
            this.height = height;
            this.depth = depth;
            values = new float[width, height, depth];

            RandomizeValues();
        }