interpolate

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

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

Parameters

from

the annulus from which the interpolation starts.

to

the annulus at which the interpolation ends.

by

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