Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Do not allow to be below "min". (Intent clearer than using "Math.Max()".)

Namespace: Visual3D
Assembly: Visual3D (in Visual3D.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
public static int ClampMinimum(
	int val,
	int min
)
Public Shared Function ClampMinimum ( _
	val As Integer, _
	min As Integer _
) As Integer

Parameters

val
Int32
min
Int32

See Also