MathHelperClamp Method (Single, Single, Single) |
Restricts a value to be within a specified range.
Namespace: Ozeki.CommonAssembly: OzekiSDK (in OzekiSDK.dll) Version: 1.8.12.0 (1.8.12)
Syntax public static float Clamp(
float value,
float minValue,
float maxValue
)
Public Shared Function Clamp (
value As Single,
minValue As Single,
maxValue As Single
) As Single
public:
static float Clamp(
float value,
float minValue,
float maxValue
)
static member Clamp :
value : float32 *
minValue : float32 *
maxValue : float32 -> float32
Parameters
- value
- Type: SystemSingle
The value to clamp. - minValue
- Type: SystemSingle
The minimum value. If the value is less than minValue the minValue will be used. - maxValue
- Type: SystemSingle
The minimum value. If the value is greater than maxValue the maxValue will be used.
Return Value
Type:
SingleSee Also