CameraPath
The route CameraState.animateTo takes: the viewpoint a fraction t of the way from from to to. t runs from 0 to 1 as the timing plays and leaves that range while a spring overshoots. Write your own as a lambda, CameraPath { from, to, t -> … }.