This documentation is archived and is not being maintained.

Vector3D.op_Addition Method (Vector3D, Point3D)

Translates the specified Point3D structure by the specified Vector3D structure and returns the result as a Point3D structure.

Namespace: System.Windows.Media.Media3D
Assembly: PresentationCore (in presentationcore.dll)

public static Point3D operator + (
	Vector3D vector,
	Point3D point
You cannot use methods in XAML.



The Vector3D structure used to translate the specified Point3D structure.


The Point3D structure to be translated.

Return Value

Returns the result of translating point by vector.

The following example shows how to use the overloaded addition operator to translate a Point3D structure by a Vector3D structure.

// 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)

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0