offsetR

fun offsetR(dX: Float, dY: Float, res: Rect)

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

The size of the rectangle is left unchanged.

Since

1.4

Parameters

dX

the horizontal offset

dY

the vertical offset

res

return location for the offset rectangle