If you use the following figure:
If you call the function using the following values:
Parameter
Value
uRatio
90
uDim
3
The following figure will result: