Viewport::ScaleToViewport

Viewport::ScaleToViewport
template < typename T > static RectF ScaleToViewport(T left, T top, T width, T height, RectF & bounds);
Description

ScaleToViewport scales a bounds rectangle (assumed to be in clip-space) into viewport space.

Parameters
Parameters 
Description 
T left 
The left side of the viewport rectangle. 
T top 
The top side of the viewport rectangle. 
T width 
The width of the viewport rectangle. 
T height 
The height of the viewport rectangle. 
RectF & bounds 
The bounding rectangle. 
Return Value

The scaled bound rectangle.