Description
Computes the distance between two points on
the surface of the central body. Distance is measured along a great
arc path.
Syntax
[Visual Basic .NET] |
Public Function ComputeSurfaceDistance( _
ByVal StartLat As System.Object, _
ByVal StartLon As System.Object, _
ByVal EndLat As System.Object, _
ByVal EndLon As System.Object _
) As Double
|
Parameters
Example
Computes the distance
between two locations.
[C#] |
Copy Code
|
IAgStkCentralBodyEllipsoid centralBodyEllipsoid = root.CentralBodies["Earth"].Ellipsoid;
double distance = centralBodyEllipsoid.ComputeSurfaceDistance(40.0068, -75.1347, 51.4879, -0.1780);
Console.WriteLine("The distance between Philadelphia and London is: {0}", distance);
|
|
Computes the distance
between two locations.
[Visual Basic .NET] |
Copy Code
|
Dim centralBodyEllipsoid As IAgStkCentralBodyEllipsoid =
root.CentralBodies("Earth").Ellipsoid
Dim distance As Double =
centralBodyEllipsoid.ComputeSurfaceDistance(40.0068, -75.1347,
51.4879, -0.178)
Console.WriteLine("The distance between
Philadelphia and London is: {0}", distance)
|
|
See Also