MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / EaseInOut

Function EaseInOut

src/SB/Game/zCamera.cpp:198–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196} // namespace
197
198static F32 EaseInOut(F32 param)
199{
200 // using shorter symbols the return expression below reads:
201 // p (p (b - cp) + a) <=> ap + bp^2 - cp^3
202 // to which wolframalpha associates the geometric figure 'line'
203 return param * (param * (2.0f - 1.5f * param) + 0.5f);
204}
205
206static void zCameraConversUpdate(xCamera* cam, F32 dt)
207{

Callers 1

zCameraConversUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected