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