interpolate

fun interpolate(from: Circle, to: Circle, by: Float)

Sets this circle with the result of interpolation from one circle to another circle by a factor.

Parameters

from

the circle from which the interpolation starts.

to

the circle at which the interpolation ends.

by

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