| HeightField Constructor (Single, Single, Single, Single, Single, Int32, Int32) |
Initializes a new instance of the
HeightField class from the given array.
Namespace: DigitalRune.Geometry.ShapesAssembly: 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
)
Public Sub New (
originX As Single,
originZ As Single,
widthX As Single,
widthZ As Single,
samples As Single(),
numberOfSamplesX As Integer,
numberOfSamplesZ As Integer
)
public:
HeightField(
float originX,
float originZ,
float widthX,
float widthZ,
array<float>^ samples,
int numberOfSamplesX,
int numberOfSamplesZ
)
new :
originX : float32 *
originZ : float32 *
widthX : float32 *
widthZ : float32 *
samples : float32[] *
numberOfSamplesX : int *
numberOfSamplesZ : int -> HeightField
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 See Also