Interface AnimationFunction<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long duration()
      Returns the length of this function's valid time interval.
      T valueAt​(long time)
      Returns the function value at a given time in the valid time interval.
    • Method Detail

      • duration

        long duration()
        Returns the length of this function's valid time interval.
        Returns:
        the length of this function's valid time interval
      • valueAt

        T valueAt​(long time)
        Returns the function value at a given time in the valid time interval. The value is undefined for times outside this function's time interval. An implementation may throw an exception, if this method called with a time outside the time interval.
        Parameters:
        time - the time used to determine the animation effect
        Returns:
        the function value at the given time