worldToScreen

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

Converts world coordinates to screen 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 worldToScreen(x: Float, y: Float): ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>
fun worldToScreen(x: Int, y: Int): ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>

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

Return

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

Parameters

x

The X coordinate of the world position.

y

The Y coordinate of the world position.