Click or drag to resize

TerrainProviderGetNormal Method

Get the normal vector to the terrain surface at the specified location.

Namespace:  AGI.Foundation.Terrain
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public UnitCartesian GetNormal(
	double longitude,
	double latitude
)

Parameters

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.

Return Value

Type: UnitCartesian
The surface normal, if longitude and latitude are within BoundingExtent; otherwise Undefined.
See Also