mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 02:04:35 +00:00
408 lines
22 KiB
HTML
408 lines
22 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"/>
|
||
|
<title>GLM: glm::gtc::quaternion Namespace Reference</title>
|
||
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||
|
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
||
|
</head>
|
||
|
<body>
|
||
|
<!-- Generated by Doxygen 1.6.1 -->
|
||
|
<div class="navigation" id="top">
|
||
|
<div class="tabs">
|
||
|
<ul>
|
||
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
||
|
<li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||
|
<li><a href="files.html"><span>Files</span></a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="tabs">
|
||
|
<ul>
|
||
|
<li><a href="namespaces.html"><span>Namespace List</span></a></li>
|
||
|
<li><a href="namespacemembers.html"><span>Namespace Members</span></a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="navpath"><a class="el" href="a00124.html">glm</a>::<a class="el" href="a00142.html">gtc</a>::<a class="el" href="a00148.html">quaternion</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="contents">
|
||
|
<h1>glm::gtc::quaternion Namespace Reference</h1>
|
||
|
<p>GLM_GTC_quaternion extension: Quaternion types and functions.
|
||
|
<a href="#_details">More...</a></p>
|
||
|
<table border="0" cellpadding="0" cellspacing="0">
|
||
|
<tr><td colspan="2"><h2>Typedefs</h2></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tquat< float > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00148.html#a60408579db470456070a3336295625a7">quat</a></td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Quaternion of floating-point numbers. <a href="#a60408579db470456070a3336295625a7"></a><br/></td></tr>
|
||
|
<tr><td colspan="2"><h2>Functions</h2></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#aef383347c7c121fb498bf98c9f3cd773">conjugate</a> (detail::tquat< valType > const &q)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the q conjugate. <a href="#aef383347c7c121fb498bf98c9f3cd773"></a><br/></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#a34ad81954b70e0b945f465ba48d95b02">cross</a> (detail::tquat< valType > const &q1, detail::tquat< valType > const &q2)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the cross product of q1 and q2. <a href="#a34ad81954b70e0b945f465ba48d95b02"></a><br/></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">valType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ad4495643e2d2da6b1a82c4e545356c13">dot</a> (detail::tquat< valType > const &q1, detail::tquat< valType > const &q2)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns dot product of q1 and q2, i.e., q1[0] * q2[0] + q1[1] * q2[1] + . <a href="#ad4495643e2d2da6b1a82c4e545356c13"></a><br/></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ad5838ef9535da0aab26e4c556bd5eab2">inverse</a> (detail::tquat< valType > const &q)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the q inverse. <a href="#ad5838ef9535da0aab26e4c556bd5eab2"></a><br/></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">valType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ab5b9ba59887e95689e75a578debed0c3">length</a> (detail::tquat< valType > const &q)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the length of the <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a> x. <a href="#ab5b9ba59887e95689e75a578debed0c3"></a><br/></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tmat3x3< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#a3f6d3a2eec09de0c3d191a6b5235a744">mat3_cast</a> (detail::tquat< valType > const &x)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a> to a 3 * 3 matrix. <a href="#a3f6d3a2eec09de0c3d191a6b5235a744"></a><br/></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tmat4x4< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#a09599c3024ab423b26d4c1b440893cb8">mat4_cast</a> (detail::tquat< valType > const &x)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a> to a 4 * 4 matrix. <a href="#a09599c3024ab423b26d4c1b440893cb8"></a><br/></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#a776318ba7199fdef77b40b54528ef3f0">mix</a> (detail::tquat< valType > const &x, detail::tquat< valType > const &y, valType const &a)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a LERP interpolated <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a> of x and y according a. <a href="#a776318ba7199fdef77b40b54528ef3f0"></a><br/></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#ad0ae9c01fe65d0e739178f67cab4e2bc">normalize</a> (detail::tquat< valType > const &q)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the normalized <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a> of from x. <a href="#ad0ae9c01fe65d0e739178f67cab4e2bc"></a><br/></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#a850d6bc2eb145974967804a1c6769204">quat_cast</a> (detail::tmat4x4< valType > const &x)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a 4 * 4 matrix to a <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a>. <a href="#a850d6bc2eb145974967804a1c6769204"></a><br/></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#a619b445502abad1cc98207919116e7fd">quat_cast</a> (detail::tmat3x3< valType > const &x)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a 3 * 3 matrix to a <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a>. <a href="#a619b445502abad1cc98207919116e7fd"></a><br/></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tquat< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00148.html#af35cd64eff7074f1a6706f80c4060e6a">rotate</a> (detail::tquat< valType > const &q, valType const &angle, detail::tvec3< valType > const &v)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Rotates a <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a> from an vector of 3 components axis and an angle expressed in degrees. <a href="#af35cd64eff7074f1a6706f80c4060e6a"></a><br/></td></tr>
|
||
|
</table>
|
||
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
||
|
<p>GLM_GTC_quaternion extension: Quaternion types and functions. </p>
|
||
|
<hr/><h2>Typedef Documentation</h2>
|
||
|
<a class="anchor" id="a60408579db470456070a3336295625a7"></a><!-- doxytag: member="glm::gtc::quaternion::quat" ref="a60408579db470456070a3336295625a7" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">typedef detail::tquat<float> <a class="el" href="a00148.html#a60408579db470456070a3336295625a7">quat</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>Quaternion of floating-point numbers. </p>
|
||
|
<p>From GLM_GTC_quaternion extension. </p>
|
||
|
|
||
|
<p>Definition at line <a class="el" href="a00078_source.html#l00185">185</a> of file <a class="el" href="a00078_source.html">gtc/quaternion.hpp</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<hr/><h2>Function Documentation</h2>
|
||
|
<a class="anchor" id="aef383347c7c121fb498bf98c9f3cd773"></a><!-- doxytag: member="glm::gtc::quaternion::conjugate" ref="aef383347c7c121fb498bf98c9f3cd773" args="(detail::tquat< valType > const &q)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">detail::tquat<valType> glm::gtc::quaternion::conjugate </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 the q conjugate. </p>
|
||
|
<p>From GLM_GTC_quaternion extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a34ad81954b70e0b945f465ba48d95b02"></a><!-- doxytag: member="glm::gtc::quaternion::cross" ref="a34ad81954b70e0b945f465ba48d95b02" args="(detail::tquat< valType > const &q1, detail::tquat< valType > const &q2)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">detail::tquat<valType> glm::gtc::quaternion::cross </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><td> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>Returns the cross product of q1 and q2. </p>
|
||
|
<p>From GLM_GTC_quaternion extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ad4495643e2d2da6b1a82c4e545356c13"></a><!-- doxytag: member="glm::gtc::quaternion::dot" ref="ad4495643e2d2da6b1a82c4e545356c13" args="(detail::tquat< valType > const &q1, detail::tquat< valType > const &q2)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">valType glm::gtc::quaternion::dot </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><td> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>Returns dot product of q1 and q2, i.e., q1[0] * q2[0] + q1[1] * q2[1] + . </p>
|
||
|
<p>.. From GLM_GTC_quaternion extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ad5838ef9535da0aab26e4c556bd5eab2"></a><!-- doxytag: member="glm::gtc::quaternion::inverse" ref="ad5838ef9535da0aab26e4c556bd5eab2" args="(detail::tquat< valType > const &q)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">detail::tquat<valType> glm::gtc::quaternion::inverse </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 the q inverse. </p>
|
||
|
<p>From GLM_GTC_quaternion extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ab5b9ba59887e95689e75a578debed0c3"></a><!-- doxytag: member="glm::gtc::quaternion::length" ref="ab5b9ba59887e95689e75a578debed0c3" args="(detail::tquat< valType > const &q)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">valType glm::gtc::quaternion::length </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 the length of the <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a> x. </p>
|
||
|
<p>From GLM_GTC_quaternion extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a3f6d3a2eec09de0c3d191a6b5235a744"></a><!-- doxytag: member="glm::gtc::quaternion::mat3_cast" ref="a3f6d3a2eec09de0c3d191a6b5235a744" args="(detail::tquat< valType > const &x)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">detail::tmat3x3<valType> glm::gtc::quaternion::mat3_cast </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 <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a> to a 3 * 3 matrix. </p>
|
||
|
<p>From GLM_GTC_quaternion extension. </p>
|
||
|
|
||
|
<p>Referenced by <a class="el" href="a00079_source.html#l00166">glm::gtx::quaternion::toMat3()</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a09599c3024ab423b26d4c1b440893cb8"></a><!-- doxytag: member="glm::gtc::quaternion::mat4_cast" ref="a09599c3024ab423b26d4c1b440893cb8" args="(detail::tquat< valType > const &x)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">detail::tmat4x4<valType> glm::gtc::quaternion::mat4_cast </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 <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a> to a 4 * 4 matrix. </p>
|
||
|
<p>From GLM_GTC_quaternion extension. </p>
|
||
|
|
||
|
<p>Referenced by <a class="el" href="a00079_source.html#l00172">glm::gtx::quaternion::toMat4()</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a776318ba7199fdef77b40b54528ef3f0"></a><!-- doxytag: member="glm::gtc::quaternion::mix" ref="a776318ba7199fdef77b40b54528ef3f0" args="(detail::tquat< valType > const &x, detail::tquat< valType > const &y, valType const &a)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">detail::tquat<valType> glm::gtc::quaternion::mix </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">detail::tquat< valType > const & </td>
|
||
|
<td class="paramname"> <em>y</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">valType const & </td>
|
||
|
<td class="paramname"> <em>a</em></td><td> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>Returns a LERP interpolated <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a> of x and y according a. </p>
|
||
|
<p>From GLM_GTC_quaternion extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ad0ae9c01fe65d0e739178f67cab4e2bc"></a><!-- doxytag: member="glm::gtc::quaternion::normalize" ref="ad0ae9c01fe65d0e739178f67cab4e2bc" args="(detail::tquat< valType > const &q)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">detail::tquat<valType> glm::gtc::quaternion::normalize </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 the normalized <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a> of from x. </p>
|
||
|
<p>From GLM_GTC_quaternion extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a850d6bc2eb145974967804a1c6769204"></a><!-- doxytag: member="glm::gtc::quaternion::quat_cast" ref="a850d6bc2eb145974967804a1c6769204" args="(detail::tmat4x4< valType > const &x)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">detail::tquat<valType> glm::gtc::quaternion::quat_cast </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 <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a>. </p>
|
||
|
<p>From GLM_GTC_quaternion extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a619b445502abad1cc98207919116e7fd"></a><!-- doxytag: member="glm::gtc::quaternion::quat_cast" ref="a619b445502abad1cc98207919116e7fd" args="(detail::tmat3x3< valType > const &x)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">detail::tquat<valType> glm::gtc::quaternion::quat_cast </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 <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a>. </p>
|
||
|
<p>From GLM_GTC_quaternion extension. </p>
|
||
|
|
||
|
<p>Referenced by <a class="el" href="a00079_source.html#l00178">glm::gtx::quaternion::toQuat()</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="af35cd64eff7074f1a6706f80c4060e6a"></a><!-- doxytag: member="glm::gtc::quaternion::rotate" ref="af35cd64eff7074f1a6706f80c4060e6a" args="(detail::tquat< valType > const &q, valType const &angle, detail::tvec3< valType > const &v)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">detail::tquat<valType> glm::gtc::quaternion::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">valType const & </td>
|
||
|
<td class="paramname"> <em>angle</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><td> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>Rotates a <a class="el" href="a00148.html" title="GLM_GTC_quaternion extension: Quaternion types and functions.">quaternion</a> from an vector of 3 components axis and an angle expressed in degrees. </p>
|
||
|
<p>From GLM_GTC_quaternion extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<hr size="1"/><address style="text-align: right;"><small>Generated on Mon Nov 16 11:23:24 2009 for GLM by
|
||
|
<a href="http://www.doxygen.org/index.html">
|
||
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
|
||
|
</body>
|
||
|
</html>
|