Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Determina la distancia de la geometría.
Espacio de nombres: System.Spatial
Ensamblado: System.Spatial (en System.Spatial.dll)
Sintaxis
'Declaración
<ExtensionAttribute> _
Public Shared Function Distance ( _
operand1 As Geometry, _
operand2 As Geometry _
) As Nullable(Of Double)
'Uso
Dim operand1 As Geometry
Dim operand2 As Geometry
Dim returnValue As Nullable(Of Double)
returnValue = operand1.Distance(operand2)
public static Nullable<double> Distance(
this Geometry operand1,
Geometry operand2
)
[ExtensionAttribute]
public:
static Nullable<double> Distance(
Geometry^ operand1,
Geometry^ operand2
)
static member Distance :
operand1:Geometry *
operand2:Geometry -> Nullable<float>
public static function Distance(
operand1 : Geometry,
operand2 : Geometry
) : Nullable<double>
Parámetros
- operand1
Tipo: System.Spatial.Geometry
Primer operando.
- operand2
Tipo: System.Spatial.Geometry
Segundo operando.
Valor devuelto
Tipo: System.Nullable<Double>
Resultado de la operación.
Nota de uso
En Visual Basic y C#, puede llamar a este método como un método de instancia en cualquier objeto del tipo Geometry. Cuando utilice la sintaxis del método de instancia para llamar a este método, sáltese este parámetro primero. Para obtener más información, vea https://msdn.microsoft.com/es-es/library/bb384936(v=vs.103) o https://msdn.microsoft.com/es-es/library/bb383977(v=vs.103).