Пример #1
0
		/// <summary>
		/// Initializes a new instance of Noise2D.
		/// </summary>
		/// <param name="width">The width of the noise map.</param>
		/// <param name="height">The height of the noise map.</param>
		/// <param name="generator">The generator module.</param>
		public Noise2D(int width, int height, ModuleBase generator)
		{
			this.m_generator = generator;
			this.m_width = width;
			this.m_height = height;
			this.m_data = new float[width, height];
		}
Пример #2
0
		/// <summary>
		/// Initializes a new instance of Noise2D.
		/// </summary>
		/// <param name="size">The width and height of the noise map.</param>
		/// <param name="generator">The generator module.</param>
		public Noise2D(int size, ModuleBase generator)
			: this(size, size, generator)
		{
		}
Пример #3
0
 /// <summary>
 /// Initializes a new instance of Noise2D.
 /// </summary>
 /// <param name="size">The width and height of the noise map.</param>
 /// <param name="generator">The generator module.</param>
 public Noise2D(int size, ModuleBase generator)
     : this(size, size, generator)
 {
 }