CCEaseMath
CCEaseMath
Cocos2DInheritance: System.Object
Methods
BackIn(float)
System.Single BackIn(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleBackInOut(float)
System.Single BackInOut(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleBackOut(float)
System.Single BackOut(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleBounceIn(float)
System.Single BounceIn(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleBounceInOut(float)
System.Single BounceInOut(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleBounceOut(float)
System.Single BounceOut(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleCubicIn(float)
System.Single CubicIn(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleCubicInOut(float)
System.Single CubicInOut(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleCubicOut(float)
System.Single CubicOut(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleElasticIn(float)
System.Single ElasticIn(float)(System.Single time)Elastic ease-in with default period (0.3).
Parameters:
time (System.Single)Returns:
System.SingleExample
ElasticIn(float, float)
System.Single ElasticIn(float, float)(System.Single time, System.Single period)Parameters:
time (System.Single)period (System.Single)Returns:
System.SingleElasticInOut(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.SingleExample
ElasticInOut(float, float)
System.Single ElasticInOut(float, float)(System.Single time, System.Single period)Parameters:
time (System.Single)period (System.Single)Returns:
System.SingleElasticOut(float)
System.Single ElasticOut(float)(System.Single time)Elastic ease-out with default period (0.3).
Parameters:
time (System.Single)Returns:
System.SingleExample
ElasticOut(float, float)
System.Single ElasticOut(float, float)(System.Single time, System.Single period)Parameters:
time (System.Single)period (System.Single)Returns:
System.SingleExpSmooth(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.SingleExample
ExponentialIn(float)
System.Single ExponentialIn(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleExponentialInOut(float)
System.Single ExponentialInOut(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleExponentialOut(float)
System.Single ExponentialOut(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleLerp(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.SingleExample
Linear(float)
System.Single Linear(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleQuadIn(float)
System.Single QuadIn(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleQuadInOut(float)
System.Single QuadInOut(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleQuadOut(float)
System.Single QuadOut(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleSineIn(float)
System.Single SineIn(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleSineInOut(float)
System.Single SineInOut(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.SingleSineOut(float)
System.Single SineOut(float)(System.Single time)Parameters:
time (System.Single)Returns:
System.Single