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

Function xSCurve

src/SB/Game/zEntCruiseBubble.cpp:3625–3633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3623}
3624
3625WEAK F32 xSCurve(float val)
3626{
3627 if (val <= 0.5f)
3628 {
3629 return (2.0f * val * val);
3630 }
3631 F32 a = (1.0f - val);
3632 return (1.0f - (2.0f * a * a));
3633}

Callers 2

updateMethod · 0.70
update_detach_cameraMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected