Click or drag to resize

MathExClamp Method (Double, Double, Double)

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 double Clamp(
	double value,
	double min,
	double max
)

Parameters

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

Return Value

Type: Double
The clamped value
See Also