Interface Interpolator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      float interpolate​(float fraction)
      This function takes an input value between 0 and 1 and returns another value, also between 0 and 1.
    • Method Detail

      • interpolate

        float interpolate​(float fraction)
        This function takes an input value between 0 and 1 and returns another value, also between 0 and 1. The purpose of the function is to define how time (represented as a (0-1) fraction of the duration of an animation) is altered to derive different value calculations during an animation.
        Parameters:
        fraction - a value between 0 and 1, representing the elapsed fraction of a time interval (either an entire animation cycle or an interval between two KeyTimes, depending on where this Interpolator has been set)
        Returns:
        a value between 0 and 1. Values outside of this boundary may be clamped to the interval [0,1] and cause undefined results.