Combine with another interpolation of the same type
Combine with another interpolation of the same type
Note that this operation is not commutative. It has a left bias,
i.e. the combined interpolations are applied from left to right,
always modifying the left
argument.
Obtain an interpolation of type B
that varies a value of type A
“inside” it using the current interpolation
Obtain an interpolation of type B
that varies a value of type A
“inside” it using the current interpolation
Note that this operation is left-biased,
i.e. it applies the set
function of the lens to the left
argument.
Derive an interpolation for a List (that assumes lists of the same length)
Derive an interpolation for a ListMap
Derive an interpolation for a ListMap
This method will compare the keys in both maps and use Option[B]
for left
and right
arguments associated with each key,
based on whether the key is only in the left map (Some, None),
only in the right one (None, Some), or in both (Some, Some).
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.
Derive an interpolation for Option[A]
by providing a default
to use in place of a missing argument (i.e.
Derive an interpolation for Option[A]
by providing a default
to use in place of a missing argument (i.e. None)
Derive an interpolation for Option[A]
by providing a function to calculate
the missing argument (i.e.
Derive an interpolation for Option[A]
by providing a function to calculate
the missing argument (i.e. None) from the remaining one (i.e. Some)
Derive an interpolation for Option[A]
by providing semi-interpolations
for the remaining arguments when either left
or right
arguments are None
Obtain an interpolation of type B
that varies a value of type A
“inside” it using the current interpolation
Obtain an interpolation of type B
that varies a value of type A
“inside” it using the current interpolation
Note that this operation is left-biased,
i.e. it applies the set
function of the optional to the left
argument.
Sample the range between left
and right
using n
values
Derive an interpolation for a sequence (that assumes sequences of the same length)
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)
.
Derive a semi-interpolation by using a fixed left
argument
Derive a semi-interpolation by providing a function to calculate
the left
argument from the right
one
Derive a semi-interpolation by using a fixed right
argument
Derive a semi-interpolation by providing a function to calculate
the right
argument from the left
one
A trait for interpolating between two values of a certain type over time (from 0 to 1)