Class Vector4Animation
Defines an animation that blends between two 4D vectors.
Inherited Members
Namespace: Ritchie.Toolbox.Animation
Assembly: Ritchie.Toolbox.dll
Syntax
public sealed class Vector4Animation : Animation<Vector4>, IAnimation, IAnimationHandle
Constructors
Vector4Animation(CurveFunction, float, Vector4, Vector4, Action<Vector4>)
Defines an animation that blends between two 4D vectors.
Declaration
public Vector4Animation(CurveFunction curveFunction, float duration, Vector4 from, Vector4 to, Action<Vector4> callback)
Parameters
Type | Name | Description |
---|---|---|
CurveFunction | curveFunction | The curve function to use for the animation. |
float | duration | The length, in seconds, of the animation. |
Vector4 | from | The value to start from. |
Vector4 | to | The value to blend toward. |
Action<Vector4> | callback | A callback to execute on each animation step. |