Microsoft.Xna.Framework.Vector2.Subtract C# (CSharp) Method

Subtract() public static method

Subtracts a vector from a vector.
public static Subtract ( Vector2 &value1, Vector2 &value2, Vector2 &result ) : void
value1 Vector2 Source vector.
value2 Vector2 Source vector.
result Vector2 [OutAttribute] The result of the subtraction.
return void
        public static void Subtract(ref Vector2 value1, ref Vector2 value2, out Vector2 result)
        {
            result.X = value1.X - value2.X;
            result.Y = value1.Y - value2.Y;
        }
        /// <summary>Multiplies the components of two vectors by each other.</summary>

Same methods

Vector2::Subtract ( Vector2 value1, Vector2 value2 ) : Vector2