16 lines
328 B
Markdown
16 lines
328 B
Markdown
|
|
# math_Clamp
|
||
|
|
Clamps a number between a minimum and maximum value.
|
||
|
|
|
||
|
|
## Arguments
|
||
|
|
- number (double): The number to be clamped
|
||
|
|
- min (double): Minimum value
|
||
|
|
- max (double): Maximum value
|
||
|
|
|
||
|
|
## Returns
|
||
|
|
result (double): The number after being clamped
|
||
|
|
|
||
|
|
## Example
|
||
|
|
```python
|
||
|
|
call !math_Clamp 1.5 0.0 1.0 &result
|
||
|
|
println $result # 1.0
|
||
|
|
```
|