Preparing search index...
The search index is not available
Script API - v1.21.30
Script API - v1.21.30
@minecraft/math
clampNumber
Function clampNumber
clampNumber
(
val
:
number
,
min
:
number
,
max
:
number
)
:
number
Clamps the passed in number to the passed in min and max values.
Parameters
val
:
number
min
:
number
max
:
number
Returns
number
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Script API - v1.21.30
Loading...
Clamps the passed in number to the passed in min and max values.