MCPcopy Create free account
hub / github.com/axmolengine/axmol / customEase

Function customEase

core/2d/TweenFunction.cpp:469–478  ·  view source on GitHub ↗

Custom Ease

Source from the content-addressed store, hash-verified

467
468// Custom Ease
469float customEase(float time, float* easingParam)
470{
471 if (easingParam)
472 {
473 float tt = 1 - time;
474 return easingParam[1] * tt * tt * tt + 3 * easingParam[3] * time * tt * tt +
475 3 * easingParam[5] * time * time * tt + easingParam[7] * time * time * time;
476 }
477 return time;
478}
479
480float easeIn(float time, float rate)
481{

Callers 1

tweenToFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected