Euphoria
eu::core::easing Namespace Reference

Enumerations

enum class  Function {
  linear , smooth_start2 , smooth_start3 , smooth_start4 ,
  smooth_stop2 , smooth_stop3 , smooth_stop4 , smooth_step2 ,
  smooth_step3 , smooth_step4
}
 

Functions

template<int steps>
constexpr float ipow (float t)
 
template<>
constexpr float ipow< 1 > (float t)
 
constexpr float flip (float t)
 
constexpr float blend (float a, float b, float weight)
 
template<int steps>
constexpr float fracpow (float frac, float t)
 
constexpr float fabs (float t)
 
constexpr float bounce_clamp_top (float t)
 
constexpr float bounce_clamp_bottom (float t)
 
constexpr float bounce_clamp (float t)
 
constexpr float normalized_bezier_curve3 (float b, float c, float t)
 
template<int steps>
float smooth_start (float t)
 
template<int steps>
float smooth_stop (float t)
 
template<int steps>
float smooth_step (float t)
 
float apply (Function f, float t)
 
std::vector< std::pair< const char *, Function > > get_all_values ()
 

Enumeration Type Documentation

◆ Function

Enumerator
linear 
smooth_start2 
smooth_start3 
smooth_start4 
smooth_stop2 
smooth_stop3 
smooth_stop4 
smooth_step2 
smooth_step3 
smooth_step4 

Definition at line 9 of file easing.h.

Function Documentation

◆ apply()

float eu::core::easing::apply ( Function  f,
float  t 
)

Definition at line 61 of file easing.cc.

◆ blend()

constexpr float eu::core::easing::blend ( float  a,
float  b,
float  weight 
)
constexpr

Definition at line 25 of file easing.cc.

◆ bounce_clamp()

constexpr float eu::core::easing::bounce_clamp ( float  t)
constexpr

Definition at line 36 of file easing.cc.

◆ bounce_clamp_bottom()

constexpr float eu::core::easing::bounce_clamp_bottom ( float  t)
constexpr

Definition at line 34 of file easing.cc.

◆ bounce_clamp_top()

constexpr float eu::core::easing::bounce_clamp_top ( float  t)
constexpr

Definition at line 32 of file easing.cc.

◆ fabs()

constexpr float eu::core::easing::fabs ( float  t)
constexpr

Definition at line 30 of file easing.cc.

◆ flip()

constexpr float eu::core::easing::flip ( float  t)
constexpr

Definition at line 23 of file easing.cc.

◆ fracpow()

template<int steps>
constexpr float eu::core::easing::fracpow ( float  frac,
float  t 
)
constexpr

Definition at line 28 of file easing.cc.

◆ get_all_values()

std::vector< std::pair< const char *, Function > > eu::core::easing::get_all_values ( )

Definition at line 87 of file easing.cc.

◆ ipow()

template<int steps>
constexpr float eu::core::easing::ipow ( float  t)
constexpr

Definition at line 20 of file easing.cc.

◆ ipow< 1 >()

template<>
constexpr float eu::core::easing::ipow< 1 > ( float  t)
constexpr

Definition at line 21 of file easing.cc.

◆ normalized_bezier_curve3()

constexpr float eu::core::easing::normalized_bezier_curve3 ( float  b,
float  c,
float  t 
)
constexpr

Definition at line 38 of file easing.cc.

◆ smooth_start()

template<int steps>
float eu::core::easing::smooth_start ( float  t)

Definition at line 52 of file easing.cc.

◆ smooth_step()

template<int steps>
float eu::core::easing::smooth_step ( float  t)

Definition at line 58 of file easing.cc.

◆ smooth_stop()

template<int steps>
float eu::core::easing::smooth_stop ( float  t)

Definition at line 55 of file easing.cc.