Vector::Subtraction Operator (Vector, Vector)

 

Subtracts one specified vector from another.

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

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

Parameters

vector1
Type: System.Windows::Vector

The vector from which vector2 is subtracted.

vector2
Type: System.Windows::Vector

The vector to subtract from vector1.

Return Value

Type: System.Windows::Vector

The difference between vector1 and vector2.

The following example shows how to use this operator (-) to subtract a Vector structure from a Vector structure.

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

.NET Framework
Available since 3.0
Return to top
Show: