Sdílet prostřednictvím


Vector2.op_UnaryNegation Method

Returns a vector pointing in the opposite direction.

Syntax

'Declaration
Public Shared Function op_UnaryNegation ( _
         value As Vector2 _
) As Vector2 
public static Vector2 op_UnaryNegation (
         Vector2 value
)
public:
static Vector2 op_UnaryNegation(
         Vector2 value
)

Parameters

  • value
    Type: Vector2
    Source vector.

Return Value

Type: Vector2
Vector pointing in the opposite direction.

Requirements

Namespace: Microsoft.Xna.Framework

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

Vector2 Structure
Vector2 Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone