public class Translation extends Transformation<Translation,ITransformable.Translate>
| Modifier and Type | Field and Description |
|---|---|
protected float |
fromX
The starting point of the translation.
|
protected float |
fromY
The starting point of the translation.
|
protected float |
fromZ
The starting point of the translation.
|
protected float |
toX
The to ending point of the translation.
|
protected float |
toY
The to ending point of the translation.
|
protected float |
toZ
The to ending point of the translation.
|
delay, duration, elapsedTimeCurrentLoop, LINEAR, loopResetDelay, loops, loopStartDelay, movement, reversed, SINUSOIDAL| Constructor and Description |
|---|
Translation(float x,
float y,
float z)
Instantiates a new
Translation. |
Translation(float fromX,
float fromY,
float fromZ,
float toX,
float toY,
float toZ)
Instantiates a new
Translation. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doTransform(ITransformable.Translate transformable,
float comp)
Calculates the transformation.
|
Translation |
from(float x,
float y,
float z)
Sets the starting point of this
Translation. |
Translation |
self()
Gets this
Translation |
Translation |
to(float x,
float y,
float z)
Sets the target point of the
Translation. |
completion, delay, forTicks, forTicks, getDelay, getDuration, getLoopDuration, getLoops, loop, loop, movement, reversed, totalDuration, transform, transformprotected float fromX
protected float fromY
protected float fromZ
protected float toX
protected float toY
protected float toZ
public Translation(float x,
float y,
float z)
Translation.x - the xy - the yz - the zpublic Translation(float fromX,
float fromY,
float fromZ,
float toX,
float toY,
float toZ)
Translation.fromX - the from xfromY - the from yfromZ - the from ztoX - the to xtoY - the to ytoZ - the to zpublic Translation self()
Translationself in class Transformation<Translation,ITransformable.Translate>public Translation from(float x, float y, float z)
Translation.x - the xy - the yz - the zpublic Translation to(float x, float y, float z)
Translation.x - the xy - the yz - the zprotected void doTransform(ITransformable.Translate transformable, float comp)
doTransform in class Transformation<Translation,ITransformable.Translate>transformable - the transformablecomp - the comp