static float scaleY(int top, int height, float y);
scaleY is a helper function to scale a normalized clip-space Y value to viewport coordinates.
Parameters |
Description |
int top |
The top value of the viewport. |
int height |
The height of the viewport. |
float y |
The normalized clip-space value [-1.0...1.0] |
The viewport-space value.