Sharpex2D.Math.Vector2.Max C# (CSharp) Method

Max() public static method

Returns the greater components of the two values.
public static Max ( Vector2 a, Vector2 b ) : Vector2
a Vector2 The first value.
b Vector2 The second value.
return Vector2
        public static Vector2 Max(Vector2 a, Vector2 b)
        {
            return new Vector2(
                MathHelper.Max(a.X, b.X),
                MathHelper.Max(a.Y, b.Y));
        }