Preparing search index...
The search index is not available
@minecraft/math
@minecraft/math
clampNumber
Function clampNumber
clamp
Number
(
val
,
min
,
max
)
:
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
Private
Inherited
External
World Mutation
Early Execution
Theme
OS
Light
Dark
@minecraft/math
Vector2
Builder
Vector2
Utils
Vector3
Builder
Vector3
Utils
VECTOR3_
BACK
VECTOR3_
DOWN
VECTOR3_
EAST
VECTOR3_
FORWARD
VECTOR3_
HALF
VECTOR3_
LEFT
VECTOR3_
NEGATIVE_
ONE
VECTOR3_
NORTH
VECTOR3_
ONE
VECTOR3_
RIGHT
VECTOR3_
SOUTH
VECTOR3_
UP
VECTOR3_
WEST
VECTOR3_
ZERO
clamp
Number
Clamps the passed in number to the passed in min and max values.