Holoville.HOTween  1.2.010
Elastic 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)
 Easing equation function for an elastic (exponentially decaying sine wave) easing in: accelerating from zero velocity.
static float EaseIn (float time, float startValue, float changeValue, float duration, float amplitude, float period)
 Easing equation function for an elastic (exponentially decaying sine wave) easing in: accelerating from zero velocity.
static float EaseOut (float time, float startValue, float changeValue, float duration)
 Easing equation function for an elastic (exponentially decaying sine wave) easing out: decelerating from zero velocity.
static float EaseOut (float time, float startValue, float changeValue, float duration, float amplitude, float period)
 Easing equation function for an elastic (exponentially decaying sine wave) easing out: decelerating from zero velocity.
static float EaseInOut (float time, float startValue, float changeValue, float duration)
 Easing equation function for an elastic (exponentially decaying sine wave) easing in/out: acceleration until halfway, then deceleration.
static float EaseInOut (float time, float startValue, float changeValue, float duration, float amplitude, float period)
 Easing equation function for an elastic (exponentially decaying sine wave) 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 
) [static]

Easing equation function for an elastic (exponentially decaying sine wave) 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).
Returns:
The eased value.
static float EaseIn ( float  time,
float  startValue,
float  changeValue,
float  duration,
float  amplitude,
float  period 
) [static]

Easing equation function for an elastic (exponentially decaying sine wave) 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).
amplitudeAmplitude.
periodPeriod.
Returns:
The eased value.
static float EaseInOut ( float  time,
float  startValue,
float  changeValue,
float  duration 
) [static]

Easing equation function for an elastic (exponentially decaying sine wave) 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).
Returns:
The eased value.
static float EaseInOut ( float  time,
float  startValue,
float  changeValue,
float  duration,
float  amplitude,
float  period 
) [static]

Easing equation function for an elastic (exponentially decaying sine wave) 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).
amplitudeAmplitude.
periodPeriod.
Returns:
The eased value.
static float EaseOut ( float  time,
float  startValue,
float  changeValue,
float  duration 
) [static]

Easing equation function for an elastic (exponentially decaying sine wave) 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).
Returns:
The eased value.
static float EaseOut ( float  time,
float  startValue,
float  changeValue,
float  duration,
float  amplitude,
float  period 
) [static]

Easing equation function for an elastic (exponentially decaying sine wave) 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).
amplitudeAmplitude.
periodPeriod.
Returns:
The eased value.
 All Classes Namespaces Functions Variables Enumerations Properties