Declaration
func Clamp(value Number, min Number, max Number) Number
go
Parameters
Input
Name | Type | Description |
---|---|---|
Value | Number | Target value |
Min | Number | Minimum value of the limited range |
Max | Number | Maximum value of the limited range |
Return
Type | Description |
---|---|
Number | Return value after restriction |