<ahref="a00518.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> </div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="preprocessor">#pragma once</span></div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> </div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment">// Dependencies</span></div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="preprocessor">#include "../mat4x4.hpp"</span></div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="preprocessor">#include "../vec3.hpp"</span></div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="preprocessor">#include "../vec4.hpp"</span></div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="preprocessor">#include "../geometric.hpp"</span></div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="preprocessor">#include "../gtc/quaternion.hpp"</span></div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="preprocessor">#include "../gtc/matrix_transform.hpp"</span></div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> </div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="preprocessor">#ifndef GLM_ENABLE_EXPERIMENTAL</span></div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="preprocessor"># error "GLM: GLM_GTX_matrix_decompose 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="l00025"></a><spanclass="lineno"> 25</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> </div><divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="preprocessor">#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)</span></div><divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="preprocessor"># pragma message("GLM: GLM_GTX_matrix_decompose extension included")</span></div><divclass="line"><aname="l00029"></a><spanclass="lineno"> 29</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00030"></a><spanclass="lineno"> 30</span> </div><divclass="line"><aname="l00031"></a><spanclass="lineno"> 31</span> <spanclass="keyword">namespace </span><aclass="code"href="a00792.html">glm</a></div><divclass="line"><aname="l00032"></a><spanclass="lineno"> 32</span> {</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> T, qualifier Q></div><divclass="line"><aname="l00039"></a><spanclass="lineno"> 39</span>  GLM_FUNC_DECL <spanclass="keywordtype">bool</span><aclass="code"href="a00752.html#gac0e342656ba09a9bc97c57182ba73124">decompose</a>(</div><divclass="line"><aname="l00040"></a><spanclass="lineno"> 40</span>  mat<4, 4, T, Q><spanclass="keyword">const</span>& modelMatrix,</div><divclass="line"><aname="l00041"></a><spanclass="lineno"> 41</span>  vec<3, T, Q>&<aclass="code"href="a00668.html#ga05051adbee603fb3c5095d8cf5cc229b">scale</a>, qua<T, Q>&<aclass="code"href="a00773.html#ga1a32fceb71962e6160e8af295c91930a">orientation</a>, vec<3, T, Q>& translation, vec<3, T, Q>& skew, vec<4, T, Q>&
<divclass="ttc"id="a00665_html_ga747c8cf99458663dd7ad1bb3a2f07787"><divclass="ttname"><ahref="a00665.html#ga747c8cf99458663dd7ad1bb3a2f07787">glm::perspective</a></div><divclass="ttdeci">GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspective(T fovy, T aspect, T near, T far)</div><divclass="ttdoc">Creates a matrix for a symetric perspective-view frustum based on the default handedness and default ...</div></div>
<divclass="ttc"id="a00773_html_ga1a32fceb71962e6160e8af295c91930a"><divclass="ttname"><ahref="a00773.html#ga1a32fceb71962e6160e8af295c91930a">glm::orientation</a></div><divclass="ttdeci">GLM_FUNC_DECL mat< 4, 4, T, Q > orientation(vec< 3, T, Q > const &Normal, vec< 3, T, Q > const &Up)</div><divclass="ttdoc">Build a rotation matrix from a normal and a up vector. </div></div>