# Vector3D(Double, Double, Double)Vector3D(Double, Double, Double)Vector3D(Double, Double, Double)Vector3D(Double, Double, Double) Constructor

## 정의

Vector3D 구조체의 새 인스턴스를 초기화합니다.Initializes a new instance of a Vector3D structure.

``````public:
Vector3D(double x, double y, double z);``````
``public Vector3D (double x, double y, double z);``
``new System.Windows.Media.Media3D.Vector3D : double * double * double -> System.Windows.Media.Media3D.Vector3D``
``Public Sub New (x As Double, y As Double, z As Double)``

#### 매개 변수

x
Double Double Double Double

Vector3D 구조체의 X 값입니다.The new Vector3D structure's X value.

y
Double Double Double Double

Vector3D 구조체의 Y 값입니다.The new Vector3D structure's Y value.

z
Double Double Double Double

Vector3D 구조체의 Z 값입니다.The new Vector3D structure's Z value.

## 예제

``````// Translates a Point3D by a Vector3D using the overloaded + operator.
// Returns a Point3D.

Vector3D vector1 = new Vector3D(20, 30, 40);
Point3D point1 = new Point3D(10, 5, 1);
Point3D pointResult = new Point3D();

pointResult = point1 + vector1;
// vectorResult is equal to (30, 35, 41)

``````
``````' Translates a Point3D by a Vector3D using the overloaded + operator.
' Returns a Point3D.

Dim vector1 As New Vector3D(20, 30, 40)
Dim point1 As New Point3D(10, 5, 1)
Dim pointResult As New Point3D()

pointResult = point1 + vector1
' vectorResult is equal to (30, 35, 41)

``````