NoiseEngine/CubicNoise/Contracts/INoiseEngine.cs

28 lines
811 B
C#
Raw Normal View History

2020-01-11 18:00:46 +00:00
using System;
using System.Collections.Generic;
using System.Text;
namespace CubicNoise.Contracts
{
2020-01-11 23:32:10 +00:00
/// <summary>
/// An interface which each noise generator must implement.
/// </summary>
2020-01-11 18:00:46 +00:00
public interface INoiseEngine
{
2020-01-11 23:32:10 +00:00
/// <summary>
/// Producing a one-dimensional based noise value.
/// </summary>
/// <param name="x">The x coordinate.</param>
/// <returns>The noise value.</returns>
2020-01-11 18:00:46 +00:00
float Get(float x);
2020-01-11 23:32:10 +00:00
/// <summary>
/// Produces a two-dimensional based noise value.
/// </summary>
/// <param name="x">The x coordinate.</param>
/// <param name="y">The y coordinate.</param>
/// <returns>The noise value.</returns>
2020-01-11 18:00:46 +00:00
float Get(float x, float y);
}
}