public abstract class AbstractTween extends java.lang.Object implements JmeCloneable, Tween
Modifier | Constructor and Description |
---|---|
protected |
AbstractTween(double length) |
Modifier and Type | Method and Description |
---|---|
void |
cloneFields(Cloner cloner,
java.lang.Object original)
Callback from
Cloner to convert this
shallow-cloned tween into a deep-cloned one, using the specified cloner
and original to resolve copied fields. |
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().
|
AbstractTween |
jmeClone()
Create a shallow clone for the JME cloner.
|
void |
setLength(double length) |
public double getLength()
Tween
public void setLength(double length)
public boolean interpolate(double t)
interpolate
in interface Tween
protected abstract void doInterpolate(double t)
public AbstractTween jmeClone()
jmeClone
in interface JmeCloneable
public void cloneFields(Cloner cloner, java.lang.Object original)
Cloner
to convert this
shallow-cloned tween into a deep-cloned one, using the specified cloner
and original to resolve copied fields.cloneFields
in interface JmeCloneable
cloner
- the cloner that's cloning this tween (not null)original
- the tween from which this tween was shallow-cloned
(unused)