Click or drag to resize
DigitalRunePerlinNoiseCompute Method (Double, Double, Int32, Int32)
Computes a noise value for a 2D position given by (x, y). The noise is tileable with the given periods.

Namespace: DigitalRune.Mathematics.Statistics
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static double Compute(
	double x,
	double y,
	int periodX,
	int periodY
)

Parameters

x
Type: SystemDouble
The x position.
y
Type: SystemDouble
The y position.
periodX
Type: SystemInt32
The period in x. Must be greater than 0.
periodY
Type: SystemInt32
The period in y. Must be greater than 0.

Return Value

Type: Double
The noise value for the given position (x, y).
Remarks
See class description of PerlinNoise for more details.
See Also