21 #include "../gtc/constants.hpp" 22 #include "../detail/qualifier.hpp" 24 #ifndef GLM_ENABLE_EXPERIMENTAL 25 # error "GLM: GLM_GTX_easing is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." 28 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) 29 # pragma message("GLM: GLM_GTX_easing extension included") 38 template <
typename genType>
43 template <
typename genType>
48 template <
typename genType>
55 template <
typename genType>
59 template <
typename genType>
60 GLM_FUNC_DECL genType
cubicEaseIn(genType
const & a);
64 template <
typename genType>
71 template <
typename genType>
76 template <
typename genType>
81 template <
typename genType>
88 template <
typename genType>
93 template <
typename genType>
98 template <
typename genType>
105 template <
typename genType>
110 template <
typename genType>
111 GLM_FUNC_DECL genType
sineEaseIn(genType
const & a);
115 template <
typename genType>
116 GLM_FUNC_DECL genType
sineEaseOut(genType
const & a);
120 template <
typename genType>
125 template <
typename genType>
130 template <
typename genType>
137 template <
typename genType>
142 template <
typename genType>
147 template <
typename genType>
154 template <
typename genType>
159 template <
typename genType>
164 template <
typename genType>
171 template <
typename genType>
175 template <
typename genType>
176 GLM_FUNC_DECL genType
backEaseIn(genType
const& a);
179 template <
typename genType>
180 GLM_FUNC_DECL genType
backEaseOut(genType
const& a);
183 template <
typename genType>
189 template <
typename genType>
190 GLM_FUNC_DECL genType
backEaseIn(genType
const& a, genType
const& o);
195 template <
typename genType>
196 GLM_FUNC_DECL genType
backEaseOut(genType
const& a, genType
const& o);
201 template <
typename genType>
202 GLM_FUNC_DECL genType
backEaseInOut(genType
const& a, genType
const& o);
205 template <
typename genType>
209 template <
typename genType>
213 template <
typename genType>
219 #include "easing.inl" GLM_FUNC_DECL genType backEaseIn(genType const &a, genType const &o)
GLM_FUNC_DECL genType exponentialEaseOut(genType const &a)
Modelled after the exponential function y = -2^(-10x) + 1.
GLM_FUNC_DECL genType bounceEaseInOut(genType const &a)
GLM_FUNC_DECL genType quarticEaseIn(genType const &a)
Modelled after the quartic x^4.
GLM_FUNC_DECL genType quinticEaseIn(genType const &a)
Modelled after the quintic y = x^5.
GLM_FUNC_DECL genType circularEaseOut(genType const &a)
Modelled after shifted quadrant II of unit circle.
GLM_FUNC_DECL genType quinticEaseOut(genType const &a)
Modelled after the quintic y = (x - 1)^5 + 1.
GLM_FUNC_DECL genType sineEaseOut(genType const &a)
Modelled after quarter-cycle of sine wave (different phase)
GLM_FUNC_DECL genType circularEaseIn(genType const &a)
Modelled after shifted quadrant IV of unit circle.
GLM_FUNC_DECL genType bounceEaseOut(genType const &a)
GLM_FUNC_DECL genType bounceEaseIn(genType const &a)
GLM_FUNC_DECL genType sineEaseIn(genType const &a)
Modelled after quarter-cycle of sine wave.
GLM_FUNC_DECL genType quinticEaseInOut(genType const &a)
Modelled after the piecewise quintic y = (1/2)((2x)^5) ; [0, 0.5) y = (1/2)((2x-2)^5 + 2) ; [0...
GLM_FUNC_DECL genType quadraticEaseOut(genType const &a)
Modelled after the parabola y = -x^2 + 2x.
GLM_FUNC_DECL genType quarticEaseInOut(genType const &a)
Modelled after the piecewise quartic y = (1/2)((2x)^4) ; [0, 0.5) y = -(1/2)((2x-2)^4 - 2) ; [0...
GLM_FUNC_DECL genType linearInterpolation(genType const &a)
Modelled after the line y = x.
GLM_FUNC_DECL genType elasticEaseIn(genType const &a)
Modelled after the damped sine wave y = sin(13pi/2*x)*pow(2, 10 * (x - 1))
GLM_FUNC_DECL genType quadraticEaseInOut(genType const &a)
Modelled after the piecewise quadratic y = (1/2)((2x)^2) ; [0, 0.5) y = -(1/2)((2x-1)*(2x-3) - 1) ; [...
GLM_FUNC_DECL genType quadraticEaseIn(genType const &a)
Modelled after the parabola y = x^2.
GLM_FUNC_DECL genType cubicEaseInOut(genType const &a)
Modelled after the piecewise cubic y = (1/2)((2x)^3) ; [0, 0.5) y = (1/2)((2x-2)^3 + 2) ; [0...
GLM_FUNC_DECL genType cubicEaseIn(genType const &a)
Modelled after the cubic y = x^3.
GLM_FUNC_DECL genType elasticEaseInOut(genType const &a)
Modelled after the piecewise exponentially-damped sine wave: y = (1/2)*sin(13pi/2*(2*x))*pow(2, 10 * ((2*x) - 1)) ; [0,0.5) y = (1/2)*(sin(-13pi/2*((2x-1)+1))*pow(2,-10(2*x-1)) + 2) ; [0.5, 1].
GLM_FUNC_DECL genType exponentialEaseIn(genType const &a)
Modelled after the exponential function y = 2^(10(x - 1))
GLM_FUNC_DECL genType quarticEaseOut(genType const &a)
Modelled after the quartic y = 1 - (x - 1)^4.
GLM_FUNC_DECL genType sineEaseInOut(genType const &a)
Modelled after half sine wave.
GLM_FUNC_DECL genType backEaseOut(genType const &a, genType const &o)
GLM_FUNC_DECL genType elasticEaseOut(genType const &a)
Modelled after the damped sine wave y = sin(-13pi/2*(x + 1))*pow(2, -10x) + 1.
GLM_FUNC_DECL genType exponentialEaseInOut(genType const &a)
Modelled after the piecewise exponential y = (1/2)2^(10(2x - 1)) ; [0,0.5) y = -(1/2)*2^(-10(2x - 1))...
GLM_FUNC_DECL genType circularEaseInOut(genType const &a)
Modelled after the piecewise circular function y = (1/2)(1 - sqrt(1 - 4x^2)) ; [0, 0.5) y = (1/2)(sqrt(-(2x - 3)*(2x - 1)) + 1) ; [0.5, 1].
GLM_FUNC_DECL genType backEaseInOut(genType const &a, genType const &o)
GLM_FUNC_DECL genType cubicEaseOut(genType const &a)
Modelled after the cubic y = (x - 1)^3 + 1.