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: 19.1.398.0 (19.1.398.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 -PI or greater than PI will always return NaN.
latitude
Type: SystemDouble
The latitude, in radians. Requesting a gradient for a latitude less than -PI/2 or greater than PI/2 will always return NaN.

Return Value

Type: UnitCartesian
If the longitude and latitude are within the BoundingExtent, this returns the surface normal. Otherwise, it returns Undefined.
See Also