UInt24.Clamp Method
Definition
Clamps a value to an inclusive minimum and maximum value.
public static UInt24 Clamp(UInt24 value, UInt24 min, UInt24 max);
Parameters
| Name | Type | Description |
|---|---|---|
| value | UInt24 | The value to clamp. |
| min | UInt24 | The inclusive minimum to which value should clamp. |
| max | UInt24 | The inclusive maximum to which value should clamp. |
Returns
The result of clamping value to the inclusive range of min and max.