Sdílet prostřednictvím


Vector2.Negate Method (Vector2)

Returns a vector pointing in the opposite direction.

Syntax

'Declaration
Public Shared Function Negate ( _
         value As Vector2 _
) As Vector2 
public static Vector2 Negate (
         Vector2 value
)
public:
static Vector2 Negate(
         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