diff options
author | sumneko <sumneko@hotmail.com> | 2022-02-08 21:57:56 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-02-08 21:57:56 +0800 |
commit | 007e8637827b75d95f188df0f1c3173cabc53a8b (patch) | |
tree | 69fd9f98ba75099b97080c95001f3d6452de49d3 /meta/3rd/love2d/library/love.math.lua | |
parent | ee476c7f4fb29ab6cf6e77205745428c0e2a8601 (diff) | |
download | lua-language-server-007e8637827b75d95f188df0f1c3173cabc53a8b.zip |
fix #941
Diffstat (limited to 'meta/3rd/love2d/library/love.math.lua')
-rw-r--r-- | meta/3rd/love2d/library/love.math.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/3rd/love2d/library/love.math.lua b/meta/3rd/love2d/library/love.math.lua index 14689c86..a2510a2f 100644 --- a/meta/3rd/love2d/library/love.math.lua +++ b/meta/3rd/love2d/library/love.math.lua @@ -341,8 +341,8 @@ function RandomGenerator:getState() end --- ---Generates a pseudo-random number in a platform independent manner. --- ----@overload fun(max: number):number ----@overload fun(min: number, max: number):number +---@overload fun(self: love.RandomGenerator, max: number):number +---@overload fun(self: love.RandomGenerator, min: number, max: number):number ---@return number number # The pseudo-random number. function RandomGenerator:random() end @@ -357,7 +357,7 @@ function RandomGenerator:randomNormal(stddev, mean) end --- ---Sets the seed of the random number generator using the specified integer number. --- ----@overload fun(low: number, high: number) +---@overload fun(self: love.RandomGenerator, low: number, high: number) ---@param seed number # The integer number with which you want to seed the randomization. Must be within the range of 2^53. function RandomGenerator:setSeed(seed) end @@ -449,9 +449,9 @@ function Transform:scale(sx, sy) end --- ---Directly sets the Transform's internal 4x4 transformation matrix. --- ----@overload fun(layout: love.MatrixLayout, e1_1: number, e1_2: number, ..., e4_4: number):love.Transform ----@overload fun(layout: love.MatrixLayout, matrix: table):love.Transform ----@overload fun(layout: love.MatrixLayout, matrix: table):love.Transform +---@overload fun(self: love.Transform, layout: love.MatrixLayout, e1_1: number, e1_2: number, ..., e4_4: number):love.Transform +---@overload fun(self: love.Transform, layout: love.MatrixLayout, matrix: table):love.Transform +---@overload fun(self: love.Transform, layout: love.MatrixLayout, matrix: table):love.Transform ---@param e1_1 number # The first column of the first row of the matrix. ---@param e1_2 number # The second column of the first row of the matrix. ---@param e4_4 number # The fourth column of the fourth row of the matrix. |