public class Scale extends Transformation<Scale,ITransformable.Scale>
| Modifier and Type | Field and Description |
|---|---|
protected float |
fromX
Starting scale.
|
protected float |
fromY
Starting scale.
|
protected float |
fromZ
Starting scale.
|
protected float |
offsetX
Scaling offset.
|
protected float |
offsetY
Scaling offset.
|
protected float |
offsetZ
Scaling offset.
|
protected float |
toX
Target scale.
|
protected float |
toY
Target scale.
|
protected float |
toZ
Target scale.
|
delay, duration, elapsedTimeCurrentLoop, LINEAR, loopResetDelay, loops, loopStartDelay, movement, reversed, SINUSOIDAL| Constructor and Description |
|---|
Scale()
Instantiates a new
Scale. |
Scale(float x,
float y,
float z)
Instantiates a new
Scale. |
Scale(float fromX,
float fromY,
float fromZ,
float toX,
float toY,
float toZ)
Instantiates a new
Scale. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doTransform(ITransformable.Scale transformable,
float comp)
Calculate the transformation.
|
protected Scale |
from(float x,
float y,
float z)
Sets the starting scale.
|
Scale |
offset(float x,
float y,
float z)
Sets the offset for the scaling.
|
Scale |
self()
Gets this
Scale. |
protected Scale |
to(float x,
float y,
float z)
Sets the target scale.
|
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
protected float offsetX
protected float offsetY
protected float offsetZ
public Scale()
Scale.public Scale(float x,
float y,
float z)
Scale.x - the xy - the yz - the zpublic Scale(float fromX,
float fromY,
float fromZ,
float toX,
float toY,
float toZ)
Scale.fromX - the from xfromY - the from yfromZ - the from ztoX - the to xtoY - the to ytoZ - the to zpublic Scale self()
Scale.self in class Transformation<Scale,ITransformable.Scale>protected Scale from(float x, float y, float z)
x - the xy - the yz - the zprotected Scale to(float x, float y, float z)
x - the xy - the yz - the zpublic Scale offset(float x, float y, float z)
x - the xy - the yz - the zprotected void doTransform(ITransformable.Scale transformable, float comp)
doTransform in class Transformation<Scale,ITransformable.Scale>transformable - the transformablecomp - the comp