Lerp
A follower animation that linearly interpolates followers between towards the iterator. NOTE: It is required that when Lerp is run, the follower and iterator should be of the same functor type (say Circle and Circle). Otherwise, Monocurl does not know how to interpolate the fields. EXTRA NOTE: this is even the case if visually both the follower and iterator look like circles, but they come from different types (i.e. Monocurl does not how to interpolate a RegularPolygon with high n-value and a Circle. Likewise if type information is ever removed because you use an operation such as mesh_select, you cannot interpolate from a Circle to a pure-mesh, even if the pure-mesh originally came from a Circle. Again, this is because once type information is lost, Monocurl does not know which fields it should be interpolating.
Lerp is one of the most useful follower animations and at the core of Monocurl.
It is recommended you read the documentation for lerp to get an understaning of the exact rules of linear interpolation.
vars& | A variable tree of iterators that specify which variables the animation should be applied to. Scene variables such as background or camera are allowed |
time | the amount of seconds the lerp should take place over |
time | the amount of seconds the lerp should take place over |
unit_map(u) | Defaults to smooth(u). If provided, it is essentially a rate function that controls the timing of this animation. It receives normalized time from 0 to 1 and returns a normalized time from 0 to 1. |
An animation that, when executed, will lerp the corresponding followers from their initial follower state to the iterator state. After the animation, the followers are set to the values of the iterators.
func Lerp(vars&, [config] {[main] {time}, [parameterized] {time, unit_map(u)}})