Vector::Addition Operator (Vector, Vector)

 

Adds two vectors and returns the result as a vector.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public:
static Vector operator +(
	Vector vector1,
	Vector vector2
)

Parameters

vector1
Type: System.Windows::Vector

The first vector to add.

vector2
Type: System.Windows::Vector

The second vector to add.

Return Value

Type: System.Windows::Vector

The sum of vector1 and vector2.

The following example shows how to use this operator (+) to add two Vector structures and return a Vector.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: