DefaultDrawingModelInterpolator

Constructors

Link copied to clipboard
constructor()

Functions

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

Sets the initial and target DrawingModels.

Link copied to clipboard
open suspend override 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.