| HeightFieldSamples Property |
Gets the height field.
Namespace: DigitalRune.Geometry.ShapesAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public float[] Samples { get; }
Public ReadOnly Property Samples As Single()
Get
public:
property array<float>^ Samples {
array<float>^ get ();
}
member Samples : float32[] with 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