390 lines
17 KiB
HTML
390 lines
17 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_rotate_vector</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_rotate_vector</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:ga4da5fddb2f1aa679fdb45abd344efffb"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:ga4da5fddb2f1aa679fdb45abd344efffb"><td class="memTemplItemLeft" align="right" valign="top">detail::tmat4x4< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#ga4da5fddb2f1aa679fdb45abd344efffb">orientation</a> (detail::tvec3< T > const &Normal, detail::tvec3< T > const &Up)</td></tr>
|
|
<tr class="separator:ga4da5fddb2f1aa679fdb45abd344efffb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab40685a29feeaa0b2ceb5b733421adcb"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:gab40685a29feeaa0b2ceb5b733421adcb"><td class="memTemplItemLeft" align="right" valign="top">detail::tvec2< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#gab40685a29feeaa0b2ceb5b733421adcb">rotate</a> (detail::tvec2< T > const &v, T const &angle)</td></tr>
|
|
<tr class="separator:gab40685a29feeaa0b2ceb5b733421adcb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab556da0efabc9606f198f89a74cb1964"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:gab556da0efabc9606f198f89a74cb1964"><td class="memTemplItemLeft" align="right" valign="top">detail::tvec3< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#gab556da0efabc9606f198f89a74cb1964">rotate</a> (detail::tvec3< T > const &v, T const &angle, detail::tvec3< T > const &normal)</td></tr>
|
|
<tr class="separator:gab556da0efabc9606f198f89a74cb1964"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6e2b5cddfb385e640dfcf1ae7769b910"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:ga6e2b5cddfb385e640dfcf1ae7769b910"><td class="memTemplItemLeft" align="right" valign="top">detail::tvec4< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#ga6e2b5cddfb385e640dfcf1ae7769b910">rotate</a> (detail::tvec4< T > const &v, T const &angle, detail::tvec3< T > const &normal)</td></tr>
|
|
<tr class="separator:ga6e2b5cddfb385e640dfcf1ae7769b910"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaaadca0c077515d56955f3c662a3a3c7f"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:gaaadca0c077515d56955f3c662a3a3c7f"><td class="memTemplItemLeft" align="right" valign="top">detail::tvec3< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#gaaadca0c077515d56955f3c662a3a3c7f">rotateX</a> (detail::tvec3< T > const &v, T const &angle)</td></tr>
|
|
<tr class="separator:gaaadca0c077515d56955f3c662a3a3c7f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga5fb5ea6e3daf540f1445aea068f49eb1"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:ga5fb5ea6e3daf540f1445aea068f49eb1"><td class="memTemplItemLeft" align="right" valign="top">detail::tvec4< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#ga5fb5ea6e3daf540f1445aea068f49eb1">rotateX</a> (detail::tvec4< T > const &v, T const &angle)</td></tr>
|
|
<tr class="separator:ga5fb5ea6e3daf540f1445aea068f49eb1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gacffa0ae7f32f4e2ee7bc1dc0ed290d45"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:gacffa0ae7f32f4e2ee7bc1dc0ed290d45"><td class="memTemplItemLeft" align="right" valign="top">detail::tvec3< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#gacffa0ae7f32f4e2ee7bc1dc0ed290d45">rotateY</a> (detail::tvec3< T > const &v, T const &angle)</td></tr>
|
|
<tr class="separator:gacffa0ae7f32f4e2ee7bc1dc0ed290d45"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga869410096bb5a69f9b9a58708eadcbad"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:ga869410096bb5a69f9b9a58708eadcbad"><td class="memTemplItemLeft" align="right" valign="top">detail::tvec4< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#ga869410096bb5a69f9b9a58708eadcbad">rotateY</a> (detail::tvec4< T > const &v, T const &angle)</td></tr>
|
|
<tr class="separator:ga869410096bb5a69f9b9a58708eadcbad"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga105c77751b4ab56c491334655751e0af"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:ga105c77751b4ab56c491334655751e0af"><td class="memTemplItemLeft" align="right" valign="top">detail::tvec3< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#ga105c77751b4ab56c491334655751e0af">rotateZ</a> (detail::tvec3< T > const &v, T const &angle)</td></tr>
|
|
<tr class="separator:ga105c77751b4ab56c491334655751e0af"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6330788b96a0ec5e76ca3dd2892cca8c"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:ga6330788b96a0ec5e76ca3dd2892cca8c"><td class="memTemplItemLeft" align="right" valign="top">detail::tvec4< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#ga6330788b96a0ec5e76ca3dd2892cca8c">rotateZ</a> (detail::tvec4< T > const &v, T const &angle)</td></tr>
|
|
<tr class="separator:ga6330788b96a0ec5e76ca3dd2892cca8c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<p>Function to directly rotate a vector. </p>
|
|
<p><<a class="el" href="a00083.html" title="OpenGL Mathematics (glm.g-truc.net)">glm/gtx/rotate_vector.hpp</a>> need to be included to use these functionalities. </p>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a class="anchor" id="ga4da5fddb2f1aa679fdb45abd344efffb"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tmat4x4<T> glm::orientation </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tvec3< T > const & </td>
|
|
<td class="paramname"><em>Normal</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tvec3< T > 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 rotation matrix from a normal and a up vector. </p>
|
|
<p>From GLM_GTX_rotate_vector extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gab40685a29feeaa0b2ceb5b733421adcb"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tvec2<T> glm::rotate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tvec2< T > const & </td>
|
|
<td class="paramname"><em>v</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T const & </td>
|
|
<td class="paramname"><em>angle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Rotate a two dimensional vector. </p>
|
|
<p>From GLM_GTX_rotate_vector extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gab556da0efabc9606f198f89a74cb1964"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tvec3<T> glm::rotate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tvec3< T > const & </td>
|
|
<td class="paramname"><em>v</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T const & </td>
|
|
<td class="paramname"><em>angle</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tvec3< T > const & </td>
|
|
<td class="paramname"><em>normal</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Rotate a three dimensional vector around an axis. </p>
|
|
<p>From GLM_GTX_rotate_vector extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga6e2b5cddfb385e640dfcf1ae7769b910"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tvec4<T> glm::rotate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tvec4< T > const & </td>
|
|
<td class="paramname"><em>v</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T const & </td>
|
|
<td class="paramname"><em>angle</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">detail::tvec3< T > const & </td>
|
|
<td class="paramname"><em>normal</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Rotate a four dimensional vector around an axis. </p>
|
|
<p>From GLM_GTX_rotate_vector extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaaadca0c077515d56955f3c662a3a3c7f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tvec3<T> glm::rotateX </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tvec3< T > const & </td>
|
|
<td class="paramname"><em>v</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T const & </td>
|
|
<td class="paramname"><em>angle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Rotate a three dimensional vector around the X axis. </p>
|
|
<p>From GLM_GTX_rotate_vector extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga5fb5ea6e3daf540f1445aea068f49eb1"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tvec4<T> glm::rotateX </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tvec4< T > const & </td>
|
|
<td class="paramname"><em>v</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T const & </td>
|
|
<td class="paramname"><em>angle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Rotate a four dimentionnals vector around the X axis. </p>
|
|
<p>From GLM_GTX_rotate_vector extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gacffa0ae7f32f4e2ee7bc1dc0ed290d45"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tvec3<T> glm::rotateY </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tvec3< T > const & </td>
|
|
<td class="paramname"><em>v</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T const & </td>
|
|
<td class="paramname"><em>angle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Rotate a three dimensional vector around the Y axis. </p>
|
|
<p>From GLM_GTX_rotate_vector extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga869410096bb5a69f9b9a58708eadcbad"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tvec4<T> glm::rotateY </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tvec4< T > const & </td>
|
|
<td class="paramname"><em>v</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T const & </td>
|
|
<td class="paramname"><em>angle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Rotate a four dimensional vector around the X axis. </p>
|
|
<p>From GLM_GTX_rotate_vector extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga105c77751b4ab56c491334655751e0af"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tvec3<T> glm::rotateZ </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tvec3< T > const & </td>
|
|
<td class="paramname"><em>v</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T const & </td>
|
|
<td class="paramname"><em>angle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Rotate a three dimensional vector around the Z axis. </p>
|
|
<p>From GLM_GTX_rotate_vector extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga6330788b96a0ec5e76ca3dd2892cca8c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">detail::tvec4<T> glm::rotateZ </td>
|
|
<td>(</td>
|
|
<td class="paramtype">detail::tvec4< T > const & </td>
|
|
<td class="paramname"><em>v</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T const & </td>
|
|
<td class="paramname"><em>angle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Rotate a four dimensional vector around the X axis. </p>
|
|
<p>From GLM_GTX_rotate_vector extension. </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>
|