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

Max() public static method

Returns a vector that contains the highest value from each matching pair of components.
public static Max ( Vector2 value1, Vector2 value2 ) : Vector2
value1 Vector2 Source vector.
value2 Vector2 Source vector.
return Vector2
        public static Vector2 Max(Vector2 value1, Vector2 value2)
        {
            Vector2 result;
            result.X = ((value1.X > value2.X) ? value1.X : value2.X);
            result.Y = ((value1.Y > value2.Y) ? value1.Y : value2.Y);
            return result;
        }
        /// <summary>Returns a vector that contains the highest value from each matching pair of components.</summary>

Same methods

Vector2::Max ( Vector2 &value1, Vector2 &value2, Vector2 &result ) : void