From 82073f40ae2b56eb648e9ba84c3eae3358fc7d77 Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Sun, 21 Aug 2022 20:08:34 +0200 Subject: [PATCH] renamed limit to clamp --- limits.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/limits.go b/limits.go index cd11839..00d5955 100644 --- a/limits.go +++ b/limits.go @@ -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) }