Method Evaluate
Evaluate(float, int)
Evaluates the curve at a point in time.
Declaration
public float Evaluate(float t, int length)
Parameters
Type | Name | Description |
---|---|---|
float | t | The time to evaluate |
int | length | The number of keyframes in the curve |
Returns
Type | Description |
---|---|
float | The value of the curve at time |
Evaluate(float)
Evaluates the curve at a point in time.
Declaration
public float Evaluate(float t)
Parameters
Type | Name | Description |
---|---|---|
float | t | The time to evaluate |
Returns
Type | Description |
---|---|
float | The value of the curve at time |
Remarks
Calling the length getter on a curve is expensive to it's better to cache its length and call Evaluate(float, int) instead of getting the length for every call.