# Vector3D.UnaryNegation(Vector3D) 연산자

## 정의

Vector3D 구조체를 부정합니다.Negates a Vector3D structure.

``````public:
static System::Windows::Media::Media3D::Vector3D operator -(System::Windows::Media::Media3D::Vector3D vector);``````
``public static System.Windows.Media.Media3D.Vector3D operator - (System.Windows.Media.Media3D.Vector3D vector);``
``static member ( ~- ) : System.Windows.Media.Media3D.Vector3D -> System.Windows.Media.Media3D.Vector3D``
``Public Shared Operator - (vector As Vector3D) As Vector3D``

#### 매개 변수

vector
Vector3D

부정할 Vector3D 구조체입니다.The Vector3D structure to negate.

#### 반환

`vector`Vector3D, XY 값에 반대인 Z, XY 값을 갖는 Z 구조체입니다.A Vector3D structure with X, Y, and Z values opposite of the X, Y, and Z values of `vector`.

## 예제

다음 예제에서는 부정 하는 오버 로드 된 부정 연산자를 사용 하는 방법을 보여 줍니다는 Vector3D 구조입니다.The following example shows how to use the overloaded negation operator to negate a Vector3D structure.

``````// Negates a Vector3D using the overloaded unary negation operator.

Vector3D vector1 = new Vector3D(20, 30, 40);
Vector3D vectorResult = new Vector3D();

vectorResult = -vector1;
// vectorResult is equal to (-20, -30, -40)
``````
``````' Negates a Vector3D using the overloaded unary negation operator.

Dim vector1 As New Vector3D(20, 30, 40)
Dim vectorResult As New Vector3D()

vectorResult = -vector1
' vectorResult is equal to (-20, -30, -40)
``````

## 설명

반환 된 Vector3D 구조에 동일한 크기 (Length)으로 `vector` 같지만 방향은 반대쪽의의 `vector`합니다.The returned Vector3D structure has the same magnitude (Length) as `vector` but its direction is opposite of that of `vector`.