 | PerlinNoiseCompute Method (Double, Int32) |
Computes a noise value for a 1D position given by (x).
The noise is tileable with the given periods.
Namespace: DigitalRune.Mathematics.StatisticsAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntaxpublic static double Compute(
double x,
int periodX
)
Public Shared Function Compute (
x As Double,
periodX As Integer
) As Double
public:
static double Compute(
double x,
int periodX
)
static member Compute :
x : float *
periodX : int -> float
Parameters
- x
- Type: SystemDouble
The x position. - periodX
- Type: SystemInt32
The period in x. Must be greater than 0.
Return Value
Type:
DoubleThe noise value for the given position (x).
Remarks
See Also