GeometryOperationsExtensions.Distance 메서드
기하 도형의 거리를 확인합니다.
네임스페이스: System.Spatial
어셈블리: System.Spatial(System.Spatial.dll)
구문
‘선언
<ExtensionAttribute> _
Public Shared Function Distance ( _
operand1 As Geometry, _
operand2 As Geometry _
) As Nullable(Of Double)
‘사용 방법
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>
매개 변수
- operand1
유형: System.Spatial.Geometry
첫 번째 피연산자입니다.
- operand2
유형: System.Spatial.Geometry
두 번째 피연산자입니다.
반환 값
유형: System.Nullable<Double>
연산 결과입니다.
사용법 정보
Visual Basic 및 C#에서는 이 메서드를 Geometry 유형의 모든 개체에 대한 인스턴스 메서드로 호출할 수 있습니다. 인스턴스 메서드 구문을 사용하여 이 메서드를 호출하는 경우 첫 번째 매개 변수를 생략합니다. 자세한 내용은 https://msdn.microsoft.com/ko-kr/library/bb384936(v=vs.103) 또는 https://msdn.microsoft.com/ko-kr/library/bb383977(v=vs.103)을(를) 참조하십시오.