Class AnimationCurveEvaluatorVector2
Evaluates the values of a curve.
Inheritance
AnimationCurveEvaluatorVector2
Inherited Members
Namespace: Evergine.Framework.Animation
Assembly: Evergine.Framework.dll
Syntax
public class AnimationCurveEvaluatorVector2 : AnimationCurveEvaluator<Vector2>
Methods
Add(ref Vector2, ref Vector2, ref Vector2)
Lerps the specified value.
Declaration
public override void Add(ref Vector2 value1, ref Vector2 value2, ref Vector2 result)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value1 | |
Vector2 | value2 | |
Vector2 | result | The result. |
Overrides
Add(ref Vector2, ref Vector2, float, ref Vector2)
Lerps the specified value.
Declaration
public override void Add(ref Vector2 value1, ref Vector2 value2, float amount, ref Vector2 result)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value1 | |
Vector2 | value2 | |
float | amount | The interpolation amount. |
Vector2 | result | The result. |
Overrides
Add(ref object, ref object, ref object)
Performs addition of two values.
Declaration
public override void Add(ref object a, ref object b, ref object r)
Parameters
Type | Name | Description |
---|---|---|
object | a | The first value. |
object | b | The second value. |
object | r |
Overrides
Add(ref object, ref object, float, ref object)
Adds the second value, multiplied by a specified amount, to the first value.
Declaration
public override void Add(ref object a, ref object b, float amount, ref object r)
Parameters
Type | Name | Description |
---|---|---|
object | a | The first value. |
object | b | The second value. |
float | amount | The interpolation amount. |
object | r |
Overrides
InverseValue(Vector2)
Insert a value.
Declaration
public override Vector2 InverseValue(Vector2 value)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value | The value. |
Returns
Type | Description |
---|---|
Vector2 | The inserted value. |
Overrides
InverseValue(object)
Insert a value.
Declaration
public override object InverseValue(object value)
Parameters
Type | Name | Description |
---|---|---|
object | value | The value. |
Returns
Type | Description |
---|---|
object | The inserted value. |
Overrides
Lerp(ref Vector2, ref Vector2, float, ref Vector2)
Lerps the specified value.
Declaration
public override void Lerp(ref Vector2 value1, ref Vector2 value2, float amount, ref Vector2 result)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value1 | |
Vector2 | value2 | |
float | amount | The interpolation amount. |
Vector2 | result | The interpolation result. |
Overrides
Lerp(ref object, ref object, float, ref object)
Lerps between the specified values.
Declaration
public override void Lerp(ref object a, ref object b, float amount, ref object r)
Parameters
Type | Name | Description |
---|---|---|
object | a | The first value. |
object | b | The second value. |
float | amount | The interpolation amount. |
object | r |
Overrides
ReadValue(BinaryReader, out Vector2)
Reads the value.
Declaration
public override void ReadValue(BinaryReader reader, out Vector2 value)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Vector2 | value | The read value. |
Overrides
WriteValue(ref Vector2, BinaryWriter)
Reads the value.
Declaration
public override void WriteValue(ref Vector2 value, BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value | The value. |
BinaryWriter | writer | The writer. |