diff options
author | sumneko <sumneko@hotmail.com> | 2022-02-08 11:55:55 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-02-08 11:55:55 +0800 |
commit | 12245cffd05136e0fb5da059df72a015a1bdb949 (patch) | |
tree | 115daf7a7ab68bf529090d2e7d60e22ffd9086d6 /meta/3rd/love2d/library/love.physics.lua | |
parent | 2a037712774572eeb7898ea4e838f08a5c4da2b2 (diff) | |
download | lua-language-server-12245cffd05136e0fb5da059df72a015a1bdb949.zip |
update docs
Diffstat (limited to 'meta/3rd/love2d/library/love.physics.lua')
-rw-r--r-- | meta/3rd/love2d/library/love.physics.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/3rd/love2d/library/love.physics.lua b/meta/3rd/love2d/library/love.physics.lua index 3b5b1c8a..dd1876f5 100644 --- a/meta/3rd/love2d/library/love.physics.lua +++ b/meta/3rd/love2d/library/love.physics.lua @@ -493,6 +493,19 @@ function Body:getLocalCenter() end function Body:getLocalPoint(worldX, worldY) end --- +---Transforms multiple points from world coordinates to local coordinates. +--- +---@param x1 number # (Argument) The x position of the first point. +---@param y1 number # (Argument) The y position of the first point. +---@param x2 number # (Argument) The x position of the second point. +---@param y2 number # (Argument) The y position of the second point. +---@return number x1 # (Result) The transformed x position of the first point. +---@return number y1 # (Result) The transformed y position of the first point. +---@return number x2 # (Result) The transformed x position of the second point. +---@return number y2 # (Result) The transformed y position of the second point. +function Body:getLocalPoints(x1, y1, x2, y2) end + +--- ---Transform a vector from world coordinates to local coordinates. --- ---@param worldX number # The vector x component in world coordinates. |