screenToWorld

fun screenToWorld(position: ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>): ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>

Converts screen coordinates to world coordinates based on the camera's transformation.

Return

The corresponding world position as a pair of floats (x, y).

Parameters

position

The screen position as a pair of floats (x, y).


fun screenToWorld(x: Float, y: Float): ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>
fun screenToWorld(x: Int, y: Int): ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>

Converts screen coordinates to world coordinates based on the camera's transformation.

Return

The corresponding world position as a pair of floats (x, y).

Parameters

x

The X coordinate of the screen position

y

The Y coordinate of the screen position