gtx_easing Module Reference
Include < glm/gtx/easing.hpp > to use the features of this extension.
Easing functions for animations and transitons All functions take a parameter x in the range [0.0,1.0]
Based on the AHEasing project of Warren Moore ( https://github.com/warrenm/AHEasing )
Public Member Functions
-
GLM_FUNC_DECL genTypelinearInterpolation (genType const &a)
Modelled after the line y = x
- See Also
-
GLM_FUNC_DECL genTypequadraticEaseIn (genType const &a)
Modelled after the parabola y = x^2
- See Also
-
GLM_FUNC_DECL genTypequadraticEaseOut (genType const &a)
Modelled after the parabola y = -x^2 + 2x
- See Also
-
GLM_FUNC_DECL genTypequadraticEaseInOut (genType const &a)
Modelled after the piecewise quadratic y = (1/2)((2x)^2) ; [0, 0.5) y = -(1/2)((2x-1)*(2x-3) - 1) ; [0.5, 1]
- See Also
-
GLM_FUNC_DECL genTypecubicEaseIn (genType const &a)
Modelled after the cubic y = x^3.
-
GLM_FUNC_DECL genTypecubicEaseOut (genType const &a)
Modelled after the cubic y = (x - 1)^3 + 1
- See Also
-
GLM_FUNC_DECL genTypecubicEaseInOut (genType const &a)
Modelled after the piecewise cubic y = (1/2)((2x)^3) ; [0, 0.5) y = (1/2)((2x-2)^3 + 2) ; [0.5, 1]
- See Also
-
GLM_FUNC_DECL genTypequarticEaseIn (genType const &a)
Modelled after the quartic x^4
- See Also
-
GLM_FUNC_DECL genTypequarticEaseOut (genType const &a)
Modelled after the quartic y = 1 - (x - 1)^4
- See Also
-
GLM_FUNC_DECL genTypequarticEaseInOut (genType const &a)
Modelled after the piecewise quartic y = (1/2)((2x)^4) ; [0, 0.5) y = -(1/2)((2x-2)^4 - 2) ; [0.5, 1]
- See Also
-
GLM_FUNC_DECL genTypequinticEaseIn (genType const &a)
Modelled after the quintic y = x^5
- See Also
-
GLM_FUNC_DECL genTypequinticEaseOut (genType const &a)
Modelled after the quintic y = (x - 1)^5 + 1
- See Also
-
GLM_FUNC_DECL genTypequinticEaseInOut (genType const &a)
Modelled after the piecewise quintic y = (1/2)((2x)^5) ; [0, 0.5) y = (1/2)((2x-2)^5 + 2) ; [0.5, 1]
- See Also
-
GLM_FUNC_DECL genTypesineEaseIn (genType const &a)
Modelled after quarter-cycle of sine wave
- See Also
-
GLM_FUNC_DECL genTypesineEaseOut (genType const &a)
Modelled after quarter-cycle of sine wave (different phase)
- See Also
-
GLM_FUNC_DECL genTypesineEaseInOut (genType const &a)
Modelled after half sine wave
- See Also
-
GLM_FUNC_DECL genTypecircularEaseIn (genType const &a)
Modelled after shifted quadrant IV of unit circle
- See Also
-
GLM_FUNC_DECL genTypecircularEaseOut (genType const &a)
Modelled after shifted quadrant II of unit circle
- See Also
-
GLM_FUNC_DECL genTypecircularEaseInOut (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]
- See Also
-
GLM_FUNC_DECL genTypeexponentialEaseIn (genType const &a)
Modelled after the exponential function y = 2^(10(x - 1))
- See Also
-
GLM_FUNC_DECL genTypeexponentialEaseOut (genType const &a)
Modelled after the exponential function y = -2^(-10x) + 1
- See Also
-
GLM_FUNC_DECL genTypeexponentialEaseInOut (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))) + 1 ; [0.5,1]
- See Also
-
GLM_FUNC_DECL genTypeelasticEaseIn (genType const &a)
Modelled after the damped sine wave y = sin(13pi/2*x)*pow(2, 10 * (x - 1))
- See Also
-
GLM_FUNC_DECL genTypeelasticEaseOut (genType const &a)
Modelled after the damped sine wave y = sin(-13pi/2*(x + 1))*pow(2, -10x) + 1
- See Also
-
GLM_FUNC_DECL genTypeelasticEaseInOut (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]
- See Also
-
GLM_FUNC_DECL genTypebackEaseIn (genType const &a)
- See Also
-
GLM_FUNC_DECL genTypebackEaseOut (genType const &a)
- See Also
-
GLM_FUNC_DECL genTypebackEaseInOut (genType const &a)
- See Also
-
GLM_FUNC_DECL genTypebackEaseIn (genType const &a, genType const &o)
a
parameter
oOptional overshoot modifier
- See Also
-
GLM_FUNC_DECL genTypebackEaseOut (genType const &a, genType const &o)
a
parameter
oOptional overshoot modifier
- See Also
-
GLM_FUNC_DECL genTypebackEaseInOut (genType const &a, genType const &o)
a
parameter
oOptional overshoot modifier
- See Also
-
GLM_FUNC_DECL genTypebounceEaseIn (genType const &a)
- See Also
-
GLM_FUNC_DECL genTypebounceEaseOut (genType const &a)
- See Also
-
GLM_FUNC_DECL genTypebounceEaseInOut (genType const &a)
- See Also