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 &result ) : void
value1 Vector2 Source vector.
value2 Vector2 Source vector.
result Vector2 [OutAttribute] The maximized vector.
return void
        public static void Max(ref Vector2 value1, ref Vector2 value2, out Vector2 result)
        {
            result.X = ((value1.X > value2.X) ? value1.X : value2.X);
            result.Y = ((value1.Y > value2.Y) ? value1.Y : value2.Y);
        }
        /// <summary>Restricts a value to be within a specified range.</summary>

Same methods

Vector2::Max ( Vector2 value1, Vector2 value2 ) : Vector2