Sdílet prostřednictvím


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)

Syntax

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

Parameters

  • value
    Source vector.
  • result
    [OutAttribute] Vector pointing in the opposite direction.

See Also

Reference

Vector2 Structure
Vector2 Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista