diff options
Diffstat (limited to 'java/api/src/aurelienribon/tweenengine/TweenPath.java')
-rwxr-xr-x | java/api/src/aurelienribon/tweenengine/TweenPath.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/java/api/src/aurelienribon/tweenengine/TweenPath.java b/java/api/src/aurelienribon/tweenengine/TweenPath.java new file mode 100755 index 0000000..724741b --- /dev/null +++ b/java/api/src/aurelienribon/tweenengine/TweenPath.java @@ -0,0 +1,22 @@ +package aurelienribon.tweenengine; + +/** + * Base class for every paths. You can create your own paths and directly use + * them in the Tween engine by inheriting from this class. + * + * @author Aurelien Ribon | http://www.aurelienribon.com/ + */ +public interface TweenPath { + + /** + * Computes the next value of the interpolation, based on its waypoints and + * the current progress. + * + * @param t The progress of the interpolation, between 0 and 1. May be out + * of these bounds if the easing equation involves some kind of rebounds. + * @param points The waypoints of the tween, from start to target values. + * @param pointsCnt The number of valid points in the array. + * @return The next value of the interpolation. + */ + public float compute(float t, float[] points, int pointsCnt); +} |