plus

operator fun plus(offset: IntOffset): FloatRect(source)

Returns a translated rectangle using floating-point coordinate arithmetic.

The receiver and offset remain unchanged and can be shared between threads.

Return

a new rectangle with the displacement added to every edge.

Parameters

offset

the integer displacement in the same coordinate space.

Throws

when the translated edges or extents are non-finite.