Rect.scale

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

class Rect
void
scale
(
float sH
,
float sV
,
out Rect res
)

Parameters

sH float

horizontal scale factor

sV float

vertical scale factor

res Rect

return location for the scaled rectangle

Meta

Since

1.10