GetDistance

The method returns the horizontal distance between two given coordinates.

 

HRESULT GetDistance(

 [in] double X1,

 [in] double Y1,

 [in] double X2,

 [in] double Y2,

 [out, retval] double* Dist)

Parameters:

Return Values:

The return value obtained from the returned HRESULT can be one of the following:

 

Return value

Meaning

S_OK

Success.

TE_E_INTERNAL

TerraExplorer internal error.