Home > Working with SGWorld > CoordServices (ICoordServices6) > GetDistance3D

GetDistance3D

This methods 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(

      IPosition6 From,

      IPosition6 To)

 

C++

 

HRESULT GetDistance3D(

      IPosition6From,

      IPosition6To,

      double * Dist )

Parameters

From

An IPosition6 representing the position of the first coordinate.

To

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