ScreenToWorldX

Description

Converts a screen X coordinate into a world X coordinate based on the current view offset and zoom. When the SetViewOffset is 0,0 and the SetViewZoom is 1.0 world and screen coordinates are the same. For example when the view is offset by 20 pixels to the right, input at 0,0 on the screen will appear 20,0 in the world.

Definition

float ScreenToWorldX( x )

Parameters