Class QuaternionAnimationWorkAction
Work action involving a single float value.
Implements
Inherited Members
Namespace: Evergine.Components.WorkActions
Assembly: Evergine.Components.dll
Syntax
public class QuaternionAnimationWorkAction : UpdatableWorkAction, IWorkAction
Constructors
QuaternionAnimationWorkAction(Entity, Quaternion, Quaternion, TimeSpan, EaseFunction)
Initializes a new instance of the QuaternionAnimationWorkAction class.
Declaration
protected QuaternionAnimationWorkAction(Entity entity, Quaternion from, Quaternion to, TimeSpan time, EaseFunction ease)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity. |
Quaternion | from | Initial value. |
Quaternion | to | End value. |
TimeSpan | time | The duration of the animation. |
EaseFunction | ease | Easing function. |
QuaternionAnimationWorkAction(Entity, Quaternion, Quaternion, TimeSpan, EaseFunction, Action<Quaternion>)
Initializes a new instance of the QuaternionAnimationWorkAction class.
Declaration
public QuaternionAnimationWorkAction(Entity entity, Quaternion from, Quaternion to, TimeSpan time, EaseFunction ease, Action<Quaternion> updateAction)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity. |
Quaternion | from | Initial value. |
Quaternion | to | End value. |
TimeSpan | time | The duration of the animation. |
EaseFunction | ease | Easing function. |
Action<Quaternion> | updateAction | The action that needs to be updated. |
Fields
from
Initial value.
Declaration
protected Quaternion from
Field Value
Type | Description |
---|---|
Quaternion |
to
End value.
Declaration
protected Quaternion to
Field Value
Type | Description |
---|---|
Quaternion |
updateAction
The update action.
Declaration
protected Action<Quaternion> updateAction
Field Value
Type | Description |
---|---|
Action<Quaternion> |
Methods
BackInEase(float, Quaternion, Quaternion, float)
Back in ease function.
Declaration
public Quaternion BackInEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
BackInOutEase(float, Quaternion, Quaternion, float)
Back in and out ease function.
Declaration
public Quaternion BackInOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
BackOutEase(float, Quaternion, Quaternion, float)
Back out ease function.
Declaration
public Quaternion BackOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
BounceInEase(float, Quaternion, Quaternion, float)
Bounce in ease function.
Declaration
public Quaternion BounceInEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
BounceInOutEase(float, Quaternion, Quaternion, float)
Bounce in out ease function.
Declaration
public Quaternion BounceInOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
BounceOutEase(float, Quaternion, Quaternion, float)
Bounce out ease function.
Declaration
public Quaternion BounceOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
CircleInEase(float, Quaternion, Quaternion, float)
Circle in ease function.
Declaration
public Quaternion CircleInEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
CircleInOutEase(float, Quaternion, Quaternion, float)
Circle in and out ease function.
Declaration
public Quaternion CircleInOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
CircleOutEase(float, Quaternion, Quaternion, float)
Circle out ease function.
Declaration
public Quaternion CircleOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
CubicInEase(float, Quaternion, Quaternion, float)
Cubic in ease function.
Declaration
public Quaternion CubicInEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
CubicInOutEase(float, Quaternion, Quaternion, float)
Cubic in and out ease function.
Declaration
public Quaternion CubicInOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
CubitOutEase(float, Quaternion, Quaternion, float)
Cubic out ease function.
Declaration
public Quaternion CubitOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
DeltaFunction(EaseFunction, Quaternion, Quaternion, float, float)
Delta Function method.
Declaration
public Quaternion DeltaFunction(EaseFunction function, Quaternion from, Quaternion to, float time, float totalTime)
Parameters
Type | Name | Description |
---|---|---|
EaseFunction | function | Function. |
Quaternion | from | Start value. |
Quaternion | to | End value. |
float | time | Current time. |
float | totalTime | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
ElasticInEase(float, Quaternion, Quaternion, float)
Elastic in ease function.
Declaration
public Quaternion ElasticInEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
ElasticInOutEase(float, Quaternion, Quaternion, float)
Elastic in and out ease function.
Declaration
public Quaternion ElasticInOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
ElasticOutEase(float, Quaternion, Quaternion, float)
Elastic out ease function.
Declaration
public Quaternion ElasticOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
ExponentialInEase(float, Quaternion, Quaternion, float)
Exponential in-ease function.
Declaration
public Quaternion ExponentialInEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
ExponentialInOutEase(float, Quaternion, Quaternion, float)
Exponential in and out ease function.
Declaration
public Quaternion ExponentialInOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
ExponentialOutEase(float, Quaternion, Quaternion, float)
Exponential out ease function.
Declaration
public Quaternion ExponentialOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
LinearStep(float, Quaternion, Quaternion, float)
Smooth Step method.
Declaration
public Quaternion LinearStep(float time, Quaternion value1, Quaternion value2, float duration)
Parameters
Type | Name | Description |
---|---|---|
float | time | Time. |
Quaternion | value1 | Value1. |
Quaternion | value2 | Value2. |
float | duration | Duration. |
Returns
Type | Description |
---|---|
Quaternion | Quaternion. |
PerformCancel()
Cancels the work action.
Declaration
protected override void PerformCancel()
Overrides
PerformRun()
Runs.
Declaration
protected override void PerformRun()
Overrides
PerformSkip()
Notifies the skip.
Declaration
protected override bool PerformSkip()
Returns
Type | Description |
---|---|
bool | If the action is successfully skipped. |
Overrides
QuadraticInEase(float, Quaternion, Quaternion, float)
Quadratic in-ease function.
Declaration
public Quaternion QuadraticInEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
QuadraticInOutEase(float, Quaternion, Quaternion, float)
Quadratic in and out ease function.
Declaration
public Quaternion QuadraticInOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Starting value. |
Quaternion | c | Ending value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
QuadraticOutEase(float, Quaternion, Quaternion, float)
Quadratic out ease function.
Declaration
public Quaternion QuadraticOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
QuarticInEase(float, Quaternion, Quaternion, float)
Quartic in ease function.
Declaration
public Quaternion QuarticInEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
QuarticInOutEase(float, Quaternion, Quaternion, float)
Quartic in and out ease function.
Declaration
public Quaternion QuarticInOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
QuarticOutEase(float, Quaternion, Quaternion, float)
Quartic out ease function.
Declaration
public Quaternion QuarticOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
QuinticInEase(float, Quaternion, Quaternion, float)
Quintic in ease function.
Declaration
public Quaternion QuinticInEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
QuinticInOutEase(float, Quaternion, Quaternion, float)
Quintic in-out ease function.
Declaration
public Quaternion QuinticInOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
QuinticOutEase(float, Quaternion, Quaternion, float)
Quintic out ease function.
Declaration
public Quaternion QuinticOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
SineInEase(float, Quaternion, Quaternion, float)
Sine in ease function.
Declaration
public Quaternion SineInEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
SineInOutEase(float, Quaternion, Quaternion, float)
Sine in and out ease function.
Declaration
public Quaternion SineInOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
SineOutEase(float, Quaternion, Quaternion, float)
Sine out ease function.
Declaration
public Quaternion SineOutEase(float t, Quaternion b, Quaternion c, float d)
Parameters
Type | Name | Description |
---|---|---|
float | t | Current time. |
Quaternion | b | Start value. |
Quaternion | c | End value. |
float | d | Animation duration. |
Returns
Type | Description |
---|---|
Quaternion | Delta value. |
Update(TimeSpan)
Updates the single work action.
Declaration
public override void Update(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The elapsed game time. |