Exemplo n.º 1
0
 /// <summary>
 /// Generates an plan of values within a specified range based on the coordinates of the specified start values.
 /// </summary>
 /// <param name="module"><see cref="IModule2D"/> represent a noise generator.</param>
 /// <param name="width">The width of the plan (x-axis).</param>
 /// <param name="height">The height of the plan (y-axis).</param>
 /// <param name="range">Target range to convert the plan.</param>
 /// <param name="start_x">The start coordinate on the x-axis.</param>
 /// <param name="start_y">The start coordinate on the y-axis.</param>
 /// <returns>The resulting plan in target range.</returns>
 static public float[,] GetPlane(this IModule2D module, int width, int height, NoiseRange range, int start_x, int start_y)
 {
     return(module.GetPlane(width, height, 1, range, start_x, start_y));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Generates an plan of values within a specified range.
 /// </summary>
 /// <param name="module"><see cref="IModule2D"/> represent a noise generator.</param>
 /// <param name="width">The width of the plan (x-axis).</param>
 /// <param name="height">The height of the plan (y-axis).</param>
 /// <param name="scaleFactor">The scale factor of the plan.</param>
 /// <param name="range">Target range to convert the plan.</param>
 /// <returns>The resulting plan in target range.</returns>
 static public float[,] GetPlane(this IModule2D module, int width, int height, float scaleFactor, NoiseRange range)
 {
     return(module.GetPlane(width, height, scaleFactor, range, 0, 0));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Generates an plan of values within a specified coordinates of the specified start values.
 /// </summary>
 /// <param name="module"><see cref="IModule2D"/> represent a noise generator.</param>
 /// <param name="width">The width of the plan (x-axis).</param>
 /// <param name="height">The height of the plan (y-axis).</param>
 /// <param name="scaleFactor">The scale factor of the plan.</param>
 /// <param name="start_x">The start coordinate on the x-axis.</param>
 /// <param name="start_y">The start coordinate on the y-axis.</param>
 /// <returns>The resulting plan.</returns>
 static public float[,] GetPlane(this IModule2D module, int width, int height, float scaleFactor, int start_x, int start_y)
 {
     return(module.GetPlane(width, height, scaleFactor, _default, start_x, start_y));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Generates an plan of values.
 /// </summary>
 /// <param name="module"><see cref="IModule2D"/> represent a noise generator.</param>
 /// <param name="width">The width of the plan (x-axis).</param>
 /// <param name="height">The height of the plan (y-axis).</param>
 /// <returns>The resulting plan.</returns>
 static public float[,] GetPlane(this IModule2D module, int width, int height)
 {
     return(module.GetPlane(width, height, 1, _default));
 }