Obtain a semi-interpolation of type B
that varies a value of type A
“inside” it using the current semi-interpolation
Map the time interval with the given function
Map the time interval with the given function
For example, the function (_ * 2) will make the interpolation twice faster, and it will happen in the first half of the full time interval.
Obtain a semi-interpolation of type B
that varies a value of type A
“inside” it using the current semi-interpolation
Make the interpolation happen in the given timespan, instead of [0; 1]
Make the interpolation happen in the given timespan, instead of [0; 1]
This is essentially a more convenient alternative to mapTime
.
For example, timespan(0, 1.0/2)
is equivalent to mapTime(_ * 2)
.
Semi-interpolation varies a single value over time. It can be seen as an Interpolation with one end fixed (left or right).