<ahref="a00470.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> </div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="preprocessor">#pragma once</span></div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> </div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment">// Dependency:</span></div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="preprocessor">#include "../glm.hpp"</span></div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="preprocessor">#include "../gtc/constants.hpp"</span></div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="preprocessor">#include "../detail/qualifier.hpp"</span></div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> </div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="preprocessor">#ifndef GLM_ENABLE_EXPERIMENTAL</span></div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="preprocessor"># 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."</span></div><divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> </div><divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="preprocessor">#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)</span></div><divclass="line"><aname="l00029"></a><spanclass="lineno"> 29</span> <spanclass="preprocessor"># pragma message("GLM: GLM_GTX_easing extension included")</span></div><divclass="line"><aname="l00030"></a><spanclass="lineno"> 30</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00031"></a><spanclass="lineno"> 31</span> </div><divclass="line"><aname="l00032"></a><spanclass="lineno"> 32</span> <spanclass="keyword">namespace </span><aclass="code"href="a00792.html">glm</a>{</div><divclass="line"><aname="l00035"></a><spanclass="lineno"> 35</span> </div><divclass="line"><aname="l00038"></a><spanclass="lineno"> 38</span> <spanclass="keyword">template</span><<spanclass="keyword">typename</span> genType></div><divclass="line"><aname="l00039"></a><spanclass="lineno"> 39</span>  GLM_FUNC_DECL genType <aclass="code"href="a00735.html#ga290c3e47cb0a49f2e8abe90b1872b649">linearInterpolation</a>(genType <spanclass="keyword">const</span>& a);</div><divclass="line"><aname="l00040"></a><spanclass="lineno"> 40</span> </div><divclass="line"><aname="l00043"></a><spanclass="lineno"> 43</span> <spanclass="keyword">template</span><<spanclass="keyword">typename</span> genType></div><divclass="line"><aname="l00044"></a><spanclass="lineno"> 44</span>  GLM_FUNC_DECL genType <aclass="code"href="a00735.html#gaf42089d35855695132d217cd902304a0">quadraticEaseIn</a>(genType <spanclass="keyword">const</span>& a);</div><divclass="line"><aname="l00045"></a><spanclass="lineno"> 45</span> </div><divclass="line"><aname="l00048"></a><spanclass="lineno"> 48</span> <spanclass="keyword">template</span><<spanclass="keyword">typename</span> genType></div><divclass="line"><aname="l00049"></a><spanclass="lineno"> 49</span>  GLM_FUNC_DECL genType <aclass="code"href="a00735.html#ga283717bc2d937547ad34ec0472234ee3">quadraticEaseOut</a>(genType <spanclass="keyword">const</span>& a);</div><divclass="line"><aname="l00050"></a><spanclass="lineno"> 50</span
<divclass="ttc"id="a00735_html_ga517f2bcfd15bc2c25c466ae50808efc3"><divclass="ttname"><ahref="a00735.html#ga517f2bcfd15bc2c25c466ae50808efc3">glm::exponentialEaseOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType exponentialEaseOut(genType const &a)</div><divclass="ttdoc">Modelled after the exponential function y = -2^(-10x) + 1. </div></div>
<divclass="ttc"id="a00735_html_ga808b41f14514f47dad5dcc69eb924afd"><divclass="ttname"><ahref="a00735.html#ga808b41f14514f47dad5dcc69eb924afd">glm::quarticEaseIn</a></div><divclass="ttdeci">GLM_FUNC_DECL genType quarticEaseIn(genType const &a)</div><divclass="ttdoc">Modelled after the quartic x^4. </div></div>
<divclass="ttc"id="a00735_html_ga097579d8e087dcf48037588140a21640"><divclass="ttname"><ahref="a00735.html#ga097579d8e087dcf48037588140a21640">glm::quinticEaseIn</a></div><divclass="ttdeci">GLM_FUNC_DECL genType quinticEaseIn(genType const &a)</div><divclass="ttdoc">Modelled after the quintic y = x^5. </div></div>
<divclass="ttc"id="a00735_html_ga26fefde9ced9b72745fe21f1a3fe8da7"><divclass="ttname"><ahref="a00735.html#ga26fefde9ced9b72745fe21f1a3fe8da7">glm::circularEaseOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType circularEaseOut(genType const &a)</div><divclass="ttdoc">Modelled after shifted quadrant II of unit circle. </div></div>
<divclass="ttc"id="a00735_html_ga7dbd4d5c8da3f5353121f615e7b591d7"><divclass="ttname"><ahref="a00735.html#ga7dbd4d5c8da3f5353121f615e7b591d7">glm::quinticEaseOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType quinticEaseOut(genType const &a)</div><divclass="ttdoc">Modelled after the quintic y = (x - 1)^5 + 1. </div></div>
<divclass="ttc"id="a00735_html_gab3e454f883afc1606ef91363881bf5a3"><divclass="ttname"><ahref="a00735.html#gab3e454f883afc1606ef91363881bf5a3">glm::sineEaseOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType sineEaseOut(genType const &a)</div><divclass="ttdoc">Modelled after quarter-cycle of sine wave (different phase) </div></div>
<divclass="ttc"id="a00735_html_ga34508d4b204a321ec26d6086aa047997"><divclass="ttname"><ahref="a00735.html#ga34508d4b204a321ec26d6086aa047997">glm::circularEaseIn</a></div><divclass="ttdeci">GLM_FUNC_DECL genType circularEaseIn(genType const &a)</div><divclass="ttdoc">Modelled after shifted quadrant IV of unit circle. </div></div>
<divclass="ttc"id="a00735_html_gafb338ac6f6b2bcafee50e3dca5201dbf"><divclass="ttname"><ahref="a00735.html#gafb338ac6f6b2bcafee50e3dca5201dbf">glm::sineEaseIn</a></div><divclass="ttdeci">GLM_FUNC_DECL genType sineEaseIn(genType const &a)</div><divclass="ttdoc">Modelled after quarter-cycle of sine wave. </div></div>
<divclass="ttc"id="a00735_html_ga2a82d5c46df7e2d21cc0108eb7b83934"><divclass="ttname"><ahref="a00735.html#ga2a82d5c46df7e2d21cc0108eb7b83934">glm::quinticEaseInOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType quinticEaseInOut(genType const &a)</div><divclass="ttdoc">Modelled after the piecewise quintic y = (1/2)((2x)^5) ; [0, 0.5) y = (1/2)((2x-2)^5 + 2) ; [0...</div></div>
<divclass="ttc"id="a00735_html_ga283717bc2d937547ad34ec0472234ee3"><divclass="ttname"><ahref="a00735.html#ga283717bc2d937547ad34ec0472234ee3">glm::quadraticEaseOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType quadraticEaseOut(genType const &a)</div><divclass="ttdoc">Modelled after the parabola y = -x^2 + 2x. </div></div>
<divclass="ttc"id="a00735_html_ga6d000f852de12b197e154f234b20c505"><divclass="ttname"><ahref="a00735.html#ga6d000f852de12b197e154f234b20c505">glm::quarticEaseInOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType quarticEaseInOut(genType const &a)</div><divclass="ttdoc">Modelled after the piecewise quartic y = (1/2)((2x)^4) ; [0, 0.5) y = -(1/2)((2x-2)^4 - 2) ; [0...</div></div>
<divclass="ttc"id="a00735_html_ga290c3e47cb0a49f2e8abe90b1872b649"><divclass="ttname"><ahref="a00735.html#ga290c3e47cb0a49f2e8abe90b1872b649">glm::linearInterpolation</a></div><divclass="ttdeci">GLM_FUNC_DECL genType linearInterpolation(genType const &a)</div><divclass="ttdoc">Modelled after the line y = x. </div></div>
<divclass="ttc"id="a00735_html_ga230918eccee4e113d10ec5b8cdc58695"><divclass="ttname"><ahref="a00735.html#ga230918eccee4e113d10ec5b8cdc58695">glm::elasticEaseIn</a></div><divclass="ttdeci">GLM_FUNC_DECL genType elasticEaseIn(genType const &a)</div><divclass="ttdoc">Modelled after the damped sine wave y = sin(13pi/2*x)*pow(2, 10 * (x - 1)) </div></div>
<divclass="ttc"id="a00735_html_ga03e8fc2d7945a4e63ee33b2159c14cea"><divclass="ttname"><ahref="a00735.html#ga03e8fc2d7945a4e63ee33b2159c14cea">glm::quadraticEaseInOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType quadraticEaseInOut(genType const &a)</div><divclass="ttdoc">Modelled after the piecewise quadratic y = (1/2)((2x)^2) ; [0, 0.5) y = -(1/2)((2x-1)*(2x-3) - 1) ; [...</div></div>
<divclass="ttc"id="a00735_html_gaf42089d35855695132d217cd902304a0"><divclass="ttname"><ahref="a00735.html#gaf42089d35855695132d217cd902304a0">glm::quadraticEaseIn</a></div><divclass="ttdeci">GLM_FUNC_DECL genType quadraticEaseIn(genType const &a)</div><divclass="ttdoc">Modelled after the parabola y = x^2. </div></div>
<divclass="ttc"id="a00735_html_ga55134072b42d75452189321d4a2ad91c"><divclass="ttname"><ahref="a00735.html#ga55134072b42d75452189321d4a2ad91c">glm::cubicEaseInOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType cubicEaseInOut(genType const &a)</div><divclass="ttdoc">Modelled after the piecewise cubic y = (1/2)((2x)^3) ; [0, 0.5) y = (1/2)((2x-2)^3 + 2) ; [0...</div></div>
<divclass="ttc"id="a00735_html_gaff52f746102b94864d105563ba8895ae"><divclass="ttname"><ahref="a00735.html#gaff52f746102b94864d105563ba8895ae">glm::cubicEaseIn</a></div><divclass="ttdeci">GLM_FUNC_DECL genType cubicEaseIn(genType const &a)</div><divclass="ttdoc">Modelled after the cubic y = x^3. </div></div>
<divclass="ttc"id="a00735_html_ga2db4ac8959559b11b4029e54812908d6"><divclass="ttname"><ahref="a00735.html#ga2db4ac8959559b11b4029e54812908d6">glm::elasticEaseInOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType elasticEaseInOut(genType const &a)</div><divclass="ttdoc">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]. </div></div>
<divclass="ttc"id="a00735_html_ga7f24ee9219ab4c84dc8de24be84c1e3c"><divclass="ttname"><ahref="a00735.html#ga7f24ee9219ab4c84dc8de24be84c1e3c">glm::exponentialEaseIn</a></div><divclass="ttdeci">GLM_FUNC_DECL genType exponentialEaseIn(genType const &a)</div><divclass="ttdoc">Modelled after the exponential function y = 2^(10(x - 1)) </div></div>
<divclass="ttc"id="a00735_html_ga4dfb33fa7664aa888eb647999d329b98"><divclass="ttname"><ahref="a00735.html#ga4dfb33fa7664aa888eb647999d329b98">glm::quarticEaseOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType quarticEaseOut(genType const &a)</div><divclass="ttdoc">Modelled after the quartic y = 1 - (x - 1)^4. </div></div>
<divclass="ttc"id="a00735_html_gaa46e3d5fbf7a15caa28eff9ef192d7c7"><divclass="ttname"><ahref="a00735.html#gaa46e3d5fbf7a15caa28eff9ef192d7c7">glm::sineEaseInOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType sineEaseInOut(genType const &a)</div><divclass="ttdoc">Modelled after half sine wave. </div></div>
<divclass="ttc"id="a00735_html_gace9c9d1bdf88bf2ab1e7cdefa54c7365"><divclass="ttname"><ahref="a00735.html#gace9c9d1bdf88bf2ab1e7cdefa54c7365">glm::elasticEaseOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType elasticEaseOut(genType const &a)</div><divclass="ttdoc">Modelled after the damped sine wave y = sin(-13pi/2*(x + 1))*pow(2, -10x) + 1. </div></div>
<divclass="ttc"id="a00735_html_ga232fb6dc093c5ce94bee105ff2947501"><divclass="ttname"><ahref="a00735.html#ga232fb6dc093c5ce94bee105ff2947501">glm::exponentialEaseInOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType exponentialEaseInOut(genType const &a)</div><divclass="ttdoc">Modelled after the piecewise exponential y = (1/2)2^(10(2x - 1)) ; [0,0.5) y = -(1/2)*2^(-10(2x - 1))...</div></div>
<divclass="ttc"id="a00735_html_ga0c1027637a5b02d4bb3612aa12599d69"><divclass="ttname"><ahref="a00735.html#ga0c1027637a5b02d4bb3612aa12599d69">glm::circularEaseInOut</a></div><divclass="ttdeci">GLM_FUNC_DECL genType circularEaseInOut(genType const &a)</div><divclass="ttdoc">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]. </div></div>