MathHelper.Max Method (Microsoft.Xna.Framework)

Returns the greater of two values.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public static float Max(
	float value1, 
	float value2
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

value1
Type: System.Single
Source value.
value2
Type: System.Single
Source value.

Return Value

Type: System.Single
The greater value.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web