SpatialOperations.Distance 方法 (Geometry, Geometry)

指示几何距离。

命名空间:  System.Spatial
程序集:  System.Spatial(在 System.Spatial.dll 中)

语法

声明
Public Overridable Function Distance ( _
    operand1 As Geometry, _
    operand2 As Geometry _
) As Double
用法
Dim instance As SpatialOperations
Dim operand1 As Geometry
Dim operand2 As Geometry
Dim returnValue As Double

returnValue = instance.Distance(operand1, _
    operand2)
public virtual double Distance(
    Geometry operand1,
    Geometry operand2
)
public:
virtual double Distance(
    Geometry^ operand1, 
    Geometry^ operand2
)
abstract Distance : 
        operand1:Geometry * 
        operand2:Geometry -> float 
override Distance : 
        operand1:Geometry * 
        operand2:Geometry -> float 
public function Distance(
    operand1 : Geometry, 
    operand2 : Geometry
) : double

参数

返回值

类型:System.Double
操作结果。

请参阅

参考

SpatialOperations 类

Distance 重载

System.Spatial 命名空间