mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
565 lines
28 KiB
HTML
565 lines
28 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"/>
|
|
<title>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="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="projectlogo"><img alt="Logo" src="logo.png"/></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.2 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">GLM_GTX_quaternion</div> </div>
|
|
<div class="ingroups"><a class="el" href="a00139.html">GTX Extensions (Experimental)</a></div></div><!--header-->
|
|
<div class="contents">
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:ga57df84905f34b0d884ff5e2ac9a4d776"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:ga57df84905f34b0d884ff5e2ac9a4d776"><td class="memTemplItemLeft" align="right" valign="top">detail::tvec3< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#ga57df84905f34b0d884ff5e2ac9a4d776">cross</a> (detail::tquat< valType > const &q, detail::tvec3< valType > const &v)</td></tr>
|
|
<tr class="separator:ga57df84905f34b0d884ff5e2ac9a4d776"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gacd88ee5f0938469119199bdb216c68a1"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:gacd88ee5f0938469119199bdb216c68a1"><td class="memTemplItemLeft" align="right" valign="top">detail::tvec3< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#gacd88ee5f0938469119199bdb216c68a1">cross</a> (detail::tvec3< valType > const &v, detail::tquat< valType > const &q)</td></tr>
|
|
<tr class="separator:gacd88ee5f0938469119199bdb216c68a1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gae94ef4f3c0dd37dd65a95de207d1a27a"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:gae94ef4f3c0dd37dd65a95de207d1a27a"><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#gae94ef4f3c0dd37dd65a95de207d1a27a">exp</a> (detail::tquat< valType > const &q, valType const &exponent)</td></tr>
|
|
<tr class="separator:gae94ef4f3c0dd37dd65a95de207d1a27a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa4574d2111d8c55c0e5c531706c0e20d"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:gaa4574d2111d8c55c0e5c531706c0e20d"><td class="memTemplItemLeft" align="right" valign="top">valType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#gaa4574d2111d8c55c0e5c531706c0e20d">extractRealComponent</a> (detail::tquat< valType > const &q)</td></tr>
|
|
<tr class="separator:gaa4574d2111d8c55c0e5c531706c0e20d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga804e80b331a83eed2ed71a5c985593cd"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:ga804e80b331a83eed2ed71a5c985593cd"><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#ga804e80b331a83eed2ed71a5c985593cd">fastMix</a> (detail::tquat< T > const &x, detail::tquat< T > const &y, T const &a)</td></tr>
|
|
<tr class="separator:ga804e80b331a83eed2ed71a5c985593cd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gadf15938f0260ed8894cc39be603fc4e9"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:gadf15938f0260ed8894cc39be603fc4e9"><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#gadf15938f0260ed8894cc39be603fc4e9">intermediate</a> (detail::tquat< valType > const &prev, detail::tquat< valType > const &curr, detail::tquat< valType > const &next)</td></tr>
|
|
<tr class="separator:gadf15938f0260ed8894cc39be603fc4e9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga68d8d03cc87b3980abec4d80534f3d8e"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:ga68d8d03cc87b3980abec4d80534f3d8e"><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#ga68d8d03cc87b3980abec4d80534f3d8e">log</a> (detail::tquat< valType > const &q)</td></tr>
|
|
<tr class="separator:ga68d8d03cc87b3980abec4d80534f3d8e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7765f7d8a3399af25f8bc7956a77c7b2"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:ga7765f7d8a3399af25f8bc7956a77c7b2"><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#ga7765f7d8a3399af25f8bc7956a77c7b2">pow</a> (detail::tquat< valType > const &x, valType const &y)</td></tr>
|
|
<tr class="separator:ga7765f7d8a3399af25f8bc7956a77c7b2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad1ada3be83514169fed6054b4e68b5ca"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:gad1ada3be83514169fed6054b4e68b5ca"><td class="memTemplItemLeft" align="right" valign="top">detail::tvec3< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#gad1ada3be83514169fed6054b4e68b5ca">rotate</a> (detail::tquat< valType > const &q, detail::tvec3< valType > const &v)</td></tr>
|
|
<tr class="separator:gad1ada3be83514169fed6054b4e68b5ca"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga765b903facf3c4e325cab32cba75d9be"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:ga765b903facf3c4e325cab32cba75d9be"><td class="memTemplItemLeft" align="right" valign="top">detail::tvec4< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#ga765b903facf3c4e325cab32cba75d9be">rotate</a> (detail::tquat< valType > const &q, detail::tvec4< valType > const &v)</td></tr>
|
|
<tr class="separator:ga765b903facf3c4e325cab32cba75d9be"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gae2cb4ac4676a57fb6db64aa515e608ab"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:gae2cb4ac4676a57fb6db64aa515e608ab"><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#gae2cb4ac4676a57fb6db64aa515e608ab">shortMix</a> (detail::tquat< T > const &x, detail::tquat< T > const &y, T const &a)</td></tr>
|
|
<tr class="separator:gae2cb4ac4676a57fb6db64aa515e608ab"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga3e9e70938d0e5528edddadb175f8eda4"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:ga3e9e70938d0e5528edddadb175f8eda4"><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#ga3e9e70938d0e5528edddadb175f8eda4">squad</a> (detail::tquat< valType > const &q1, detail::tquat< valType > const &q2, detail::tquat< valType > const &s1, detail::tquat< valType > const &s2, valType const &h)</td></tr>
|
|
<tr class="separator:ga3e9e70938d0e5528edddadb175f8eda4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaae1a23ba337628402dbe68d6567a9444"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:gaae1a23ba337628402dbe68d6567a9444"><td class="memTemplItemLeft" align="right" valign="top">detail::tmat3x3< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#gaae1a23ba337628402dbe68d6567a9444">toMat3</a> (detail::tquat< valType > const &x)</td></tr>
|
|
<tr class="separator:gaae1a23ba337628402dbe68d6567a9444"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga14c3426d79fe82b07cd1f3610a18d9f5"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:ga14c3426d79fe82b07cd1f3610a18d9f5"><td class="memTemplItemLeft" align="right" valign="top">detail::tmat4x4< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#ga14c3426d79fe82b07cd1f3610a18d9f5">toMat4</a> (detail::tquat< valType > const &x)</td></tr>
|
|
<tr class="separator:ga14c3426d79fe82b07cd1f3610a18d9f5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga70cb5b2da64a17632dbf151dcfec0150"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:ga70cb5b2da64a17632dbf151dcfec0150"><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#ga70cb5b2da64a17632dbf151dcfec0150">toQuat</a> (detail::tmat3x3< valType > const &x)</td></tr>
|
|
<tr class="separator:ga70cb5b2da64a17632dbf151dcfec0150"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga25b6237ccb6c4a69d57a181aac99aa43"><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
|
<tr class="memitem:ga25b6237ccb6c4a69d57a181aac99aa43"><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00198.html#ga25b6237ccb6c4a69d57a181aac99aa43">toQuat</a> (detail::tmat4x4< valType > const &x)</td></tr>
|
|
<tr class="separator:ga25b6237ccb6c4a69d57a181aac99aa43"><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="a00077.html" title="OpenGL Mathematics (glm.g-truc.net)">glm/gtx/quaternion.hpp</a>> need to be included to use these functionalities. </p>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a class="anchor" id="ga57df84905f34b0d884ff5e2ac9a4d776"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tvec3<valType> glm::cross </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tquat< valType > const & </td>
|
|
<td class="paramname"><em>q</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tvec3< valType > 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gacd88ee5f0938469119199bdb216c68a1"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tvec3<valType> glm::cross </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tvec3< valType > const & </td>
|
|
<td class="paramname"><em>v</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tquat< valType > 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gae94ef4f3c0dd37dd65a95de207d1a27a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tquat<valType> glm::exp </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tquat< valType > const & </td>
|
|
<td class="paramname"><em>q</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">valType const & </td>
|
|
<td class="paramname"><em>exponent</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaa4574d2111d8c55c0e5c531706c0e20d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">valType glm::extractRealComponent </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tquat< valType > 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga804e80b331a83eed2ed71a5c985593cd"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tquat<T> glm::fastMix </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tquat< T > const & </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tquat< T > 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gadf15938f0260ed8894cc39be603fc4e9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tquat<valType> glm::intermediate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tquat< valType > const & </td>
|
|
<td class="paramname"><em>prev</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tquat< valType > const & </td>
|
|
<td class="paramname"><em>curr</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tquat< valType > 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga68d8d03cc87b3980abec4d80534f3d8e"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tquat<valType> glm::log </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tquat< valType > 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga7765f7d8a3399af25f8bc7956a77c7b2"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tquat<valType> glm::pow </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tquat< valType > const & </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">valType 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gad1ada3be83514169fed6054b4e68b5ca"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tvec3<valType> glm::rotate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tquat< valType > const & </td>
|
|
<td class="paramname"><em>q</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tvec3< valType > 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="a00198.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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga765b903facf3c4e325cab32cba75d9be"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tvec4<valType> glm::rotate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tquat< valType > const & </td>
|
|
<td class="paramname"><em>q</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tvec4< valType > 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gae2cb4ac4676a57fb6db64aa515e608ab"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tquat<T> glm::shortMix </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tquat< T > const & </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tquat< T > 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga3e9e70938d0e5528edddadb175f8eda4"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tquat<valType> glm::squad </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tquat< valType > const & </td>
|
|
<td class="paramname"><em>q1</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tquat< valType > const & </td>
|
|
<td class="paramname"><em>q2</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tquat< valType > const & </td>
|
|
<td class="paramname"><em>s1</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tquat< valType > const & </td>
|
|
<td class="paramname"><em>s2</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">valType 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaae1a23ba337628402dbe68d6567a9444"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tmat3x3<valType> glm::toMat3 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tquat< valType > 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="a00077_source.html#l00149">149</a> of file <a class="el" href="a00077_source.html">gtx/quaternion.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="a00153.html#gae04ce320008c9bec0037b4ba21853cb5">glm::mat3_cast()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga14c3426d79fe82b07cd1f3610a18d9f5"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tmat4x4<valType> glm::toMat4 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tquat< valType > 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="a00077_source.html#l00156">156</a> of file <a class="el" href="a00077_source.html">gtx/quaternion.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="a00153.html#ga8c376eb15971eb52d85df5ee26825627">glm::mat4_cast()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga70cb5b2da64a17632dbf151dcfec0150"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tquat<valType> glm::toQuat </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tmat3x3< valType > 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="a00077_source.html#l00163">163</a> of file <a class="el" href="a00077_source.html">gtx/quaternion.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="a00153.html#ga4d37447d81ceade1d10d68c995a4d881">glm::quat_cast()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga25b6237ccb6c4a69d57a181aac99aa43"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tquat<valType> glm::toQuat </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tmat4x4< valType > 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="a00198.html" title="Extented quaternion types and functions.">GLM_GTX_quaternion</a> </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="a00077_source.html#l00170">170</a> of file <a class="el" href="a00077_source.html">gtx/quaternion.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="a00153.html#ga4d37447d81ceade1d10d68c995a4d881">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.2
|
|
</small></address>
|
|
</body>
|
|
</html>
|