IPosNav::DegreesToRadians

This method converts latitude and longitude data from degrees to radians.

Syntax

HRESULT DegreesToRadians ( pPNPOSLLA pLLAPos );

Parameters

pLLAPos
Pointer to a PNPOSLLA structure that contains the latitude, longitude, and altitude data. The structure is returned with the same position in radians.

Return Values

S_OK indicates success. E_INVALIDARG indicates that one or more arguments are invalid.

Remarks

If the PNPOSLLA structure contains a latitude and a longitude expressed in degrees, as indicated by a FALSE value for the PNSOLLA fRadians parameter, this method converts those values to radians by multiplying those values by pi/180. This method converts those values in place, so that the PNSOLLA structure contains latitude and longitude values expressed in radians after this method returns.

See Also

IPosNav::RadiansToDegrees, PNPOSLLA