DrawingModelInterpolator

Functions

Link copied to clipboard
abstract fun setModels(old: R?, new: R?)

Sets the initial and target DrawingModels.

Link copied to clipboard
abstract suspend fun transform(fraction: Float): R?

Interpolates the two DrawingModels. fraction is the balance between the initial and target DrawingModels, with 0 corresponding to the initial DrawingModel, and 1 corresponding to the target DrawingModel.