ShopToolsUtilClamp(Single, Single, Single) Method
Clamp the supplied value within the allowed minimum and maximum values.
Namespace: ShopToolsAssembly: ShopTools (in ShopTools.exe) Version: 25.2429.4649
public static float Clamp(
float value,
float minimum = 0f,
float maximum = 1f
)
Public Shared Function Clamp (
value As Single,
Optional minimum As Single = 0F,
Optional maximum As Single = 1F
) As Single
No code example is currently available or this language may not be supported.
- value Single
-
The value to clamp.
- minimum Single (Optional)
-
The minimum allowable value.
- maximum Single (Optional)
-
The maximum allowable value.
Single
The caller's clamped value.