Class QuaternionAnimationWorkAction
Work action of 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 time 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 time of the animation. |
EaseFunction | ease | Easing function. |
Action<Quaternion> | updateAction | The action when 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 of the.
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)
Cubit 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()
Ons the run.
Declaration
protected override void PerformRun()
Overrides
PerformSkip()
Notifies the skip.
Declaration
protected override bool PerformSkip()
Returns
Type | Description |
---|---|
bool | If the action is skipped successfully. |
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 | Start value. |
Quaternion | c | End 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 gameTime. |