Click or drag to resize

MathExClamp Method (Int32, Int32, Int32)

Clamps a value between a minimum and maximum value.

Namespace:  System
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static int Clamp(
	int value,
	int min,
	int max
)

Parameters

value
Type: SystemInt32
The value to clamp
min
Type: SystemInt32
The minimum value the parameter value can have
max
Type: SystemInt32
The maximum value the parameter value can have

Return Value

Type: Int32
The clamped value
See Also