TimingFunction
public protocol TimingFunction
Conforming types can be used to convert linear input time (0.0 -> 1.0
) to transformed output time (also 0.0 -> 1.0
).
-
Transforms the given time.
Parameters
x
The input time (ranges between 0.0 and 1.0).
epsilon
The required precision of the result (where
x * epsilon
is the maximum time segment to be evaluated).Return Value
The resulting output time.