Vector2.Negate Method (Vector2, Vector2)
Returns a vector pointing in the opposite direction.
Syntax
'Declaration
Public Shared Sub Negate ( _
ref value As Vector2, _
out result As Vector2 _
)
public static void Negate (
ref Vector2 value,
out Vector2 result
)
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.
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