| PerlinNoiseCompute Method (Double, Double, Double, Double, Int32, Int32, Int32, Int32) |
Computes a noise value for a 4D position given by (x, y, z, w).
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)
Syntax public static double Compute(
double x,
double y,
double z,
double w,
int periodX,
int periodY,
int periodZ,
int periodW
)
Public Shared Function Compute (
x As Double,
y As Double,
z As Double,
w As Double,
periodX As Integer,
periodY As Integer,
periodZ As Integer,
periodW As Integer
) As Double
public:
static double Compute(
double x,
double y,
double z,
double w,
int periodX,
int periodY,
int periodZ,
int periodW
)
static member Compute :
x : float *
y : float *
z : float *
w : float *
periodX : int *
periodY : int *
periodZ : int *
periodW : int -> float
Parameters
- x
- Type: SystemDouble
The x position. - y
- Type: SystemDouble
The y position. - z
- Type: SystemDouble
The z position. - w
- Type: SystemDouble
The w 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. - periodZ
- Type: SystemInt32
The period in z. Must be greater than 0. - periodW
- Type: SystemInt32
The period in w. Must be greater than 0.
Return Value
Type:
DoubleThe noise value for the given position (x, y, z, w).
Remarks See Also