mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(math): math.interp return type should be T
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user