This class contains a C# port of the easing equations created by Robert Penner (http://robertpenner.com/easing).
More...
List of all members.
Static Public Member Functions |
| static float | EaseIn (float time, float startValue, float changeValue, float duration, float unusedOvershootOrAmplitude, float unusedPeriod) |
| | Easing equation function for a quadratic (t^2) easing in: accelerating from zero velocity.
|
| static float | EaseOut (float time, float startValue, float changeValue, float duration, float unusedOvershootOrAmplitude, float unusedPeriod) |
| | Easing equation function for a quadratic (t^2) easing out: decelerating to zero velocity.
|
| static float | EaseInOut (float time, float startValue, float changeValue, float duration, float unusedOvershootOrAmplitude, float unusedPeriod) |
| | Easing equation function for a quadratic (t^2) easing in/out: acceleration until halfway, then deceleration.
|
Detailed Description
This class contains a C# port of the easing equations created by Robert Penner (http://robertpenner.com/easing).
Member Function Documentation
| static float EaseIn |
( |
float |
time, |
|
|
float |
startValue, |
|
|
float |
changeValue, |
|
|
float |
duration, |
|
|
float |
unusedOvershootOrAmplitude, |
|
|
float |
unusedPeriod |
|
) |
| [static] |
Easing equation function for a quadratic (t^2) easing in: accelerating from zero velocity.
- Parameters:
-
| time | Current time (in frames or seconds). |
| startValue | Starting value. |
| changeValue | Change needed in value. |
| duration | Expected easing duration (in frames or seconds). |
| unusedOvershootOrAmplitude | Unused: here to keep same delegate for all ease types. |
| unusedPeriod | Unused: here to keep same delegate for all ease types. |
- Returns:
- The eased value.
| static float EaseInOut |
( |
float |
time, |
|
|
float |
startValue, |
|
|
float |
changeValue, |
|
|
float |
duration, |
|
|
float |
unusedOvershootOrAmplitude, |
|
|
float |
unusedPeriod |
|
) |
| [static] |
Easing equation function for a quadratic (t^2) easing in/out: acceleration until halfway, then deceleration.
- Parameters:
-
| time | Current time (in frames or seconds). |
| startValue | Starting value. |
| changeValue | Change needed in value. |
| duration | Expected easing duration (in frames or seconds). |
| unusedOvershootOrAmplitude | Unused: here to keep same delegate for all ease types. |
| unusedPeriod | Unused: here to keep same delegate for all ease types. |
- Returns:
- The eased value.
| static float EaseOut |
( |
float |
time, |
|
|
float |
startValue, |
|
|
float |
changeValue, |
|
|
float |
duration, |
|
|
float |
unusedOvershootOrAmplitude, |
|
|
float |
unusedPeriod |
|
) |
| [static] |
Easing equation function for a quadratic (t^2) easing out: decelerating to zero velocity.
- Parameters:
-
| time | Current time (in frames or seconds). |
| startValue | Starting value. |
| changeValue | Change needed in value. |
| duration | Expected easing duration (in frames or seconds). |
| unusedOvershootOrAmplitude | Unused: here to keep same delegate for all ease types. |
| unusedPeriod | Unused: here to keep same delegate for all ease types. |
- Returns:
- The eased value.