| TerrainRoadLayerClampRoadToTerrain Method |
Clamps a road path to the terrain height.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public static void ClampRoadToTerrain(
Path3F road,
HeightField terrain
)
Public Shared Sub ClampRoadToTerrain (
road As Path3F,
terrain As HeightField
)
public:
static void ClampRoadToTerrain(
Path3F^ road,
HeightField^ terrain
)
static member ClampRoadToTerrain :
road : Path3F *
terrain : HeightField -> unit
Parameters
- road
- Type: DigitalRune.Mathematics.InterpolationPath3F
The path that represents the road. - terrain
- Type: DigitalRune.Geometry.ShapesHeightField
The terrain represented by a HeightField.
Exceptions Remarks
The y position of each path key is set to the terrain height at the xz position.
See Also