GetDistance3D

This method calculates the actual aerial distance between two points in the 3D World, taking into account the horizontal and vertical distance difference between the points.

 

JavaScript

 

GetDistance3D(

       From,

       To)

 

C#

 

double GetDistance3D(

       IPosition65   From,

       IPosition65   To)

 

C++

 

HRESULT GetDistance3D(

       IPosition65 * From,

       IPosition65 * To,

       double * Dist )

Parameters

From

An IPosition65 representing the position of the first coordinate.

To

An IPosition65 representing the position of the second coordinate.

Return Value

Dist

The calculated distance between the two points.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.