Home > All Other Interfaces > IPosition > DistanceTo

DistanceTo

Measures the distance between two coordinates.

 

JavaScript

 

DistanceTo(

      Position)

 

C#

 

double DistanceTo(

      IPosition6 Position)

 

C++

 

HRESULT DistanceTo(

      IPosition6* Position,

      double* pVal)

 

Parameters

Position

An IPosition6 representing the coordinate whose distance from the caller’s coordinates is being measured.

Return Value

pVal

The distance between the two coordinates.

Exceptions

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