Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Applies the reverse of the Transform object's transformation to the given 2D position.
This effectively converts the given position from the local coordinate space of the Transform into global coordinates.
One use of this method can be to convert a screen-space mouse position into global world coordinates, if the given Transform has transformations applied that are used for a camera system in-game.
globalX, globalY = Transform:inverseTransformPoint( localX, localY )
number localX
number localY
number globalX
number globalY