<trclass="memitem:ga9099fd5ccf16c245f4b73ae66a56cabf"><tdclass="memTemplParams"colspan="2">template<typename T , precision P></td></tr>
<trclass="memitem:ga9099fd5ccf16c245f4b73ae66a56cabf"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL tquat< T, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00175.html#ga9099fd5ccf16c245f4b73ae66a56cabf">lerp</a> (tquat< T, P > const &x, tquat< T, P > const &y, T const &a)</td></tr>
<trclass="memitem:gaf8a31672f9c0582d1a0bc2a122ee2153"><tdclass="memTemplParams"colspan="2">template<typename T , precision P></td></tr>
<trclass="memitem:gaf8a31672f9c0582d1a0bc2a122ee2153"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL tquat< T, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00175.html#gaf8a31672f9c0582d1a0bc2a122ee2153">mix</a> (tquat< T, P > const &x, tquat< T, P > const &y, T const &a)</td></tr>
<trclass="memitem:gaa8f42979c921e450ff2812fb43c25702"><tdclass="memTemplParams"colspan="2">template<typename T , precision P></td></tr>
<trclass="memitem:gaa8f42979c921e450ff2812fb43c25702"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL tquat< T, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00175.html#gaa8f42979c921e450ff2812fb43c25702">rotate</a> (tquat< T, P > const &q, T const &angle, tvec3< T, P > const &axis)</td></tr>
<trclass="memitem:ga666d76650f3fa949e7aead0455d531c6"><tdclass="memTemplParams"colspan="2">template<typename T , precision P></td></tr>
<trclass="memitem:ga666d76650f3fa949e7aead0455d531c6"><tdclass="memTemplItemLeft"align="right"valign="top">GLM_FUNC_DECL tquat< T, P > </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="a00175.html#ga666d76650f3fa949e7aead0455d531c6">slerp</a> (tquat< T, P > const &x, tquat< T, P > const &y, T const &a)</td></tr>
<p>Defines a templated quaternion type and several quaternion operations. </p>
<p><<aclass="el"href="a00094.html"title="OpenGL Mathematics (glm.g-truc.net) ">glm/gtc/quaternion.hpp</a>> need to be included to use these functionalities. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<tr><tdclass="paramname">angle</td><td>Angle expressed in radians. </td></tr>
<tr><tdclass="paramname">axis</td><td>Axis of the quaternion, must be normalized.</td></tr>
</table>
</dd>
</dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<tdclass="paramtype">tquat< T, P > const & </td>
<tdclass="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns the q rotation axis. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<tdclass="paramtype">tquat< T, P > const & </td>
<tdclass="paramname"><em>q</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns the q conjugate. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<tdclass="paramtype">quatType< T, P > const & </td>
<tdclass="paramname"><em>x</em>, </td>
</tr>
<tr>
<tdclass="paramkey"></td>
<td></td>
<tdclass="paramtype">quatType< T, P > const & </td>
<tdclass="paramname"><em>y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns dot product of q1 and q2, i.e., q1[0] * q2[0] + q1[1] * q2[1] + ... </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<tdclass="paramtype">tquat< T, P > const & </td>
<tdclass="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns euler angles, yitch as x, yaw as y, roll as z. </p>
<p>The result is expressed in radians if GLM_FORCE_RADIANS is defined or degrees otherwise.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<tdclass="paramtype">tquat< T, P > const & </td>
<tdclass="paramname"><em>q</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns the q inverse. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<tdclass="memname">GLM_FUNC_DECL T glm::length </td>
<td>(</td>
<tdclass="paramtype">tquat< T, P > const & </td>
<tdclass="paramname"><em>q</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns the length of the quaternion. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<tdclass="paramtype">tquat< T, P > const & </td>
<tdclass="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Converts a quaternion to a 3 * 3 matrix. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<p>Referenced by <aclass="el"href="a00095_source.html#l00149">glm::toMat3()</a>.</p>
<tdclass="paramtype">tquat< T, P > const & </td>
<tdclass="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Converts a quaternion to a 4 * 4 matrix. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<p>Referenced by <aclass="el"href="a00095_source.html#l00156">glm::toMat4()</a>.</p>
<tdclass="paramtype">tquat< T, P > const & </td>
<tdclass="paramname"><em>x</em>, </td>
</tr>
<tr>
<tdclass="paramkey"></td>
<td></td>
<tdclass="paramtype">tquat< T, P > const & </td>
<tdclass="paramname"><em>y</em>, </td>
</tr>
<tr>
<tdclass="paramkey"></td>
<td></td>
<tdclass="paramtype">T const & </td>
<tdclass="paramname"><em>a</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Spherical linear interpolation of two quaternions. </p>
<p>The interpolation is oriented and the rotation is performed at constant speed. For short path spherical linear interpolation, use the slerp function.</p>
<tr><tdclass="paramname">T</td><td>Value type used to build the quaternion. Supported: half, float or double. </td></tr>
</table>
</dd>
</dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd>
<dd>
- slerp(tquat<T, P> const & x, tquat<T, P> const & y, T const & a) </dd></dl>
<tdclass="paramtype">tquat< T, P > const & </td>
<tdclass="paramname"><em>q</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns the normalized quaternion. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<tdclass="paramtype">tmat3x3< T, P > const & </td>
<tdclass="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Converts a 3 * 3 matrix to a quaternion. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<p>Referenced by <aclass="el"href="a00095_source.html#l00163">glm::toQuat()</a>.</p>
<tdclass="paramtype">tmat4x4< T, P > const & </td>
<tdclass="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><divclass="memdoc">
<p>Converts a 4 * 4 matrix to a quaternion. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<tr><tdclass="paramname">angle</td><td>Angle expressed in radians. </td></tr>
<tr><tdclass="paramname">axis</td><td>Axis of the rotation</td></tr>
</table>
</dd>
</dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<tr><tdclass="paramname">T</td><td>Value type used to build the quaternion. Supported: half, float or double. </td></tr>
</table>
</dd>
</dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="a00175.html"title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a></dd></dl>
<p>Spherical linear interpolation of two quaternions. </p>
<p>Definition at line <aclass="el"href="a00015_source.html#l00072">72</a> of file <aclass="el"href="a00015_source.html">compatibility.hpp</a>.</p>