package wip
This commit is contained in:
16
math/docs/clamp.md
Normal file
16
math/docs/clamp.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# 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
|
||||
```
|
||||
Reference in New Issue
Block a user