The method returns the aerial distance between two given coordinates, taking into account the elevation difference.
Implemented only in ICoordSys3.
HRESULT GetDistanceEx(
[in] double X1,
[in] double Y1,
[in] double H1,
[in] double X2,
[in] double Y2,
[in] double H2,
[out, retval] double* Dist)
Parameters:
X1 – X coordinate of first point.
Y1 – Y coordinate of first point.
H1 – Elevation value relative to the terrain database vertical datum base ellipsoid (absolute height), of the first point.
X2 – X coordinate of second point.
Y2 – Y coordinate of second point.
H2 – Elevation value relative to the terrain database vertical datum base ellipsoid (absolute height) of the second point.
Dist – Returns the calculated distance in meters between the two points.
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. |