Skip to main content

CCEaseMath

CCEaseMath

Cocos2D

Inheritance: System.Object

Methods

BackIn(float)

System.Single BackIn(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

BackInOut(float)

System.Single BackInOut(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

BackOut(float)

System.Single BackOut(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

BounceIn(float)

System.Single BounceIn(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

BounceInOut(float)

System.Single BounceInOut(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

BounceOut(float)

System.Single BounceOut(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

CubicIn(float)

System.Single CubicIn(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

CubicInOut(float)

System.Single CubicInOut(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

CubicOut(float)

System.Single CubicOut(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

ElasticIn(float)

System.Single ElasticIn(float)(System.Single time)

Elastic ease-in with default period (0.3).

Parameters:
time (System.Single)
Returns:
System.Single
Example

ElasticIn(float, float)

System.Single ElasticIn(float, float)(System.Single time, System.Single period)
Parameters:
time (System.Single)
period (System.Single)
Returns:
System.Single

ElasticInOut(float)

System.Single ElasticInOut(float)(System.Single time)

Elastic ease-in-out with default period (0.3), matching CCEaseElasticInOut.

Parameters:
time (System.Single)
Returns:
System.Single
Example

ElasticInOut(float, float)

System.Single ElasticInOut(float, float)(System.Single time, System.Single period)
Parameters:
time (System.Single)
period (System.Single)
Returns:
System.Single

ElasticOut(float)

System.Single ElasticOut(float)(System.Single time)

Elastic ease-out with default period (0.3).

Parameters:
time (System.Single)
Returns:
System.Single
Example

ElasticOut(float, float)

System.Single ElasticOut(float, float)(System.Single time, System.Single period)
Parameters:
time (System.Single)
period (System.Single)
Returns:
System.Single

ExpSmooth(float, float, float, float)

System.Single ExpSmooth(float, float, float, float)(System.Single current, System.Single target, System.Single smoothing, System.Single dt)

Exponential smoothing towards a target value. Frame-rate independent. Smoothing controls how much of the remaining distance is kept each second: lower values (e.g. 0.01) converge quickly, higher values (e.g. 0.99) converge slowly.

Parameters:
current (System.Single) - Current value.
target (System.Single) - Target value.
smoothing (System.Single) - Smoothing factor, clamped to (0, 1).
dt (System.Single) - Delta time in seconds (must be >= 0).
Returns:
System.Single
Example

ExponentialIn(float)

System.Single ExponentialIn(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

ExponentialInOut(float)

System.Single ExponentialInOut(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

ExponentialOut(float)

System.Single ExponentialOut(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

Lerp(float, float, float)

System.Single Lerp(float, float, float)(System.Single a, System.Single b, System.Single t)

Linearly interpolates between a and b by t. Delegates to MathHelper.Lerp.

Parameters:
a (System.Single)
b (System.Single)
t (System.Single)
Returns:
System.Single
Example

Linear(float)

System.Single Linear(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

QuadIn(float)

System.Single QuadIn(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

QuadInOut(float)

System.Single QuadInOut(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

QuadOut(float)

System.Single QuadOut(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

SineIn(float)

System.Single SineIn(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

SineInOut(float)

System.Single SineInOut(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single

SineOut(float)

System.Single SineOut(float)(System.Single time)
Parameters:
time (System.Single)
Returns:
System.Single