Holoville.HOTween  1.2.010
Back Class Reference

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 overshoot, float unusedPeriod)
 Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in: accelerating from zero velocity.
static float EaseOut (float time, float startValue, float changeValue, float duration, float overshoot, float unusedPeriod)
 Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out: decelerating from zero velocity.
static float EaseInOut (float time, float startValue, float changeValue, float duration, float overshoot, float unusedPeriod)
 Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*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  overshoot,
float  unusedPeriod 
) [static]

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in: accelerating from zero velocity.

Parameters:
timeCurrent time (in frames or seconds).
startValueStarting value.
changeValueChange needed in value.
durationExpected easing duration (in frames or seconds).
overshootOvershoot ammount: higher means greater overshoot (0 produces cubic easing with no overshoot, and the default value of 1.70158 produces an overshoot of 10 percent).
unusedPeriodUnused: 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  overshoot,
float  unusedPeriod 
) [static]

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in/out: acceleration until halfway, then deceleration.

Parameters:
timeCurrent time (in frames or seconds).
startValueStarting value.
changeValueChange needed in value.
durationExpected easing duration (in frames or seconds).
overshootOvershoot ammount: higher means greater overshoot (0 produces cubic easing with no overshoot, and the default value of 1.70158 produces an overshoot of 10 percent).
unusedPeriodUnused: 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  overshoot,
float  unusedPeriod 
) [static]

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out: decelerating from zero velocity.

Parameters:
timeCurrent time (in frames or seconds).
startValueStarting value.
changeValueChange needed in value.
durationExpected easing duration (in frames or seconds).
overshootOvershoot ammount: higher means greater overshoot (0 produces cubic easing with no overshoot, and the default value of 1.70158 produces an overshoot of 10 percent).
unusedPeriodUnused: here to keep same delegate for all ease types.
Returns:
The eased value.
 All Classes Namespaces Functions Variables Enumerations Properties