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
value1 Vector2 Source vector.
value2 Vector2 Divisor vector.
return Vector2
        public static Vector2 Divide(Vector2 value1, Vector2 value2)
        {
            Vector2 result;
            result.X = value1.X / value2.X;
            result.Y = value1.Y / value2.Y;
            return result;
        }
        /// <summary>Divides the components of a vector by the components of another vector.</summary>

Same methods

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