Math: fix annotations

This commit is contained in:
Van
2026-01-14 17:04:28 +03:00
parent 3d0a906a59
commit e81e2141a6

View File

@@ -4,6 +4,7 @@ local math = math
---@param value number The value to be limited.
---@param min number Minimum limit.
---@param max number Maximum limit.
---@return number
math.clamp = function(value, min, max)
return math.min(math.max(value, min), max)
end
@@ -12,6 +13,7 @@ end
---@param a number Minimum value.
---@param b number Maximum value.
---@param t number Number in range [0, 1].
---@return number
math.lerp = function (a, b, t)
t = math.clamp(t, 0, 1)