wManager.Wow.Helpers Namespace
WRobot

Math..::..Clamp Method

Returns value clamped to the inclusive range of min and max.

Namespace:  robotManager.Helpful
Assembly:  robotManager (in robotManager.dll)

Syntax


public static float Clamp(
	float f,
	float Min,
	float Max
)
Public Shared Function Clamp ( _
	f As Single, _
	Min As Single, _
	Max As Single _
) As Single
public:
static float^ Clamp(
	float^ f, 
	float^ Min, 
	float^ Max
)

Parameters

f
Type: Single
The value.
Min
Type: Single
Determines the minimum value.
Max
Type: Single
Determines the maximum value.

Return Value

value clamped.