Point3D.Addition(Point3D, Vector3D) Operatör

Tanım

öğesine Vector3D bir Point3D yapı ekler ve sonucu bir Point3D yapı olarak döndürür.

C#
public static System.Windows.Media.Media3D.Point3D operator +(System.Windows.Media.Media3D.Point3D point, System.Windows.Media.Media3D.Vector3D vector);

Parametreler

point
Point3D

Eklenecek nokta.

vector
Vector3D

Eklenecek vektör.

Döndürülenler

Point3D ve vectortoplamını point oluşturan bir yapı.

Örnekler

Aşağıdaki örnekte bir Vector3D yapıya nasıl yapı Point3D ekleneceği gösterilmektedir.

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

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

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

// Displaying Results
syntaxString = "pointResult = point1 + vector1;";
resultType = "Point3D";
operationString = "Adding a 3D Point and a 3D Vector";
ShowResults(pointResult.ToString(), syntaxString, resultType, operationString);

Açıklamalar

Yapıya Point3D yapı eklemek Point3D yasaktır.

Şunlara uygulanır

Ürün Sürümler
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Ayrıca bkz.