Home | History | Annotate | Download | only in tweenengine
      1 package aurelienribon.tweenengine;
      2 
      3 /**
      4  * Base class for every paths. You can create your own paths and directly use
      5  * them in the Tween engine by inheriting from this class.
      6  *
      7  * @author Aurelien Ribon | http://www.aurelienribon.com/
      8  */
      9 public interface TweenPath {
     10 
     11 	/**
     12 	 * Computes the next value of the interpolation, based on its waypoints and
     13 	 * the current progress.
     14 	 *
     15 	 * @param t The progress of the interpolation, between 0 and 1. May be out
     16 	 * of these bounds if the easing equation involves some kind of rebounds.
     17 	 * @param points The waypoints of the tween, from start to target values.
     18 	 * @param pointsCnt The number of valid points in the array.
     19 	 * @return The next value of the interpolation.
     20 	 */
     21 	public float compute(float t, float[] points, int pointsCnt);
     22 }
     23