ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
easing.h File Reference

Easing functions for animations. More...

#include <algorithm>
#include <cmath>
Include dependency graph for easing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  asw
 
namespace  asw::easing
 

Typedefs

using asw::easing::EaseFunc = float (*)(float)
 Type alias for easing functions.
 

Functions

float asw::easing::linear (float t)
 
float asw::easing::easeInQuad (float t)
 
float asw::easing::easeOutQuad (float t)
 
float asw::easing::easeInOutQuad (float t)
 
float asw::easing::easeInCubic (float t)
 
float asw::easing::easeOutCubic (float t)
 
float asw::easing::easeInOutCubic (float t)
 
float asw::easing::easeInSine (float t)
 
float asw::easing::easeOutSine (float t)
 
float asw::easing::easeInOutSine (float t)
 
float asw::easing::easeInExpo (float t)
 
float asw::easing::easeOutExpo (float t)
 
float asw::easing::easeInOutExpo (float t)
 
float asw::easing::easeInElastic (float t)
 
float asw::easing::easeOutElastic (float t)
 
float asw::easing::easeInBounce (float t)
 
float asw::easing::easeOutBounce (float t)
 
float asw::easing::easeInBack (float t)
 
float asw::easing::easeOutBack (float t)
 
template<typename T >
asw::easing::ease (const T &a, const T &b, float t, EaseFunc func)
 

Detailed Description

Easing functions for animations.

Author
Allan Legemaate (alege.nosp@m.maat.nosp@m.e@gma.nosp@m.il.c.nosp@m.om)
Date
2026-02-13

Definition in file easing.h.