scale


Description:

[ Version ( since = "1.10" ) ]
public Rect scale (float s_h, float s_v)

Scales the size and origin of a rectangle horizontaly by s_h, and vertically by s_v.

The result res is normalized.

Parameters:

this

a Rect

s_h

horizontal scale factor

s_v

vertical scale factor

res

return location for the scaled rectangle