MathHelper.Min Method

Returns the lesser of two values.

Syntax

'Declaration
Public Shared Function Min ( _
         value1 As Single, _
         value2 As Single _
) As Single 
public static float Min (
         float value1,
         float value2
)
public:
static float Min(
         float value1,
         float value2
)

Parameters

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

Return Value

Type: Single
The lesser value.

Requirements

Namespace: Microsoft.Xna.Framework

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

MathHelper Class
MathHelper Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone