renamed limit to clamp

This commit is contained in:
Timon Ringwald 2022-08-21 20:08:34 +02:00
parent 4513bfcb6f
commit 82073f40ae

View File

@ -14,6 +14,6 @@ func Max[N Number](a, b N) N {
return b
}
func Limit[N Number](v, min, max N) N {
func Clamp[N Number](v, min, max N) N {
return Min(Max(v, min), max)
}