Returns a rectangle where the position and dimensions are scaled by the given factors. If scaleY is omitted, then the position and dimensions are scaled uniformly by scaleOrScaleX.
scaleY
scaleOrScaleX
The rectangle to scale.
The uniform scale factor, or the horizontal scale factor.
Optional
The vertical scale factor.
A scaled rectangle.
Returns a rectangle where the position and dimensions are scaled by the given factors. If
scaleYis omitted, then the position and dimensions are scaled uniformly byscaleOrScaleX.