Antkeeper  0.0.1
Public Types | Static Public Member Functions | List of all members
ease< T, S > Struct Template Reference

Container for templated easing functions. More...

#include <ease.hpp>

Public Types

typedef T value_type
 
typedef S scalar_type
 

Static Public Member Functions

static T in_sine (const T &x, const T &y, S a)
 
static T out_sine (const T &x, const T &y, S a)
 
static T in_out_sine (const T &x, const T &y, S a)
 
static T in_quad (const T &x, const T &y, S a)
 
static T out_quad (const T &x, const T &y, S a)
 
static T in_out_quad (const T &x, const T &y, S a)
 
static T in_cubic (const T &x, const T &y, S a)
 
static T out_cubic (const T &x, const T &y, S a)
 
static T in_out_cubic (const T &x, const T &y, S a)
 
static T in_quart (const T &x, const T &y, S a)
 
static T out_quart (const T &x, const T &y, S a)
 
static T in_out_quart (const T &x, const T &y, S a)
 
static T in_quint (const T &x, const T &y, S a)
 
static T out_quint (const T &x, const T &y, S a)
 
static T in_out_quint (const T &x, const T &y, S a)
 
static T in_expo (const T &x, const T &y, S a)
 
static T out_expo (const T &x, const T &y, S a)
 
static T in_out_expo (const T &x, const T &y, S a)
 
static T in_circ (const T &x, const T &y, S a)
 
static T out_circ (const T &x, const T &y, S a)
 
static T in_out_circ (const T &x, const T &y, S a)
 
static T in_back (const T &x, const T &y, S a)
 
static T out_back (const T &x, const T &y, S a)
 
static T in_out_back (const T &x, const T &y, S a)
 
static T in_elastic (const T &x, const T &y, S a)
 
static T out_elastic (const T &x, const T &y, S a)
 
static T in_out_elastic (const T &x, const T &y, S a)
 
static T in_bounce (const T &x, const T &y, S a)
 
static T out_bounce (const T &x, const T &y, S a)
 
static T in_out_bounce (const T &x, const T &y, S a)
 

Detailed Description

template<typename T, typename S = float>
struct ease< T, S >

Container for templated easing functions.

All easing functions require the following operators to be defined:

value_type operator+(const value_type&, const value_type&);
value_type operator-(const value_type&, const value_type&);
value_type operator*(const value_type&, scalar_type);
Template Parameters
TValue type.
SScalar type.

Definition at line 70 of file ease.hpp.

Member Typedef Documentation

◆ scalar_type

template<typename T , typename S = float>
typedef S ease< T, S >::scalar_type

Definition at line 73 of file ease.hpp.

◆ value_type

template<typename T , typename S = float>
typedef T ease< T, S >::value_type

Definition at line 72 of file ease.hpp.

Member Function Documentation

◆ in_back()

template<typename T , typename S >
T ease< T, S >::in_back ( const T &  x,
const T &  y,
a 
)
static

Definition at line 267 of file ease.hpp.

◆ in_bounce()

template<typename T , typename S >
T ease< T, S >::in_bounce ( const T &  x,
const T &  y,
a 
)
static

Definition at line 350 of file ease.hpp.

◆ in_circ()

template<typename T , typename S >
T ease< T, S >::in_circ ( const T &  x,
const T &  y,
a 
)
static

Definition at line 242 of file ease.hpp.

◆ in_cubic()

template<typename T , typename S >
T ease< T, S >::in_cubic ( const T &  x,
const T &  y,
a 
)
static

Definition at line 153 of file ease.hpp.

◆ in_elastic()

template<typename T , typename S >
T ease< T, S >::in_elastic ( const T &  x,
const T &  y,
a 
)
static

Definition at line 298 of file ease.hpp.

◆ in_expo()

template<typename T , typename S >
T ease< T, S >::in_expo ( const T &  x,
const T &  y,
a 
)
static

Definition at line 215 of file ease.hpp.

◆ in_out_back()

template<typename T , typename S >
T ease< T, S >::in_out_back ( const T &  x,
const T &  y,
a 
)
static

Definition at line 282 of file ease.hpp.

◆ in_out_bounce()

template<typename T , typename S >
T ease< T, S >::in_out_bounce ( const T &  x,
const T &  y,
a 
)
static

Definition at line 385 of file ease.hpp.

◆ in_out_circ()

template<typename T , typename S >
T ease< T, S >::in_out_circ ( const T &  x,
const T &  y,
a 
)
static

Definition at line 254 of file ease.hpp.

◆ in_out_cubic()

template<typename T , typename S >
T ease< T, S >::in_out_cubic ( const T &  x,
const T &  y,
a 
)
static

Definition at line 165 of file ease.hpp.

◆ in_out_elastic()

template<typename T , typename S >
T ease< T, S >::in_out_elastic ( const T &  x,
const T &  y,
a 
)
static

Definition at line 328 of file ease.hpp.

◆ in_out_expo()

template<typename T , typename S >
T ease< T, S >::in_out_expo ( const T &  x,
const T &  y,
a 
)
static

Definition at line 227 of file ease.hpp.

◆ in_out_quad()

template<typename T , typename S >
T ease< T, S >::in_out_quad ( const T &  x,
const T &  y,
a 
)
static

Definition at line 147 of file ease.hpp.

◆ in_out_quart()

template<typename T , typename S >
T ease< T, S >::in_out_quart ( const T &  x,
const T &  y,
a 
)
static

Definition at line 183 of file ease.hpp.

◆ in_out_quint()

template<typename T , typename S >
T ease< T, S >::in_out_quint ( const T &  x,
const T &  y,
a 
)
static

Definition at line 201 of file ease.hpp.

◆ in_out_sine()

template<typename T , typename S >
T ease< T, S >::in_out_sine ( const T &  x,
const T &  y,
a 
)
static

Definition at line 129 of file ease.hpp.

◆ in_quad()

template<typename T , typename S >
T ease< T, S >::in_quad ( const T &  x,
const T &  y,
a 
)
static

Definition at line 135 of file ease.hpp.

◆ in_quart()

template<typename T , typename S >
T ease< T, S >::in_quart ( const T &  x,
const T &  y,
a 
)
static

Definition at line 171 of file ease.hpp.

◆ in_quint()

template<typename T , typename S >
T ease< T, S >::in_quint ( const T &  x,
const T &  y,
a 
)
static

Definition at line 189 of file ease.hpp.

◆ in_sine()

template<typename T , typename S >
T ease< T, S >::in_sine ( const T &  x,
const T &  y,
a 
)
static

Definition at line 117 of file ease.hpp.

◆ out_back()

template<typename T , typename S >
T ease< T, S >::out_back ( const T &  x,
const T &  y,
a 
)
static

Definition at line 274 of file ease.hpp.

◆ out_bounce()

template<typename T , typename S >
T ease< T, S >::out_bounce ( const T &  x,
const T &  y,
a 
)
static

Definition at line 356 of file ease.hpp.

◆ out_circ()

template<typename T , typename S >
T ease< T, S >::out_circ ( const T &  x,
const T &  y,
a 
)
static

Definition at line 248 of file ease.hpp.

◆ out_cubic()

template<typename T , typename S >
T ease< T, S >::out_cubic ( const T &  x,
const T &  y,
a 
)
static

Definition at line 159 of file ease.hpp.

◆ out_elastic()

template<typename T , typename S >
T ease< T, S >::out_elastic ( const T &  x,
const T &  y,
a 
)
static

Definition at line 313 of file ease.hpp.

◆ out_expo()

template<typename T , typename S >
T ease< T, S >::out_expo ( const T &  x,
const T &  y,
a 
)
static

Definition at line 221 of file ease.hpp.

◆ out_quad()

template<typename T , typename S >
T ease< T, S >::out_quad ( const T &  x,
const T &  y,
a 
)
static

Definition at line 141 of file ease.hpp.

◆ out_quart()

template<typename T , typename S >
T ease< T, S >::out_quart ( const T &  x,
const T &  y,
a 
)
static

Definition at line 177 of file ease.hpp.

◆ out_quint()

template<typename T , typename S >
T ease< T, S >::out_quint ( const T &  x,
const T &  y,
a 
)
static

Definition at line 195 of file ease.hpp.

◆ out_sine()

template<typename T , typename S >
T ease< T, S >::out_sine ( const T &  x,
const T &  y,
a 
)
static

Definition at line 123 of file ease.hpp.


The documentation for this struct was generated from the following file: