love.graphics.inverseTransformPoint
Available since LÖVE 11.0
This function is not supported in earlier versions.
Converts the given 2D position from screen-space into global coordinates.
This effectively applies the reverse of the current graphics transformations to the given position. A similar Transform:inverseTransformPoint method exists for Transform objects.
Function
Synopsis
globalX, globalY = love.graphics.inverseTransformPoint( screenX, screenY )
Arguments
number screenX
- The x component of the screen-space position.
number screenY
- The y component of the screen-space position.
Returns
number globalX
- The x component of the position in global coordinates.
number globalY
- The y component of the position in global coordinates.
See Also
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.graphics.inverseTransformPoint