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

Divide() public static method

Divides the components of a vector by the components of another vector.
public static Divide ( Vector2 &value1, Vector2 &value2, Vector2 &result ) : void
value1 Vector2 Source vector.
value2 Vector2 The divisor.
result Vector2 [OutAttribute] The result of the division.
return void
        public static void Divide(ref Vector2 value1, ref Vector2 value2, out Vector2 result)
        {
            result.X = value1.X / value2.X;
            result.Y = value1.Y / value2.Y;
        }
        /// <summary>Divides a vector by a scalar value.</summary>

Same methods

Vector2::Divide ( Vector2 value1, Vector2 value2 ) : Vector2
Vector2::Divide ( Vector2 value1, float divider ) : Vector2
Vector2::Divide ( Vector2 &value1, float divider, Vector2 &result ) : void