interpolated

open override fun interpolated(to: Square, by: Float): MutableSquare

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

Parameters

to

the square to which this square is interpolated.

by

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