Open Rails

TerrainAltitudeFile.GetElevation Method

[This is preliminary documentation and subject to change.]

Returns the elevation at a specific sample point.

public ushort GetElevation(
   int x,
   int z
);

Parameters

x
X coordinate; starts at west side, increases easterly.
z
Z coordinate; starts at north side, increases southerly.

Return Value

Elevation relative to the tile's floor and scaled by resolution.

See Also

TerrainAltitudeFile Class | Orts.Formats.Msts Namespace