Returns the geodesic distance between two Points which have a geographic coordinate system, in linear units.

Namespace:  ESRI.ArcGISExplorer.Geometry

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public static double DistanceBetween(
	Point from,
	Point to,
	Unit linearUnit
)
Visual Basic (Declaration)
Public Shared Function DistanceBetween ( _
	from As Point, _
	to As Point, _
	linearUnit As Unit _
) As Double

Parameters

from
Type: ESRI.ArcGISExplorer.Geometry..::.Point

The Point to measure distance from.
to
Type: ESRI.ArcGISExplorer.Geometry..::.Point

The Point to measure distance to.
linearUnit
Type: ESRI.ArcGISExplorer.Geometry..::.Unit

The linear units of the returned measurement.

Return Value

The distance, in linearUnit, between from and to, measured geodesically.

Remarks

Geodesic measurements account for the curvature of the earths surface.

See Also