Click or drag to resize
DigitalRuneHeightField Constructor (Single, Single, Single, Single, Single, Int32, Int32)
Initializes a new instance of the HeightField class from the given array.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public HeightField(
	float originX,
	float originZ,
	float widthX,
	float widthZ,
	float[] samples,
	int numberOfSamplesX,
	int numberOfSamplesZ
)

Parameters

originX
Type: SystemSingle
The origin along the x-axis.
originZ
Type: SystemSingle
The origin along the z-axis.
widthX
Type: SystemSingle
The width along the x-axis.
widthZ
Type: SystemSingle
The width along the z-axis.
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
ArgumentOutOfRangeExceptionwidthX is negative or 0.
ArgumentOutOfRangeExceptionwidthZ is negative or 0.
ArgumentNullExceptionsamples is .
ArgumentOutOfRangeExceptionnumberOfSamplesX or numberOfSamplesZ is less than 2.
ArgumentException The height samples array must contain at least numberOfSamplesX x numberOfSamplesZ elements.
See Also