/// <summary> /// Generates a flat array of 2D noise. /// </summary> /// <param name="xStart">Start X Position</param> /// <param name="yStart">Start Y Position</param> /// <param name="xSize">X Size</param> /// <param name="ySize">Y Size</param> /// <param name="frequency">The scale of the noise</param> /// <param name="seed">The noise's seed</param> /// <returns>A 1 dimensional float array of 2D noise.</returns> public float[] GenUniformGrid2D(int xStart, int yStart, int xSize, int ySize, float frequency, int seed, out FastNoise.OutputMinMax minMax) { float[] noise = new float[xSize * ySize]; minMax = _generator.GenUniformGrid2D(noise, xStart, yStart, xSize, ySize, frequency, seed); return(noise); }
public float[] GenPositionArray4D(int count, float[] xPosArray, float[] yPosArray, float[] zPosArray, float[] wPosArray, float xOffset, float yOffset, float zOffset, float wOffset, int seed, out FastNoise.OutputMinMax minMax) { float[] noise = new float[count]; minMax = _generator.GenPositionArray4D(noise, xPosArray, yPosArray, zPosArray, wPosArray, xOffset, yOffset, zOffset, wOffset, seed); return(noise); }