DME Component Libraries for .NET 2024 r2

## TerrainProviderGetGradient Method |

Get the interpolated gradient of height with respect to the terrain at the specified longitude and latitude relative to the provider's Shape. This method produces a vector representing the gradient of height in the ShapeFixedFrame.

Note: The direction for the gradient is defined for use as the outward facing surface normal direction. To obtain the directional derivative for the height (rate of change of height with respect to time), take the negative gradient and dot it with a unit vector along the desired azimuth (change in height with respect to distance), times the speed along that direction in meters/second.

The gradient, as defined above, is parallel to the upward facing terrain surface normal, but its magnitude indicates the rate of change in the height at that location.

Syntax

- longitude
- Type: SystemDouble

The longitude, in radians. Requesting a gradient for a longitude less than -π or greater than π will always return NaN. - latitude
- Type: SystemDouble

The latitude, in radians. Requesting a gradient for a latitude less than -π/2 or greater than π/2 will always return NaN.

The gradient vector in the ShapeFixedFrame at the given location, in meters of height per meters of surface distance.

See Also