[]
Clamps the specified value.
public static float Clamp(float value, float min, float max)
Public Shared Function Clamp(value As Single, min As Single, max As Single) As Single
| Type | Name | Description |
|---|---|---|
| float | value | The value. |
| float | min | The min. |
| float | max | The max. |
| Type | Description |
|---|---|
| float | The result of clamping a value between min and max |
Clamps the specified value.
public static int Clamp(int value, int min, int max)
Public Shared Function Clamp(value As Integer, min As Integer, max As Integer) As Integer
| Type | Name | Description |
|---|---|---|
| int | value | The value. |
| int | min | The min. |
| int | max | The max. |
| Type | Description |
|---|---|
| int | The result of clamping a value between min and max |