static float scaleX(int left, int width, float x);
scaleX is a helper function to scale a normalized clip-space X value to viewport coordinates.
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] |
The viewport-space value.