共用方式為


MathHelper.Min Method

Returns the lesser of two values.

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

Syntax

public static float Min (
         float value1,
         float value2
)

Parameters

  • value1
    Source value.
  • value2
    Source value.

Return Value

The lesser value.

See Also

Reference

MathHelper Class
MathHelper Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista