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
)
Public Function GetNormal (
longitude As Double,
latitude As Double
) As UnitCartesian
public:
UnitCartesian GetNormal(
double longitude,
double latitude
)
member GetNormal :
longitude : float *
latitude : float -> UnitCartesian
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