AGI Real-Time Framework 11 Send comments on this topic.
CalculateDistance Method (IAgRtInternalCalculationEngine)
See Also 
Latitude1
Longitude1
Altitude1
Latitude2
Longitude2
Altitude2





Description

Calculate the straight line distance between the two provided coordinates.

Syntax

[Visual Basic .NET]
Public Function CalculateDistance( _
   ByVal Latitude1 As Double, _
   ByVal Longitude1 As Double, _
   ByVal Altitude1 As Double, _
   ByVal Latitude2 As Double, _
   ByVal Longitude2 As Double, _
   ByVal Altitude2 As Double _
) As Double

[C#]
public double CalculateDistance(
double Latitude1,
double Longitude1,
double Altitude1,
double Latitude2,
double Longitude2,
double Altitude2
);

[Managed C++]
public: double CalculateDistance(
double Latitude1,
double Longitude1,
double Altitude1,
double Latitude2,
double Longitude2,
double Altitude2
);

[Java]
public double calculateDistance(
double Latitude1,
double Longitude1,
double Altitude1,
double Latitude2,
double Longitude2,
double Altitude2
);

[Unmanaged C++]
public: HRESULT CalculateDistance(
double Latitude1,
double Longitude1,
double Altitude1,
double Latitude2,
double Longitude2,
double Altitude2,
double * ReturnValue
);

Parameters

Latitude1
Longitude1
Altitude1
Latitude2
Longitude2
Altitude2

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1