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

Function cubicEaseInOut

core/2d/TweenFunction.cpp:237–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 return (time * time * time + 1);
236}
237float cubicEaseInOut(float time)
238{
239 time = time * 2;
240 if (time < 1)
241 return 0.5f * time * time * time;
242 time -= 2;
243 return 0.5f * (time * time * time + 2);
244}
245
246// Quart Ease
247float quartEaseIn(float time)

Callers 1

tweenToFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected