Click or drag to resize
DigitalRuneHeightField Constructor (Single, Single, Single)

Note: This API is now obsolete.

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
[ObsoleteAttribute("Setting the height field with a 2-dimensional array is obsolete. Use a 1-dimensional array instead.")]
public HeightField(
	float widthX,
	float widthZ,
	float[,] array
)

Parameters

widthX
Type: SystemSingle
The width along the x-axis.
widthZ
Type: SystemSingle
The width along the z-axis.
array
Type: SystemSingle
The array.
Exceptions
ExceptionCondition
ArgumentNullExceptionarray is .
ArgumentExceptionarray contains less than 2 x 2 elements.
ArgumentOutOfRangeExceptionwidthX is negative or 0.
ArgumentOutOfRangeExceptionwidthZ is negative or 0.
See Also