SaturnRingLibrary 0.9
SGL wrapper
 
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches

◆ BounceEaseIn()

static constexpr Fxp SRL::Math::Interpolation::BounceEaseIn ( const Fxp & start,
const Fxp & end,
const Fxp & t )
inlinestaticconstexpr

Bounce ease-in interpolation for reverse bouncing ball effect.

Implements bouncing by reversing BounceEaseOut. Creates a series of bounces that converge to the start.

The motion consists of four phases in reverse:

  • Small initial bounces (10% of time)
  • Medium bounce (18% of time)
  • Large bounce (36% of time)
  • Final launch (36% of time)

Common uses:

  • Object launches
  • UI element takeoffs
  • Character jump startup
  • Power-up activation
Parameters
startStarting value of the interpolation
endEnding value of the interpolation
tInterpolation factor in range [0,1]
Returns
Eased value
Note
Reverses BounceEaseOut for symmetric animations