[]
Clamps the specified value.
public static float Clamp(float value, float min, float max)
| 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)
| 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 |