Vector::UnaryNegation Operator (Vector)

 

Negates the specified vector.

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

public:
static Vector operator -(
	Vector vector
)

Parameters

vector
Type: System.Windows::Vector

The vector to negate.

Return Value

Type: System.Windows::Vector

A vector with X and Y values opposite of the X and Y values of vector.

The following example shows how to use this negation operator to negate 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: