Click or drag to resize
DigitalRuneHeightFieldSamples Property
Gets the height field.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public float[] Samples { get; }

Property Value

Type: Single
The height field. The default height field is 2 x 2 height field where the heights are 0.
Remarks

This 1-dimensional array contains the height samples of the rectangular height field. The array must contain at least NumberOfSamplesX * NumberSamplesZ elements. The elements are addressed like this: height(indexX, indexZ) = Samples[indexZ * NumberOfSamplesX + indexX].

Use SetSamples(Single, Int32, Int32) to change this property.

See Also