Funzione statica
NanosMath.Clamp
Clamps a number
Non ancora tradotto
Sintassi
NanosMath.Clamp(value, min, max)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
value
|
number | — | The number to be clamped |
min
|
number | — | The min value |
max
|
number | — | The max value |
Valore restituito
- number the number clamped