offset_r


Description:

[ Version ( since = "1.4" ) ]
public Rect offset_r (float d_x, float d_y)

Offsets the origin of the given rectangle by d_x and d_y.

The size of the rectangle is left unchanged.

Parameters:

this

a Rect

d_x

the horizontal offset

d_y

the vertical offset

res

return location for the offset rectangle