public abstract class AbstractTween extends java.lang.Object implements Tween
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTween(double length) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doInterpolate(double t) |
double |
getLength()
Returns the length of the tween.
|
boolean |
interpolate(double t)
Default implementation clamps the time value, converts
it to 0 to 1.0 based on getLength(), and calls doInterpolate().
|
public double getLength()
Tweenpublic boolean interpolate(double t)
interpolate in interface Tweenprotected abstract void doInterpolate(double t)