Skip to content

Commit

Permalink
fix(math): math.interp return type should be T
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed May 7, 2024
1 parent 858a94e commit ae005e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imports/math/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ end
---@param start T
---@param finish T
---@param factor integer The interpolation factor between 0 and 1.
---@return unknown
---@return T
function math.interp(start, finish, factor)
return start + (finish - start) * factor
end
Expand Down

0 comments on commit ae005e7

Please sign in to comment.