Add some scratch bits of code that may one day be useful.
This commit is contained in:
parent
a6fe8839cd
commit
cea195a85b
2 changed files with 24 additions and 0 deletions
9
scratch/math.ks
Normal file
9
scratch/math.ks
Normal file
|
@ -0,0 +1,9 @@
|
|||
@lazyglobal off.
|
||||
|
||||
function Bound {
|
||||
parameter minB.
|
||||
parameter maxB.
|
||||
parameter value.
|
||||
|
||||
return min(max(value, minB), maxB).
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue