scale

fun scale(sH: Float, sV: Float, res: Rect)

Scales the size and origin of a rectangle horizontaly by @s_h, and vertically by @s_v. The result @res is normalized.

Since

1.10

Parameters

sH

horizontal scale factor

sV

vertical scale factor

res

return location for the scaled rectangle