Difference between revisions of "love.graphics.inverseTransformPoint"
(Created page) |
m (0.11.0 -> 11.0) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{newin|[[ | + | {{newin|[[11.0]]|110|type=function}} |
Converts the given 2D position from screen-space into global coordinates. | 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. | + | This effectively applies the reverse of the current graphics transformations to the given position. A similar [[Transform:inverseTransformPoint]] method exists for [[Transform]] objects. |
== Function == | == Function == |
Latest revision as of 18:25, 7 May 2019
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
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info