Updated API doc
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.10"/>
|
||||
<title>0.9.9 API documenation: GLM_GTX_matrix_operation</title>
|
||||
<title>0.9.9 API documenation: GLM_GTX_quaternion</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
@@ -77,224 +77,726 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
<div class="summary">
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">GLM_GTX_matrix_operation<div class="ingroups"><a class="el" href="a00157.html">GTX Extensions (Experimental)</a></div></div> </div>
|
||||
<div class="title">GLM_GTX_quaternion<div class="ingroups"><a class="el" href="a00148.html">Experimental extensions</a></div></div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>Build diagonal matrices from vectors.
|
||||
<p>Include <<a class="el" href="a00084.html" title="GLM_GTX_quaternion ">glm/gtx/quaternion.hpp</a>> to use the features of this extension.
|
||||
<a href="#details">More...</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:ga2a5a236689e94ef72fcef64064e9bd5a"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||||
<tr class="memitem:ga2a5a236689e94ef72fcef64064e9bd5a"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 2, 2, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga2a5a236689e94ef72fcef64064e9bd5a">diagonal2x2</a> (vec< 2, T, P > const &v)</td></tr>
|
||||
<tr class="memdesc:ga2a5a236689e94ef72fcef64064e9bd5a"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#ga2a5a236689e94ef72fcef64064e9bd5a">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga2a5a236689e94ef72fcef64064e9bd5a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gaba34be247fae13984a657f18f985b889"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||||
<tr class="memitem:gaba34be247fae13984a657f18f985b889"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 2, 3, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gaba34be247fae13984a657f18f985b889">diagonal2x3</a> (vec< 2, T, P > const &v)</td></tr>
|
||||
<tr class="memdesc:gaba34be247fae13984a657f18f985b889"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#gaba34be247fae13984a657f18f985b889">More...</a><br /></td></tr>
|
||||
<tr class="separator:gaba34be247fae13984a657f18f985b889"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga420b4c9e124eca9e4730e4d9f2ca04a6"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||||
<tr class="memitem:ga420b4c9e124eca9e4730e4d9f2ca04a6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 2, 4, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga420b4c9e124eca9e4730e4d9f2ca04a6">diagonal2x4</a> (vec< 2, T, P > const &v)</td></tr>
|
||||
<tr class="memdesc:ga420b4c9e124eca9e4730e4d9f2ca04a6"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#ga420b4c9e124eca9e4730e4d9f2ca04a6">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga420b4c9e124eca9e4730e4d9f2ca04a6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga7160ee2791f695fbc409e5dec7ad5548"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||||
<tr class="memitem:ga7160ee2791f695fbc409e5dec7ad5548"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 3, 2, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga7160ee2791f695fbc409e5dec7ad5548">diagonal3x2</a> (vec< 2, T, P > const &v)</td></tr>
|
||||
<tr class="memdesc:ga7160ee2791f695fbc409e5dec7ad5548"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#ga7160ee2791f695fbc409e5dec7ad5548">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga7160ee2791f695fbc409e5dec7ad5548"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga246399c6803f8433bb097d81299b1535"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||||
<tr class="memitem:ga246399c6803f8433bb097d81299b1535"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 3, 3, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga246399c6803f8433bb097d81299b1535">diagonal3x3</a> (vec< 3, T, P > const &v)</td></tr>
|
||||
<tr class="memdesc:ga246399c6803f8433bb097d81299b1535"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#ga246399c6803f8433bb097d81299b1535">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga246399c6803f8433bb097d81299b1535"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gabd62dd6842db75540efe439e6af4f306"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||||
<tr class="memitem:gabd62dd6842db75540efe439e6af4f306"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 3, 4, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gabd62dd6842db75540efe439e6af4f306">diagonal3x4</a> (vec< 3, T, P > const &v)</td></tr>
|
||||
<tr class="memdesc:gabd62dd6842db75540efe439e6af4f306"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#gabd62dd6842db75540efe439e6af4f306">More...</a><br /></td></tr>
|
||||
<tr class="separator:gabd62dd6842db75540efe439e6af4f306"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gad57a154d7d12d9cd006c9b03bd2adac6"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||||
<tr class="memitem:gad57a154d7d12d9cd006c9b03bd2adac6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 4, 2, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gad57a154d7d12d9cd006c9b03bd2adac6">diagonal4x2</a> (vec< 2, T, P > const &v)</td></tr>
|
||||
<tr class="memdesc:gad57a154d7d12d9cd006c9b03bd2adac6"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#gad57a154d7d12d9cd006c9b03bd2adac6">More...</a><br /></td></tr>
|
||||
<tr class="separator:gad57a154d7d12d9cd006c9b03bd2adac6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga012fcff72e35891559ea33db736c0211"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||||
<tr class="memitem:ga012fcff72e35891559ea33db736c0211"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 4, 3, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga012fcff72e35891559ea33db736c0211">diagonal4x3</a> (vec< 3, T, P > const &v)</td></tr>
|
||||
<tr class="memdesc:ga012fcff72e35891559ea33db736c0211"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#ga012fcff72e35891559ea33db736c0211">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga012fcff72e35891559ea33db736c0211"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga24d7a93eeaaac78b8e8cbc78b3804b23"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||||
<tr class="memitem:ga24d7a93eeaaac78b8e8cbc78b3804b23"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 4, 4, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga24d7a93eeaaac78b8e8cbc78b3804b23">diagonal4x4</a> (vec< 4, T, P > const &v)</td></tr>
|
||||
<tr class="memdesc:ga24d7a93eeaaac78b8e8cbc78b3804b23"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#ga24d7a93eeaaac78b8e8cbc78b3804b23">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga24d7a93eeaaac78b8e8cbc78b3804b23"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga8639615408166d0dddda1b91a940b338"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:ga8639615408166d0dddda1b91a940b338"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< 3, T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga8639615408166d0dddda1b91a940b338">cross</a> (tquat< T, Q > const &q, vec< 3, T, Q > const &v)</td></tr>
|
||||
<tr class="memdesc:ga8639615408166d0dddda1b91a940b338"><td class="mdescLeft"> </td><td class="mdescRight">Compute a cross product between a quaternion and a vector. <a href="a00212.html#ga8639615408166d0dddda1b91a940b338">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga8639615408166d0dddda1b91a940b338"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gaa75ca5654e0dc3b61c05db091f7d46ce"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:gaa75ca5654e0dc3b61c05db091f7d46ce"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< 3, T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gaa75ca5654e0dc3b61c05db091f7d46ce">cross</a> (vec< 3, T, Q > const &v, tquat< T, Q > const &q)</td></tr>
|
||||
<tr class="memdesc:gaa75ca5654e0dc3b61c05db091f7d46ce"><td class="mdescLeft"> </td><td class="mdescRight">Compute a cross product between a vector and a quaternion. <a href="a00212.html#gaa75ca5654e0dc3b61c05db091f7d46ce">More...</a><br /></td></tr>
|
||||
<tr class="separator:gaa75ca5654e0dc3b61c05db091f7d46ce"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga72275e87ce62dc75a06d39a6c049835c"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:ga72275e87ce62dc75a06d39a6c049835c"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga72275e87ce62dc75a06d39a6c049835c">exp</a> (tquat< T, Q > const &q)</td></tr>
|
||||
<tr class="memdesc:ga72275e87ce62dc75a06d39a6c049835c"><td class="mdescLeft"> </td><td class="mdescRight">Returns a exp of a quaternion. <a href="a00212.html#ga72275e87ce62dc75a06d39a6c049835c">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga72275e87ce62dc75a06d39a6c049835c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga312385d0a8caa24c1daaa1d00ce4c2d3"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:ga312385d0a8caa24c1daaa1d00ce4c2d3"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga312385d0a8caa24c1daaa1d00ce4c2d3">extractRealComponent</a> (tquat< T, Q > const &q)</td></tr>
|
||||
<tr class="memdesc:ga312385d0a8caa24c1daaa1d00ce4c2d3"><td class="mdescLeft"> </td><td class="mdescRight">Extract the real component of a quaternion. <a href="a00212.html#ga312385d0a8caa24c1daaa1d00ce4c2d3">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga312385d0a8caa24c1daaa1d00ce4c2d3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gac5c77bc74dfc750aaf271d68f271bf2b"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:gac5c77bc74dfc750aaf271d68f271bf2b"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gac5c77bc74dfc750aaf271d68f271bf2b">fastMix</a> (tquat< T, Q > const &x, tquat< T, Q > const &y, T const &a)</td></tr>
|
||||
<tr class="memdesc:gac5c77bc74dfc750aaf271d68f271bf2b"><td class="mdescLeft"> </td><td class="mdescRight">Quaternion normalized linear interpolation. <a href="a00212.html#gac5c77bc74dfc750aaf271d68f271bf2b">More...</a><br /></td></tr>
|
||||
<tr class="separator:gac5c77bc74dfc750aaf271d68f271bf2b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gac9be2084562a52ae8923813233563a28"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:gac9be2084562a52ae8923813233563a28"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gac9be2084562a52ae8923813233563a28">intermediate</a> (tquat< T, Q > const &prev, tquat< T, Q > const &curr, tquat< T, Q > const &next)</td></tr>
|
||||
<tr class="memdesc:gac9be2084562a52ae8923813233563a28"><td class="mdescLeft"> </td><td class="mdescRight">Returns an intermediate control point for squad interpolation. <a href="a00212.html#gac9be2084562a52ae8923813233563a28">More...</a><br /></td></tr>
|
||||
<tr class="separator:gac9be2084562a52ae8923813233563a28"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga229bacc3051770b030042fe266f7b0cb"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:ga229bacc3051770b030042fe266f7b0cb"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga229bacc3051770b030042fe266f7b0cb">length2</a> (tquat< T, Q > const &q)</td></tr>
|
||||
<tr class="memdesc:ga229bacc3051770b030042fe266f7b0cb"><td class="mdescLeft"> </td><td class="mdescRight">Returns the squared length of x. <a href="a00212.html#ga229bacc3051770b030042fe266f7b0cb">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga229bacc3051770b030042fe266f7b0cb"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gaad510f1a4ea26994b341c094ec4f4eed"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:gaad510f1a4ea26994b341c094ec4f4eed"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gaad510f1a4ea26994b341c094ec4f4eed">log</a> (tquat< T, Q > const &q)</td></tr>
|
||||
<tr class="memdesc:gaad510f1a4ea26994b341c094ec4f4eed"><td class="mdescLeft"> </td><td class="mdescRight">Returns a log of a quaternion. <a href="a00212.html#gaad510f1a4ea26994b341c094ec4f4eed">More...</a><br /></td></tr>
|
||||
<tr class="separator:gaad510f1a4ea26994b341c094ec4f4eed"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gad382fc37392d537aecf2245a4597d8a3"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:gad382fc37392d537aecf2245a4597d8a3"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gad382fc37392d537aecf2245a4597d8a3">pow</a> (tquat< T, Q > const &x, T const &y)</td></tr>
|
||||
<tr class="memdesc:gad382fc37392d537aecf2245a4597d8a3"><td class="mdescLeft"> </td><td class="mdescRight">Returns x raised to the y power. <a href="a00212.html#gad382fc37392d537aecf2245a4597d8a3">More...</a><br /></td></tr>
|
||||
<tr class="separator:gad382fc37392d537aecf2245a4597d8a3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga40788ce1d74fac29fa000af893a3ceb5"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:ga40788ce1d74fac29fa000af893a3ceb5"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga40788ce1d74fac29fa000af893a3ceb5">quat_identity</a> ()</td></tr>
|
||||
<tr class="memdesc:ga40788ce1d74fac29fa000af893a3ceb5"><td class="mdescLeft"> </td><td class="mdescRight">Create an identity quaternion. <a href="a00212.html#ga40788ce1d74fac29fa000af893a3ceb5">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga40788ce1d74fac29fa000af893a3ceb5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga668d9ec9964ced2b455d416677e1e8b9"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:ga668d9ec9964ced2b455d416677e1e8b9"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga668d9ec9964ced2b455d416677e1e8b9">quatLookAt</a> (vec< 3, T, Q > const &direction, vec< 3, T, Q > const &up)</td></tr>
|
||||
<tr class="memdesc:ga668d9ec9964ced2b455d416677e1e8b9"><td class="mdescLeft"> </td><td class="mdescRight">Build a look at quaternion based on the default handedness. <a href="a00212.html#ga668d9ec9964ced2b455d416677e1e8b9">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga668d9ec9964ced2b455d416677e1e8b9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga6f1b3fba52fcab952d0ab523177ff443"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:ga6f1b3fba52fcab952d0ab523177ff443"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga6f1b3fba52fcab952d0ab523177ff443">quatLookAtLH</a> (vec< 3, T, Q > const &direction, vec< 3, T, Q > const &up)</td></tr>
|
||||
<tr class="memdesc:ga6f1b3fba52fcab952d0ab523177ff443"><td class="mdescLeft"> </td><td class="mdescRight">Build a left-handed look at quaternion. <a href="a00212.html#ga6f1b3fba52fcab952d0ab523177ff443">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga6f1b3fba52fcab952d0ab523177ff443"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gad30cbeb78315773b6d18d9d1c1c75b77"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:gad30cbeb78315773b6d18d9d1c1c75b77"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gad30cbeb78315773b6d18d9d1c1c75b77">quatLookAtRH</a> (vec< 3, T, Q > const &direction, vec< 3, T, Q > const &up)</td></tr>
|
||||
<tr class="memdesc:gad30cbeb78315773b6d18d9d1c1c75b77"><td class="mdescLeft"> </td><td class="mdescRight">Build a right-handed look at quaternion. <a href="a00212.html#gad30cbeb78315773b6d18d9d1c1c75b77">More...</a><br /></td></tr>
|
||||
<tr class="separator:gad30cbeb78315773b6d18d9d1c1c75b77"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga49730f975e7f0ee3862a20b767aba583"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:ga49730f975e7f0ee3862a20b767aba583"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< 3, T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga49730f975e7f0ee3862a20b767aba583">rotate</a> (tquat< T, Q > const &q, vec< 3, T, Q > const &v)</td></tr>
|
||||
<tr class="memdesc:ga49730f975e7f0ee3862a20b767aba583"><td class="mdescLeft"> </td><td class="mdescRight">Returns quarternion square root. <a href="a00212.html#ga49730f975e7f0ee3862a20b767aba583">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga49730f975e7f0ee3862a20b767aba583"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga97a5f8af1d63056b85a53ac28042fe77"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:ga97a5f8af1d63056b85a53ac28042fe77"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< 4, T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga97a5f8af1d63056b85a53ac28042fe77">rotate</a> (tquat< T, Q > const &q, vec< 4, T, Q > const &v)</td></tr>
|
||||
<tr class="memdesc:ga97a5f8af1d63056b85a53ac28042fe77"><td class="mdescLeft"> </td><td class="mdescRight">Rotates a 4 components vector by a quaternion. <a href="a00212.html#ga97a5f8af1d63056b85a53ac28042fe77">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga97a5f8af1d63056b85a53ac28042fe77"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga5a729f33cbd904c9ca14cdf25d0a07e4"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:ga5a729f33cbd904c9ca14cdf25d0a07e4"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga5a729f33cbd904c9ca14cdf25d0a07e4">rotation</a> (vec< 3, T, Q > const &orig, vec< 3, T, Q > const &dest)</td></tr>
|
||||
<tr class="memdesc:ga5a729f33cbd904c9ca14cdf25d0a07e4"><td class="mdescLeft"> </td><td class="mdescRight">Compute the rotation between two vectors. <a href="a00212.html#ga5a729f33cbd904c9ca14cdf25d0a07e4">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga5a729f33cbd904c9ca14cdf25d0a07e4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gaf0ad63ac791b1f9a587e363837c2d538"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:gaf0ad63ac791b1f9a587e363837c2d538"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gaf0ad63ac791b1f9a587e363837c2d538">shortMix</a> (tquat< T, Q > const &x, tquat< T, Q > const &y, T const &a)</td></tr>
|
||||
<tr class="memdesc:gaf0ad63ac791b1f9a587e363837c2d538"><td class="mdescLeft"> </td><td class="mdescRight">Quaternion interpolation using the rotation short path. <a href="a00212.html#gaf0ad63ac791b1f9a587e363837c2d538">More...</a><br /></td></tr>
|
||||
<tr class="separator:gaf0ad63ac791b1f9a587e363837c2d538"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gacfcb16619e166e672c4672aff50a565c"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:gacfcb16619e166e672c4672aff50a565c"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gacfcb16619e166e672c4672aff50a565c">squad</a> (tquat< T, Q > const &q1, tquat< T, Q > const &q2, tquat< T, Q > const &s1, tquat< T, Q > const &s2, T const &h)</td></tr>
|
||||
<tr class="memdesc:gacfcb16619e166e672c4672aff50a565c"><td class="mdescLeft"> </td><td class="mdescRight">Compute a point on a path according squad equation. <a href="a00212.html#gacfcb16619e166e672c4672aff50a565c">More...</a><br /></td></tr>
|
||||
<tr class="separator:gacfcb16619e166e672c4672aff50a565c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga433955cb703d982427fb53b540d02f3d"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:ga433955cb703d982427fb53b540d02f3d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 3, 3, T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga433955cb703d982427fb53b540d02f3d">toMat3</a> (tquat< T, Q > const &x)</td></tr>
|
||||
<tr class="memdesc:ga433955cb703d982427fb53b540d02f3d"><td class="mdescLeft"> </td><td class="mdescRight">Converts a quaternion to a 3 * 3 matrix. <a href="a00212.html#ga433955cb703d982427fb53b540d02f3d">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga433955cb703d982427fb53b540d02f3d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga1fa0fb798c2715148e2e0358442bf895"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:ga1fa0fb798c2715148e2e0358442bf895"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 4, 4, T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga1fa0fb798c2715148e2e0358442bf895">toMat4</a> (tquat< T, Q > const &x)</td></tr>
|
||||
<tr class="memdesc:ga1fa0fb798c2715148e2e0358442bf895"><td class="mdescLeft"> </td><td class="mdescRight">Converts a quaternion to a 4 * 4 matrix. <a href="a00212.html#ga1fa0fb798c2715148e2e0358442bf895">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga1fa0fb798c2715148e2e0358442bf895"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gae9be791077b7a612d9092a922bd13f86"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:gae9be791077b7a612d9092a922bd13f86"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gae9be791077b7a612d9092a922bd13f86">toQuat</a> (mat< 3, 3, T, Q > const &x)</td></tr>
|
||||
<tr class="memdesc:gae9be791077b7a612d9092a922bd13f86"><td class="mdescLeft"> </td><td class="mdescRight">Converts a 3 * 3 matrix to a quaternion. <a href="a00212.html#gae9be791077b7a612d9092a922bd13f86">More...</a><br /></td></tr>
|
||||
<tr class="separator:gae9be791077b7a612d9092a922bd13f86"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga6c0a178ac9c7d23e1a6848045d83aa54"><td class="memTemplParams" colspan="2">template<typename T , qualifier Q> </td></tr>
|
||||
<tr class="memitem:ga6c0a178ac9c7d23e1a6848045d83aa54"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, Q > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga6c0a178ac9c7d23e1a6848045d83aa54">toQuat</a> (mat< 4, 4, T, Q > const &x)</td></tr>
|
||||
<tr class="memdesc:ga6c0a178ac9c7d23e1a6848045d83aa54"><td class="mdescLeft"> </td><td class="mdescRight">Converts a 4 * 4 matrix to a quaternion. <a href="a00212.html#ga6c0a178ac9c7d23e1a6848045d83aa54">More...</a><br /></td></tr>
|
||||
<tr class="separator:ga6c0a178ac9c7d23e1a6848045d83aa54"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<p>Build diagonal matrices from vectors. </p>
|
||||
<p><<a class="el" href="a00072.html" title="GLM_GTX_matrix_operation ">glm/gtx/matrix_operation.hpp</a>> need to be included to use these functionalities. </p>
|
||||
<p>Include <<a class="el" href="a00084.html" title="GLM_GTX_quaternion ">glm/gtx/quaternion.hpp</a>> to use the features of this extension. </p>
|
||||
<p>Extented quaternion types and functions </p>
|
||||
<h2 class="groupheader">Function Documentation</h2>
|
||||
<a class="anchor" id="ga2a5a236689e94ef72fcef64064e9bd5a"></a>
|
||||
<a class="anchor" id="ga8639615408166d0dddda1b91a940b338"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL mat<2, 2, T, P> glm::diagonal2x2 </td>
|
||||
<td class="memname">GLM_FUNC_DECL vec<3, T, Q> glm::cross </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">vec< 2, T, P > const & </td>
|
||||
<td class="paramname"><em>v</em></td><td>)</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>q</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">vec< 3, T, Q > const & </td>
|
||||
<td class="paramname"><em>v</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Compute a cross product between a quaternion and a vector. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gaa75ca5654e0dc3b61c05db091f7d46ce"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL vec<3, T, Q> glm::cross </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">vec< 3, T, Q > const & </td>
|
||||
<td class="paramname"><em>v</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>q</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Compute a cross product between a vector and a quaternion. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga72275e87ce62dc75a06d39a6c049835c"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::exp </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>q</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build a diagonal matrix. </p>
|
||||
<p>From GLM_GTX_matrix_operation extension. </p>
|
||||
<p>Returns a exp of a quaternion. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gaba34be247fae13984a657f18f985b889"></a>
|
||||
<a class="anchor" id="ga312385d0a8caa24c1daaa1d00ce4c2d3"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL mat<2, 3, T, P> glm::diagonal2x3 </td>
|
||||
<td class="memname">GLM_FUNC_DECL T glm::extractRealComponent </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">vec< 2, T, P > const & </td>
|
||||
<td class="paramname"><em>v</em></td><td>)</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>q</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build a diagonal matrix. </p>
|
||||
<p>From GLM_GTX_matrix_operation extension. </p>
|
||||
<p>Extract the real component of a quaternion. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga420b4c9e124eca9e4730e4d9f2ca04a6"></a>
|
||||
<a class="anchor" id="gac5c77bc74dfc750aaf271d68f271bf2b"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL mat<2, 4, T, P> glm::diagonal2x4 </td>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::fastMix </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">vec< 2, T, P > const & </td>
|
||||
<td class="paramname"><em>v</em></td><td>)</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>a</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Quaternion normalized linear interpolation. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gac9be2084562a52ae8923813233563a28"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::intermediate </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>prev</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>curr</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>next</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Returns an intermediate control point for squad interpolation. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga229bacc3051770b030042fe266f7b0cb"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL T glm::length2 </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>q</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build a diagonal matrix. </p>
|
||||
<p>From GLM_GTX_matrix_operation extension. </p>
|
||||
<p>Returns the squared length of x. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga7160ee2791f695fbc409e5dec7ad5548"></a>
|
||||
<a class="anchor" id="gaad510f1a4ea26994b341c094ec4f4eed"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL mat<3, 2, T, P> glm::diagonal3x2 </td>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::log </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">vec< 2, T, P > const & </td>
|
||||
<td class="paramname"><em>v</em></td><td>)</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>q</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build a diagonal matrix. </p>
|
||||
<p>From GLM_GTX_matrix_operation extension. </p>
|
||||
<p>Returns a log of a quaternion. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga246399c6803f8433bb097d81299b1535"></a>
|
||||
<a class="anchor" id="gad382fc37392d537aecf2245a4597d8a3"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL mat<3, 3, T, P> glm::diagonal3x3 </td>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::pow </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">vec< 3, T, P > const & </td>
|
||||
<td class="paramname"><em>v</em></td><td>)</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>y</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Returns x raised to the y power. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga40788ce1d74fac29fa000af893a3ceb5"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::quat_identity </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build a diagonal matrix. </p>
|
||||
<p>From GLM_GTX_matrix_operation extension. </p>
|
||||
<p>Create an identity quaternion. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gabd62dd6842db75540efe439e6af4f306"></a>
|
||||
<a class="anchor" id="ga668d9ec9964ced2b455d416677e1e8b9"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL mat<3, 4, T, P> glm::diagonal3x4 </td>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::quatLookAt </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">vec< 3, T, P > const & </td>
|
||||
<td class="paramname"><em>v</em></td><td>)</td>
|
||||
<td class="paramtype">vec< 3, T, Q > const & </td>
|
||||
<td class="paramname"><em>direction</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">vec< 3, T, Q > const & </td>
|
||||
<td class="paramname"><em>up</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build a look at quaternion based on the default handedness. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">direction</td><td>Desired direction of the camera. </td></tr>
|
||||
<tr><td class="paramname">up</td><td>Up vector, how the camera is oriented. Typically (0, 1, 0). </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga6f1b3fba52fcab952d0ab523177ff443"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::quatLookAtLH </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">vec< 3, T, Q > const & </td>
|
||||
<td class="paramname"><em>direction</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">vec< 3, T, Q > const & </td>
|
||||
<td class="paramname"><em>up</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build a left-handed look at quaternion. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">direction</td><td>Desired direction onto which the +z-axis gets mapped </td></tr>
|
||||
<tr><td class="paramname">up</td><td>Up vector, how the camera is oriented. Typically (0, 1, 0). </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gad30cbeb78315773b6d18d9d1c1c75b77"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::quatLookAtRH </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">vec< 3, T, Q > const & </td>
|
||||
<td class="paramname"><em>direction</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">vec< 3, T, Q > const & </td>
|
||||
<td class="paramname"><em>up</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build a right-handed look at quaternion. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">direction</td><td>Desired direction of the camera. </td></tr>
|
||||
<tr><td class="paramname">up</td><td>Up vector, how the camera is oriented. Typically (0, 1, 0). </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga49730f975e7f0ee3862a20b767aba583"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL vec<3, T, Q> glm::rotate </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>q</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">vec< 3, T, Q > const & </td>
|
||||
<td class="paramname"><em>v</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Returns quarternion square root. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> Rotates a 3 components vector by a quaternion.</dd>
|
||||
<dd>
|
||||
<a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga97a5f8af1d63056b85a53ac28042fe77"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL vec<4, T, Q> glm::rotate </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>q</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">vec< 4, T, Q > const & </td>
|
||||
<td class="paramname"><em>v</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Rotates a 4 components vector by a quaternion. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga5a729f33cbd904c9ca14cdf25d0a07e4"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::rotation </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">vec< 3, T, Q > const & </td>
|
||||
<td class="paramname"><em>orig</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">vec< 3, T, Q > const & </td>
|
||||
<td class="paramname"><em>dest</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Compute the rotation between two vectors. </p>
|
||||
<p>param orig vector, needs to be normalized param dest vector, needs to be normalized</p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gaf0ad63ac791b1f9a587e363837c2d538"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::shortMix </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>a</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Quaternion interpolation using the rotation short path. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gacfcb16619e166e672c4672aff50a565c"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::squad </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>q1</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>q2</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>s1</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>s2</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>h</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Compute a point on a path according squad equation. </p>
|
||||
<p>q1 and q2 are control points; s1 and s2 are intermediate control points.</p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga433955cb703d982427fb53b540d02f3d"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL mat<3, 3, T, Q> glm::toMat3 </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>x</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build a diagonal matrix. </p>
|
||||
<p>From GLM_GTX_matrix_operation extension. </p>
|
||||
<p>Converts a quaternion to a 3 * 3 matrix. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
<p>Definition at line <a class="el" href="a00084_source.html#l00134">134</a> of file <a class="el" href="a00084_source.html">gtx/quaternion.hpp</a>.</p>
|
||||
|
||||
<p>References <a class="el" href="a00160.html#ga6e88f15c94effe737c876d21ea0db101">glm::mat3_cast()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gad57a154d7d12d9cd006c9b03bd2adac6"></a>
|
||||
<a class="anchor" id="ga1fa0fb798c2715148e2e0358442bf895"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL mat<4, 2, T, P> glm::diagonal4x2 </td>
|
||||
<td class="memname">GLM_FUNC_DECL mat<4, 4, T, Q> glm::toMat4 </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">vec< 2, T, P > const & </td>
|
||||
<td class="paramname"><em>v</em></td><td>)</td>
|
||||
<td class="paramtype">tquat< T, Q > const & </td>
|
||||
<td class="paramname"><em>x</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build a diagonal matrix. </p>
|
||||
<p>From GLM_GTX_matrix_operation extension. </p>
|
||||
<p>Converts a quaternion to a 4 * 4 matrix. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
<p>Definition at line <a class="el" href="a00084_source.html#l00141">141</a> of file <a class="el" href="a00084_source.html">gtx/quaternion.hpp</a>.</p>
|
||||
|
||||
<p>References <a class="el" href="a00160.html#ga8e2085f17cd5aae423c04536524f11b3">glm::mat4_cast()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga012fcff72e35891559ea33db736c0211"></a>
|
||||
<a class="anchor" id="gae9be791077b7a612d9092a922bd13f86"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL mat<4, 3, T, P> glm::diagonal4x3 </td>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::toQuat </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">vec< 3, T, P > const & </td>
|
||||
<td class="paramname"><em>v</em></td><td>)</td>
|
||||
<td class="paramtype">mat< 3, 3, T, Q > const & </td>
|
||||
<td class="paramname"><em>x</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build a diagonal matrix. </p>
|
||||
<p>From GLM_GTX_matrix_operation extension. </p>
|
||||
<p>Converts a 3 * 3 matrix to a quaternion. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
<p>Definition at line <a class="el" href="a00084_source.html#l00148">148</a> of file <a class="el" href="a00084_source.html">gtx/quaternion.hpp</a>.</p>
|
||||
|
||||
<p>References <a class="el" href="a00160.html#ga03e023aec9acd561a28594bbc8a3abf6">glm::quat_cast()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga24d7a93eeaaac78b8e8cbc78b3804b23"></a>
|
||||
<a class="anchor" id="ga6c0a178ac9c7d23e1a6848045d83aa54"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">GLM_FUNC_DECL mat<4, 4, T, P> glm::diagonal4x4 </td>
|
||||
<td class="memname">GLM_FUNC_DECL tquat<T, Q> glm::toQuat </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">vec< 4, T, P > const & </td>
|
||||
<td class="paramname"><em>v</em></td><td>)</td>
|
||||
<td class="paramtype">mat< 4, 4, T, Q > const & </td>
|
||||
<td class="paramname"><em>x</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build a diagonal matrix. </p>
|
||||
<p>From GLM_GTX_matrix_operation extension. </p>
|
||||
<p>Converts a 4 * 4 matrix to a quaternion. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00212.html" title="Include <glm/gtx/quaternion.hpp> to use the features of this extension. ">GLM_GTX_quaternion</a> </dd></dl>
|
||||
|
||||
<p>Definition at line <a class="el" href="a00084_source.html#l00155">155</a> of file <a class="el" href="a00084_source.html">gtx/quaternion.hpp</a>.</p>
|
||||
|
||||
<p>References <a class="el" href="a00160.html#ga03e023aec9acd561a28594bbc8a3abf6">glm::quat_cast()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user