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(

       IPosition66   From,

       IPosition66   To)

 

C++

 

HRESULT GetDistance3D(

       IPosition66 * From,

       IPosition66 * To,

       double * Dist )

Parameters

From

An IPosition66 representing the position of the first coordinate.

To

An IPosition66 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.