Viewport::scaleY

Viewport::scaleY
static float scaleY(int top, int height, float y);
Description

scaleY is a helper function to scale a normalized clip-space Y value to viewport coordinates.

Parameters
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] 
Return Value

The viewport-space value.