{{newin|[[11.0]]|110|type=function}}
Converts the given 2D position from global coordinates into screen-space.

This effectively applies the current graphics transformations to the given position. A similar [[Transform:transformPoint]] method exists for [[Transform]] objects.

== Function ==
=== Synopsis ===
<source lang="lua">
screenX, screenY = love.graphics.transformPoint( globalX, globalY )
</source>
=== Arguments ===
{{param|number|globalX|The x component of the position in global coordinates.}}
{{param|number|globalY|The y component of the position in global coordinates.}}
=== Returns ===
{{param|number|screenX|The x component of the position with graphics transformations applied.}}
{{param|number|screenY|The y component of the position with graphics transformations applied.}}

== See Also ==
* [[parent::love.graphics]]
* [[love.graphics.inverseTransformPoint]]
* [[Transform]]
[[Category:Functions]]
{{#set:Description=Converts the given 2D position from global coordinates into screen-space.}}
{{#set:Sub-Category=Coordinate System}}
== Other Languages ==
{{i18n|love.graphics.transformPoint}}