Class AnimationCurveEvaluator<T>
Evaluates the values of a curve.
Inheritance
AnimationCurveEvaluator<T>
Inherited Members
Namespace: Evergine.Framework.Animation
Assembly: Evergine.Framework.dll
Syntax
public abstract class AnimationCurveEvaluator<T> : AnimationCurveEvaluator
Type Parameters
Name | Description |
---|---|
T | The curve value type. |
Properties
EvaluatedType
Gets the type that is being evaluated.
Declaration
public override Type EvaluatedType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Methods
Add(ref T, ref T, float, ref T)
Lerps the specified value.
Declaration
public abstract void Add(ref T a, ref T b, float amount, ref T result)
Parameters
Type | Name | Description |
---|---|---|
T | a | The first value. |
T | b | The second value. |
float | amount | The interpolation amount. |
T | result | The result. |
Add(ref T, ref T, ref T)
Lerps the specified value.
Declaration
public abstract void Add(ref T a, ref T b, ref T result)
Parameters
Type | Name | Description |
---|---|---|
T | a | The first value. |
T | b | The second value. |
T | result | The result. |
InverseValue(T)
Insert a value.
Declaration
public abstract T InverseValue(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value. |
Returns
Type | Description |
---|---|
T | The inserted value. |
Lerp(ref T, ref T, float, ref T)
Lerps the specified value.
Declaration
public abstract void Lerp(ref T a, ref T b, float amount, ref T result)
Parameters
Type | Name | Description |
---|---|---|
T | a | The first value. |
T | b | The second value. |
float | amount | The interpolation amount. |
T | result | The interpolation result. |
ReadValue(BinaryReader, out T)
Reads the value.
Declaration
public abstract void ReadValue(BinaryReader reader, out T value)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
T | value | The read value. |
WriteValue(ref T, BinaryWriter)
Reads the value.
Declaration
public abstract void WriteValue(ref T value, BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value. |
BinaryWriter | writer | The writer. |