interpolated

Returns a copy of this rectangle interpolated to other rectangle by a factor.

Parameters

to

the rectangle to which this rectangle is interpolated.

by

the interpolation factor which is expected to be in the range of [0, 1].