Returns a distance between two points in the specified units.


Namespace: AspMap.Web
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

Visual Basic (Declaration)
Public Function MeasureDistance( _ 
   ByVal point1 As Point,  _ 
   ByVal point2 As Point,  _ 
   ByVal toUnit As MeasureUnit _ 
) As Double
C#
public double MeasureDistance(
   Point point1,
   Point point2,
   MeasureUnit toUnit
)
C++
public:
 double MeasureDistance(
   Point point1,
   Point point2,
   MeasureUnit toUnit
) sealed 
J#
public double MeasureDistance(
   Point point1,
   Point point2,
   MeasureUnit toUnit
)
JScript
public  function MeasureDistance(
   point1 : Point,
   point2 : Point,
   toUnit : MeasureUnit
) : double

Parameters

point1
An object expression that evaluates to a Point object.
point2
An object expression that evaluates to a Point object.
toUnit
A MeasureUnit constant that indicates the type of destination units.

Remarks

The MapUnit property must be set to the proper map unit.

See Also