Vector2.Negate Method (Vector2, Vector2)

Returns a vector pointing in the opposite direction.

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

public static void Negate (
         ref Vector2 value,
         out Vector2 result
)

Parameters

value
Type: Vector2
Source vector.
result
Type: Vector2
[OutAttribute] Vector pointing in the opposite direction.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions

ADD
Show: