ScaleToViewport scales a bounds rectangle (assumed to be in clip-space) into viewport space.
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. |
The scaled bound rectangle.