public class Rotation extends Transformation<Rotation,ITransformable.Rotate>
| Modifier and Type | Field and Description |
|---|---|
protected float |
axisX
Axis for the rotation.
|
protected float |
axisY
Axis for the rotation.
|
protected float |
axisZ
Axis for the rotation.
|
protected float |
fromAngle
Starting angle.
|
protected float |
offsetX
Axis position.
|
protected float |
offsetY
Axis position.
|
protected float |
offsetZ
Axis position.
|
protected float |
toAngle
Target angle.
|
delay, duration, elapsedTimeCurrentLoop, LINEAR, loopResetDelay, loops, loopStartDelay, movement, reversed, SINUSOIDAL| Constructor and Description |
|---|
Rotation(float angle)
Instantiates a new
Rotation. |
Rotation(float fromAngle,
float toAngle)
Instantiates a new
Rotation. |
Rotation(float angle,
float axisX,
float axisY,
float axisZ)
Instantiates a new
Rotation. |
Rotation(float angle,
float axisX,
float axisY,
float axisZ,
float offsetX,
float offsetY,
float offsetZ)
Instantiates a new
Rotation. |
| Modifier and Type | Method and Description |
|---|---|
Rotation |
aroundAxis(float x,
float y,
float z)
Sets the axis for this
Rotation. |
protected void |
doTransform(ITransformable.Rotate transformable,
float comp)
Calculates the transformation.
|
Rotation |
from(float angle)
Sets the starting angle for this
Rotation. |
Rotation |
offset(float x,
float y,
float z)
Sets the axis position for this
Rotation. |
Rotation |
self()
Gets this
Rotation. |
Rotation |
to(float angle)
Sets the target angle for this
Rotation. |
completion, delay, forTicks, forTicks, getDelay, getDuration, getLoopDuration, getLoops, loop, loop, movement, reversed, totalDuration, transform, transformprotected float fromAngle
protected float toAngle
protected float axisX
protected float axisY
protected float axisZ
protected float offsetX
protected float offsetY
protected float offsetZ
public Rotation(float angle)
Rotation.angle - the anglepublic Rotation(float fromAngle,
float toAngle)
Rotation.fromAngle - the from angletoAngle - the to anglepublic Rotation(float angle,
float axisX,
float axisY,
float axisZ)
Rotation.angle - the angleaxisX - the axis xaxisY - the axis yaxisZ - the axis zpublic Rotation(float angle,
float axisX,
float axisY,
float axisZ,
float offsetX,
float offsetY,
float offsetZ)
Rotation.angle - the angleaxisX - the axis xaxisY - the axis yaxisZ - the axis zoffsetX - the offset xoffsetY - the offset yoffsetZ - the offset zpublic Rotation self()
Rotation.self in class Transformation<Rotation,ITransformable.Rotate>public Rotation from(float angle)
Rotation.angle - the anglepublic Rotation to(float angle)
Rotation.angle - the anglepublic Rotation aroundAxis(float x, float y, float z)
Rotation.x - the xy - the yz - the zpublic Rotation offset(float x, float y, float z)
Rotation.x - the xy - the yz - the zprotected void doTransform(ITransformable.Rotate transformable, float comp)
doTransform in class Transformation<Rotation,ITransformable.Rotate>transformable - the transformablecomp - the comp