IPosNav::RadiansToDegrees

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

Syntax

HRESULT RadiansToDegrees ( pPNPOSLLA pLLAPos );

Parameters

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

Return Values

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

Remarks

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

See Also

IPosNav::DegreesToRadians, PNPOSLLA