# WorldToScreenX

## Description

Converts a world X coordinate into a screen 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, an object at 0,0 in the world will appear at -20 (off screen) to the left.

## Definition

float WorldToScreenX( x )

float agk::WorldToScreenX( float x )

## Parameters

- x - The world X coordinate to convert.