Click or drag to resize
DigitalRuneHeightFieldSetSamples Method
Sets the array of height samples.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public void SetSamples(
	float[] samples,
	int numberOfSamplesX,
	int numberOfSamplesZ
)

Parameters

samples
Type: SystemSingle
The height samples (see Samples).
numberOfSamplesX
Type: SystemInt32
The number of samples along the x-axis. (Must be at least 2.)
numberOfSamplesZ
Type: SystemInt32
The number of samples along the z-axis. (Must be at least 2.)
Exceptions
ExceptionCondition
ArgumentNullExceptionsamples is .
ArgumentOutOfRangeExceptionnumberOfSamplesX or numberOfSamplesZ is less than 2.
ArgumentException The height samples array must contain at least numberOfSamplesX x numberOfSamplesZ elements.
See Also