Class AnimationCurve
A vector key.
Inherited Members
Namespace: Evergine.Framework.Animation
Assembly: Evergine.Framework.dll
Syntax
public abstract class AnimationCurve
Fields
Duration
The duration of the animation.
Declaration
public float Duration
Field Value
| Type | Description |
|---|---|
| float |
TimeKeySnap
Snap key when its time is in that range between the init and end of range.
Declaration
protected const double TimeKeySnap = 0.0010000000474974513
Field Value
| Type | Description |
|---|---|
| double |
Properties
DefaultValue
Gets or sets the default value.
Declaration
public abstract object DefaultValue { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
EvaluatedType
Gets the type that is evaluated.
Declaration
public abstract Type EvaluatedType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Evaluator
Gets the curve value evaluator.
Declaration
public abstract AnimationCurveEvaluator Evaluator { get; }
Property Value
| Type | Description |
|---|---|
| AnimationCurveEvaluator |
Methods
AddValue(ref object)
Substract value.
Declaration
public abstract void AddValue(ref object refValue)
Parameters
| Type | Name | Description |
|---|---|---|
| object | refValue | The ref value. |
Clone()
Clone the channel.
Declaration
public abstract AnimationCurve Clone()
Returns
| Type | Description |
|---|---|
| AnimationCurve | The cloned channel. |
GetKeysAtTime(float, out int, out int)
Get a position value.
Declaration
public abstract float GetKeysAtTime(float time, out int aKeyID, out int bKeyID)
Parameters
| Type | Name | Description |
|---|---|---|
| float | time | The time. |
| int | aKeyID | The A key index. |
| int | bKeyID | The B key index. |
Returns
| Type | Description |
|---|---|
| float | Parametric value indicating how far along the gap between the 2 keyframes the timeIndex value is, e.g. 0.0 for exactly at 1, 0.25 for a quarter etc. |
GetValue(float, ref object)
Get a value.
Declaration
public abstract void GetValue(float time, ref object result)
Parameters
| Type | Name | Description |
|---|---|---|
| float | time | The time. |
| object | result | The value at the specified time. |
SubChannel(float, float)
Return channel fragment.
Declaration
public abstract AnimationCurve SubChannel(float startTime, float endTime)
Parameters
| Type | Name | Description |
|---|---|---|
| float | startTime | The start time. |
| float | endTime | The end time. |
Returns
| Type | Description |
|---|---|
| AnimationCurve | The sub channel. |
TestFramerate(float)
Test if this curve follow the specified framerate.
Declaration
public abstract float TestFramerate(float framerate)
Parameters
| Type | Name | Description |
|---|---|---|
| float | framerate | The framerate. |
Returns
| Type | Description |
|---|---|
| float | The curve framerate. |
Write(BinaryWriter)
Write animation keyframe channel.
Declaration
public abstract void Write(BinaryWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryWriter | writer | The binary writer. |