Viewport::scaleX

Viewport::scaleX
static float scaleX(int left, int width, float x);
Description

scaleX is a helper function to scale a normalized clip-space X value to viewport coordinates.

Parameters
Parameters 
Description 
int left 
The left value of the viewport. 
int width 
The width of the viewport. 
float x 
The normalized clip-space value [-1.0....1.0] 
Return Value

The viewport-space value.