mirror of
https://github.com/g-truc/glm.git
synced 2024-11-27 10:44:34 +00:00
812 lines
44 KiB
HTML
812 lines
44 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<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_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>
|
||
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
||
|
<script type="text/javascript" src="search/search.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function() { init_search(); });
|
||
|
</script>
|
||
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||
|
<div id="titlearea">
|
||
|
<table cellspacing="0" cellpadding="0">
|
||
|
<tbody>
|
||
|
<tr style="height: 56px;">
|
||
|
<td id="projectalign" style="padding-left: 0.5em;">
|
||
|
<div id="projectname">0.9.9 API documenation
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<!-- end header part -->
|
||
|
<!-- Generated by Doxygen 1.8.10 -->
|
||
|
<script type="text/javascript">
|
||
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||
|
</script>
|
||
|
<div id="navrow1" class="tabs">
|
||
|
<ul class="tablist">
|
||
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
||
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
||
|
<li><a href="files.html"><span>Files</span></a></li>
|
||
|
<li>
|
||
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
||
|
<span class="left">
|
||
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
||
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
|
alt=""/>
|
||
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
||
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
||
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
||
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
||
|
</span><span class="right">
|
||
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div><!-- top -->
|
||
|
<!-- window showing the filter options -->
|
||
|
<div id="MSearchSelectWindow"
|
||
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||
|
</div>
|
||
|
|
||
|
<!-- iframe showing the search results (closed by default) -->
|
||
|
<div id="MSearchResultsWindow">
|
||
|
<iframe src="javascript:void(0)" frameborder="0"
|
||
|
name="MSearchResults" id="MSearchResults">
|
||
|
</iframe>
|
||
|
</div>
|
||
|
|
||
|
<div class="header">
|
||
|
<div class="summary">
|
||
|
<a href="#func-members">Functions</a> </div>
|
||
|
<div class="headertitle">
|
||
|
<div class="title">GLM_GTX_quaternion<div class="ingroups"><a class="el" href="a00157.html">GTX Extensions (Experimental)</a></div></div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
|
||
|
<p>Extented quaternion types and functions.
|
||
|
<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:ga10bf31312088e4507db507d059a2fcf6"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga10bf31312088e4507db507d059a2fcf6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< 3, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga10bf31312088e4507db507d059a2fcf6">cross</a> (tquat< T, P > const &q, vec< 3, T, P > const &v)</td></tr>
|
||
|
<tr class="memdesc:ga10bf31312088e4507db507d059a2fcf6"><td class="mdescLeft"> </td><td class="mdescRight">Compute a cross product between a quaternion and a vector. <a href="a00225.html#ga10bf31312088e4507db507d059a2fcf6">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga10bf31312088e4507db507d059a2fcf6"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:gae15afc8cf56c6758ab7f098e5f166618"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:gae15afc8cf56c6758ab7f098e5f166618"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< 3, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#gae15afc8cf56c6758ab7f098e5f166618">cross</a> (vec< 3, T, P > const &v, tquat< T, P > const &q)</td></tr>
|
||
|
<tr class="memdesc:gae15afc8cf56c6758ab7f098e5f166618"><td class="mdescLeft"> </td><td class="mdescRight">Compute a cross product between a vector and a quaternion. <a href="a00225.html#gae15afc8cf56c6758ab7f098e5f166618">More...</a><br /></td></tr>
|
||
|
<tr class="separator:gae15afc8cf56c6758ab7f098e5f166618"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga17295173d4c2b5ae49b84e9993b63a62"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga17295173d4c2b5ae49b84e9993b63a62"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga17295173d4c2b5ae49b84e9993b63a62">exp</a> (tquat< T, P > const &q)</td></tr>
|
||
|
<tr class="memdesc:ga17295173d4c2b5ae49b84e9993b63a62"><td class="mdescLeft"> </td><td class="mdescRight">Returns a exp of a quaternion. <a href="a00225.html#ga17295173d4c2b5ae49b84e9993b63a62">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga17295173d4c2b5ae49b84e9993b63a62"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga90de879d97487ec804522dd418e5d8a0"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga90de879d97487ec804522dd418e5d8a0"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga90de879d97487ec804522dd418e5d8a0">extractRealComponent</a> (tquat< T, P > const &q)</td></tr>
|
||
|
<tr class="memdesc:ga90de879d97487ec804522dd418e5d8a0"><td class="mdescLeft"> </td><td class="mdescRight">Extract the real component of a quaternion. <a href="a00225.html#ga90de879d97487ec804522dd418e5d8a0">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga90de879d97487ec804522dd418e5d8a0"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:gac11bf550f17d1da14423595a27575084"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:gac11bf550f17d1da14423595a27575084"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#gac11bf550f17d1da14423595a27575084">fastMix</a> (tquat< T, P > const &x, tquat< T, P > const &y, T const &a)</td></tr>
|
||
|
<tr class="memdesc:gac11bf550f17d1da14423595a27575084"><td class="mdescLeft"> </td><td class="mdescRight">Quaternion normalized linear interpolation. <a href="a00225.html#gac11bf550f17d1da14423595a27575084">More...</a><br /></td></tr>
|
||
|
<tr class="separator:gac11bf550f17d1da14423595a27575084"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga56abae85b3669c866e91f3c57b298b9c"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga56abae85b3669c866e91f3c57b298b9c"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga56abae85b3669c866e91f3c57b298b9c">intermediate</a> (tquat< T, P > const &prev, tquat< T, P > const &curr, tquat< T, P > const &next)</td></tr>
|
||
|
<tr class="memdesc:ga56abae85b3669c866e91f3c57b298b9c"><td class="mdescLeft"> </td><td class="mdescRight">Returns an intermediate control point for squad interpolation. <a href="a00225.html#ga56abae85b3669c866e91f3c57b298b9c">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga56abae85b3669c866e91f3c57b298b9c"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga02b45352c7ac345cabc9e877314acda6"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga02b45352c7ac345cabc9e877314acda6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga02b45352c7ac345cabc9e877314acda6">length2</a> (tquat< T, P > const &q)</td></tr>
|
||
|
<tr class="memdesc:ga02b45352c7ac345cabc9e877314acda6"><td class="mdescLeft"> </td><td class="mdescRight">Returns the squared length of x. <a href="a00225.html#ga02b45352c7ac345cabc9e877314acda6">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga02b45352c7ac345cabc9e877314acda6"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga791f42e134bfe97fc9c96f4668dd7489"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga791f42e134bfe97fc9c96f4668dd7489"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga791f42e134bfe97fc9c96f4668dd7489">log</a> (tquat< T, P > const &q)</td></tr>
|
||
|
<tr class="memdesc:ga791f42e134bfe97fc9c96f4668dd7489"><td class="mdescLeft"> </td><td class="mdescRight">Returns a log of a quaternion. <a href="a00225.html#ga791f42e134bfe97fc9c96f4668dd7489">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga791f42e134bfe97fc9c96f4668dd7489"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga42a0cf206c59eaeff4c67dd62e09a580"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga42a0cf206c59eaeff4c67dd62e09a580"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga42a0cf206c59eaeff4c67dd62e09a580">pow</a> (tquat< T, P > const &x, T const &y)</td></tr>
|
||
|
<tr class="memdesc:ga42a0cf206c59eaeff4c67dd62e09a580"><td class="mdescLeft"> </td><td class="mdescRight">Returns x raised to the y power. <a href="a00225.html#ga42a0cf206c59eaeff4c67dd62e09a580">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga42a0cf206c59eaeff4c67dd62e09a580"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga16f6d4192a56da6f33cec89ee41687bb"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga16f6d4192a56da6f33cec89ee41687bb"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga16f6d4192a56da6f33cec89ee41687bb">quat_identity</a> ()</td></tr>
|
||
|
<tr class="memdesc:ga16f6d4192a56da6f33cec89ee41687bb"><td class="mdescLeft"> </td><td class="mdescRight">Create an identity quaternion. <a href="a00225.html#ga16f6d4192a56da6f33cec89ee41687bb">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga16f6d4192a56da6f33cec89ee41687bb"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:gaca168662c07bf78ba530c989591b9424"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:gaca168662c07bf78ba530c989591b9424"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#gaca168662c07bf78ba530c989591b9424">quatLookAt</a> (vec< 3, T, P > const &direction, vec< 3, T, P > const &up)</td></tr>
|
||
|
<tr class="memdesc:gaca168662c07bf78ba530c989591b9424"><td class="mdescLeft"> </td><td class="mdescRight">Build a look at quaternion based on the default handedness. <a href="a00225.html#gaca168662c07bf78ba530c989591b9424">More...</a><br /></td></tr>
|
||
|
<tr class="separator:gaca168662c07bf78ba530c989591b9424"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga124ad95675889e6ca9c4c1bd19325159"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga124ad95675889e6ca9c4c1bd19325159"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga124ad95675889e6ca9c4c1bd19325159">quatLookAtLH</a> (vec< 3, T, P > const &direction, vec< 3, T, P > const &up)</td></tr>
|
||
|
<tr class="memdesc:ga124ad95675889e6ca9c4c1bd19325159"><td class="mdescLeft"> </td><td class="mdescRight">Build a left-handed look at quaternion. <a href="a00225.html#ga124ad95675889e6ca9c4c1bd19325159">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga124ad95675889e6ca9c4c1bd19325159"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga802477c77eede64915b22df789640b39"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga802477c77eede64915b22df789640b39"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga802477c77eede64915b22df789640b39">quatLookAtRH</a> (vec< 3, T, P > const &direction, vec< 3, T, P > const &up)</td></tr>
|
||
|
<tr class="memdesc:ga802477c77eede64915b22df789640b39"><td class="mdescLeft"> </td><td class="mdescRight">Build a right-handed look at quaternion. <a href="a00225.html#ga802477c77eede64915b22df789640b39">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga802477c77eede64915b22df789640b39"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga38a6a9466368f57164081d689f41e11d"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga38a6a9466368f57164081d689f41e11d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< 3, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga38a6a9466368f57164081d689f41e11d">rotate</a> (tquat< T, P > const &q, vec< 3, T, P > const &v)</td></tr>
|
||
|
<tr class="memdesc:ga38a6a9466368f57164081d689f41e11d"><td class="mdescLeft"> </td><td class="mdescRight">Returns quarternion square root. <a href="a00225.html#ga38a6a9466368f57164081d689f41e11d">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga38a6a9466368f57164081d689f41e11d"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga19a2159102e9dbfd600fcb49ee0de181"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga19a2159102e9dbfd600fcb49ee0de181"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< 4, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga19a2159102e9dbfd600fcb49ee0de181">rotate</a> (tquat< T, P > const &q, vec< 4, T, P > const &v)</td></tr>
|
||
|
<tr class="memdesc:ga19a2159102e9dbfd600fcb49ee0de181"><td class="mdescLeft"> </td><td class="mdescRight">Rotates a 4 components vector by a quaternion. <a href="a00225.html#ga19a2159102e9dbfd600fcb49ee0de181">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga19a2159102e9dbfd600fcb49ee0de181"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:gaeee68c088d73076c6fff9825f07fd0ed"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:gaeee68c088d73076c6fff9825f07fd0ed"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#gaeee68c088d73076c6fff9825f07fd0ed">rotation</a> (vec< 3, T, P > const &orig, vec< 3, T, P > const &dest)</td></tr>
|
||
|
<tr class="memdesc:gaeee68c088d73076c6fff9825f07fd0ed"><td class="mdescLeft"> </td><td class="mdescRight">Compute the rotation between two vectors. <a href="a00225.html#gaeee68c088d73076c6fff9825f07fd0ed">More...</a><br /></td></tr>
|
||
|
<tr class="separator:gaeee68c088d73076c6fff9825f07fd0ed"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga3534443de2a1a806f386976546cddc81"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga3534443de2a1a806f386976546cddc81"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga3534443de2a1a806f386976546cddc81">shortMix</a> (tquat< T, P > const &x, tquat< T, P > const &y, T const &a)</td></tr>
|
||
|
<tr class="memdesc:ga3534443de2a1a806f386976546cddc81"><td class="mdescLeft"> </td><td class="mdescRight">Quaternion interpolation using the rotation short path. <a href="a00225.html#ga3534443de2a1a806f386976546cddc81">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga3534443de2a1a806f386976546cddc81"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:gae75f537becdf2b1381b4482ec96e6c82"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:gae75f537becdf2b1381b4482ec96e6c82"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#gae75f537becdf2b1381b4482ec96e6c82">squad</a> (tquat< T, P > const &q1, tquat< T, P > const &q2, tquat< T, P > const &s1, tquat< T, P > const &s2, T const &h)</td></tr>
|
||
|
<tr class="memdesc:gae75f537becdf2b1381b4482ec96e6c82"><td class="mdescLeft"> </td><td class="mdescRight">Compute a point on a path according squad equation. <a href="a00225.html#gae75f537becdf2b1381b4482ec96e6c82">More...</a><br /></td></tr>
|
||
|
<tr class="separator:gae75f537becdf2b1381b4482ec96e6c82"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:gaa14b7540e32221fd86e03cbeb047ade9"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:gaa14b7540e32221fd86e03cbeb047ade9"><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="a00225.html#gaa14b7540e32221fd86e03cbeb047ade9">toMat3</a> (tquat< T, P > const &x)</td></tr>
|
||
|
<tr class="memdesc:gaa14b7540e32221fd86e03cbeb047ade9"><td class="mdescLeft"> </td><td class="mdescRight">Converts a quaternion to a 3 * 3 matrix. <a href="a00225.html#gaa14b7540e32221fd86e03cbeb047ade9">More...</a><br /></td></tr>
|
||
|
<tr class="separator:gaa14b7540e32221fd86e03cbeb047ade9"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga512c4ed2104e6ae25d754d22f4f9e43c"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga512c4ed2104e6ae25d754d22f4f9e43c"><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="a00225.html#ga512c4ed2104e6ae25d754d22f4f9e43c">toMat4</a> (tquat< T, P > const &x)</td></tr>
|
||
|
<tr class="memdesc:ga512c4ed2104e6ae25d754d22f4f9e43c"><td class="mdescLeft"> </td><td class="mdescRight">Converts a quaternion to a 4 * 4 matrix. <a href="a00225.html#ga512c4ed2104e6ae25d754d22f4f9e43c">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga512c4ed2104e6ae25d754d22f4f9e43c"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga7af1f8c048d3502cb28051544667824d"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga7af1f8c048d3502cb28051544667824d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#ga7af1f8c048d3502cb28051544667824d">toQuat</a> (mat< 3, 3, T, P > const &x)</td></tr>
|
||
|
<tr class="memdesc:ga7af1f8c048d3502cb28051544667824d"><td class="mdescLeft"> </td><td class="mdescRight">Converts a 3 * 3 matrix to a quaternion. <a href="a00225.html#ga7af1f8c048d3502cb28051544667824d">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga7af1f8c048d3502cb28051544667824d"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:gaa3f56230569af325b3ec3ff4abb82dd0"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:gaa3f56230569af325b3ec3ff4abb82dd0"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL tquat< T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00225.html#gaa3f56230569af325b3ec3ff4abb82dd0">toQuat</a> (mat< 4, 4, T, P > const &x)</td></tr>
|
||
|
<tr class="memdesc:gaa3f56230569af325b3ec3ff4abb82dd0"><td class="mdescLeft"> </td><td class="mdescRight">Converts a 4 * 4 matrix to a quaternion. <a href="a00225.html#gaa3f56230569af325b3ec3ff4abb82dd0">More...</a><br /></td></tr>
|
||
|
<tr class="separator:gaa3f56230569af325b3ec3ff4abb82dd0"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table>
|
||
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||
|
<p>Extented quaternion types and functions. </p>
|
||
|
<p><<a class="el" href="a00092.html" title="GLM_GTX_quaternion ">glm/gtx/quaternion.hpp</a>> need to be included to use these functionalities. </p>
|
||
|
<h2 class="groupheader">Function Documentation</h2>
|
||
|
<a class="anchor" id="ga10bf31312088e4507db507d059a2fcf6"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL vec<3, T, P> glm::cross </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>q</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">vec< 3, T, P > 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="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gae15afc8cf56c6758ab7f098e5f166618"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL vec<3, T, P> glm::cross </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>v</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">tquat< T, P > 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="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga17295173d4c2b5ae49b84e9993b63a62"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::exp </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>q</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Returns a exp of a quaternion. </p>
|
||
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga90de879d97487ec804522dd418e5d8a0"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL T glm::extractRealComponent </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>q</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Extract the real component of a quaternion. </p>
|
||
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gac11bf550f17d1da14423595a27575084"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::fastMix </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>x</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">tquat< T, P > 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="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga56abae85b3669c866e91f3c57b298b9c"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::intermediate </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>prev</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>curr</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">tquat< T, P > 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="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga02b45352c7ac345cabc9e877314acda6"></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, P > const & </td>
|
||
|
<td class="paramname"><em>q</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Returns the squared length of x. </p>
|
||
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga791f42e134bfe97fc9c96f4668dd7489"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::log </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>q</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Returns a log of a quaternion. </p>
|
||
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga42a0cf206c59eaeff4c67dd62e09a580"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::pow </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">tquat< T, P > 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="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga16f6d4192a56da6f33cec89ee41687bb"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::quat_identity </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Create an identity quaternion. </p>
|
||
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gaca168662c07bf78ba530c989591b9424"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::quatLookAt </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>direction</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">vec< 3, T, P > 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="ga124ad95675889e6ca9c4c1bd19325159"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::quatLookAtLH </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>direction</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">vec< 3, T, P > 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="ga802477c77eede64915b22df789640b39"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::quatLookAtRH </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>direction</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">vec< 3, T, P > 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="ga38a6a9466368f57164081d689f41e11d"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL vec<3, T, P> glm::rotate </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>q</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">vec< 3, T, P > 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="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> Rotates a 3 components vector by a quaternion.</dd>
|
||
|
<dd>
|
||
|
<a class="el" href="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga19a2159102e9dbfd600fcb49ee0de181"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL vec<4, T, P> glm::rotate </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>q</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">vec< 4, T, P > 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="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gaeee68c088d73076c6fff9825f07fd0ed"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::rotation </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>orig</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">vec< 3, T, P > 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="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga3534443de2a1a806f386976546cddc81"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::shortMix </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>x</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">tquat< T, P > 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="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gae75f537becdf2b1381b4482ec96e6c82"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::squad </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>q1</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>q2</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>s1</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">tquat< T, P > 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="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gaa14b7540e32221fd86e03cbeb047ade9"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL mat<3, 3, T, P> glm::toMat3 </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>x</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Converts a quaternion to a 3 * 3 matrix. </p>
|
||
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
<p>Definition at line <a class="el" href="a00092_source.html#l00134">134</a> of file <a class="el" href="a00092_source.html">gtx/quaternion.hpp</a>.</p>
|
||
|
|
||
|
<p>References <a class="el" href="a00174.html#ga903647421102a0ce39f06d10e4b14d3c">glm::mat3_cast()</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga512c4ed2104e6ae25d754d22f4f9e43c"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL mat<4, 4, T, P> glm::toMat4 </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">tquat< T, P > const & </td>
|
||
|
<td class="paramname"><em>x</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Converts a quaternion to a 4 * 4 matrix. </p>
|
||
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
<p>Definition at line <a class="el" href="a00092_source.html#l00141">141</a> of file <a class="el" href="a00092_source.html">gtx/quaternion.hpp</a>.</p>
|
||
|
|
||
|
<p>References <a class="el" href="a00174.html#ga2aab716151de566a3f6ec3bad49f3964">glm::mat4_cast()</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga7af1f8c048d3502cb28051544667824d"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::toQuat </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">mat< 3, 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>x</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Converts a 3 * 3 matrix to a quaternion. </p>
|
||
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
<p>Definition at line <a class="el" href="a00092_source.html#l00148">148</a> of file <a class="el" href="a00092_source.html">gtx/quaternion.hpp</a>.</p>
|
||
|
|
||
|
<p>References <a class="el" href="a00174.html#ga61f11ea26c2e7f2bb5e8bd3019c3f739">glm::quat_cast()</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gaa3f56230569af325b3ec3ff4abb82dd0"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL tquat<T, P> glm::toQuat </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">mat< 4, 4, T, P > const & </td>
|
||
|
<td class="paramname"><em>x</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Converts a 4 * 4 matrix to a quaternion. </p>
|
||
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00225.html" title="Extented quaternion types and functions. ">GLM_GTX_quaternion</a> </dd></dl>
|
||
|
|
||
|
<p>Definition at line <a class="el" href="a00092_source.html#l00155">155</a> of file <a class="el" href="a00092_source.html">gtx/quaternion.hpp</a>.</p>
|
||
|
|
||
|
<p>References <a class="el" href="a00174.html#ga61f11ea26c2e7f2bb5e8bd3019c3f739">glm::quat_cast()</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div><!-- contents -->
|
||
|
<!-- start footer part -->
|
||
|
<hr class="footer"/><address class="footer"><small>
|
||
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
||
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||
|
</a> 1.8.10
|
||
|
</small></address>
|
||
|
</body>
|
||
|
</html>
|