指示地理距离。
命名空间: System.Spatial
程序集: System.Spatial(在 System.Spatial.dll 中)
语法
声明
Public Overridable Function Distance ( _
operand1 As Geography, _
operand2 As Geography _
) As Double
用法
Dim instance As SpatialOperations
Dim operand1 As Geography
Dim operand2 As Geography
Dim returnValue As Double
returnValue = instance.Distance(operand1, _
operand2)
public virtual double Distance(
Geography operand1,
Geography operand2
)
public:
virtual double Distance(
Geography^ operand1,
Geography^ operand2
)
abstract Distance :
operand1:Geography *
operand2:Geography -> float
override Distance :
operand1:Geography *
operand2:Geography -> float
public function Distance(
operand1 : Geography,
operand2 : Geography
) : double
参数
- operand1
类型:System.Spatial.Geography
操作数 1。
- operand2
类型:System.Spatial.Geography
操作数 2。
返回值
类型:System.Double
操作结果。