MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / EaseInOutSine

Function EaseInOutSine

TombEngine/Math/Utils.cpp:81–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 float EaseInOutSine(float value0, float value1, float alpha)
82 {
83 alpha = std::clamp(alpha, 0.0f, 1.0f);
84 return Lerp(value0, value1, (1.0f - cos(alpha * PI)) / 2);
85 }
86
87 float EaseInOutSine(float alpha)
88 {

Callers 2

UpdateMethod · 0.85
ExtendMethod · 0.85

Calls 1

LerpFunction · 0.85

Tested by

no test coverage detected