Home > All Other Interfaces > IPosition > DistanceTo
Measures the distance between two coordinates.
JavaScript |
|
DistanceTo( Position) |
C# |
|
double DistanceTo( IPosition6 Position) |
C++ |
|
|
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.