Updated documentation
This commit is contained in:
@@ -2,92 +2,83 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
|
||||
<title>GLM_GTX_inertia: Intertial matrix</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<title>GLM_GTX_fast_square_root</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! -->
|
||||
|
||||
|
||||
<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-mini.png"/></td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- Generated by Doxygen 1.7.5.1 -->
|
||||
<!-- 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="annotated.html"><span>Classes</span></a></li>
|
||||
<li><a href="files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">GLM_GTX_inertia: Intertial matrix</div> </div>
|
||||
<div class="ingroups"><a class="el" href="a00137.html">GTX Extensions (Experimental)</a></div></div>
|
||||
<div class="title">GLM_GTX_fast_square_root</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><td colspan="2"><h2><a name="func-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tmat3x3< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00172.html#gadce989778e572b2cdca8879f6d546c58">ballInertia3</a> (T const &Mass, T const &Radius)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tmat4x4< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00172.html#ga6493a41b36da51c3122f61f68f44a96f">ballInertia4</a> (T const &Mass, T const &Radius)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tmat3x3< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00172.html#gafc837a32c6bd921748c4fc7ec7dda7e1">boxInertia3</a> (T const &Mass, detail::tvec3< T > const &Scale)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tmat4x4< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00172.html#gaaa39a53ec43b9c6d046b3407104990f1">boxInertia4</a> (T const &Mass, detail::tvec3< T > const &Scale)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tmat3x3< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00172.html#gae71f78e2dc40f7d6ffdb088549287370">diskInertia3</a> (T const &Mass, T const &Radius)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tmat4x4< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00172.html#ga1f205ea0c47195a156234ca9dda8ff33">diskInertia4</a> (T const &Mass, T const &Radius)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tmat3x3< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00172.html#ga43e1260e6fb0bf29558091cd9447a6ca">sphereInertia3</a> (T const &Mass, T const &Radius)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tmat4x4< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00172.html#ga6a8eefbd055ddea7522316677a78f649">sphereInertia4</a> (T const &Mass, T const &Radius)</td></tr>
|
||||
<tr class="memitem:ga646eee2633e9de7274de9bc6f5af92b5"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
||||
<tr class="memitem:ga646eee2633e9de7274de9bc6f5af92b5"><td class="memTemplItemLeft" align="right" valign="top">genType::value_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00172.html#ga646eee2633e9de7274de9bc6f5af92b5">fastDistance</a> (genType const &x, genType const &y)</td></tr>
|
||||
<tr class="separator:ga646eee2633e9de7274de9bc6f5af92b5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga49dd9caa2853398474e5aae377259a22"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
||||
<tr class="memitem:ga49dd9caa2853398474e5aae377259a22"><td class="memTemplItemLeft" align="right" valign="top">genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00172.html#ga49dd9caa2853398474e5aae377259a22">fastInverseSqrt</a> (genType const &x)</td></tr>
|
||||
<tr class="separator:ga49dd9caa2853398474e5aae377259a22"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga2e726cc8b9f02b7c09910858ea1afac6"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
||||
<tr class="memitem:ga2e726cc8b9f02b7c09910858ea1afac6"><td class="memTemplItemLeft" align="right" valign="top">genType::value_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00172.html#ga2e726cc8b9f02b7c09910858ea1afac6">fastLength</a> (genType const &x)</td></tr>
|
||||
<tr class="separator:ga2e726cc8b9f02b7c09910858ea1afac6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga2953e7426a420bb2b33affce7360ef40"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
||||
<tr class="memitem:ga2953e7426a420bb2b33affce7360ef40"><td class="memTemplItemLeft" align="right" valign="top">genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00172.html#ga2953e7426a420bb2b33affce7360ef40">fastNormalize</a> (genType const &x)</td></tr>
|
||||
<tr class="separator:ga2953e7426a420bb2b33affce7360ef40"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gad57c343d2362c1469043adedeb8ef8eb"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
||||
<tr class="memitem:gad57c343d2362c1469043adedeb8ef8eb"><td class="memTemplItemLeft" align="right" valign="top">genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00172.html#gad57c343d2362c1469043adedeb8ef8eb">fastSqrt</a> (genType const &x)</td></tr>
|
||||
<tr class="separator:gad57c343d2362c1469043adedeb8ef8eb"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
||||
<p>Create inertia matrices. </p>
|
||||
<p><<a class="el" href="a00040.html" title="OpenGL Mathematics (glm.g-truc.net)">glm/gtx/inertia.hpp</a>> need to be included to use these functionalities. </p>
|
||||
<hr/><h2>Function Documentation</h2>
|
||||
<a class="anchor" id="gadce989778e572b2cdca8879f6d546c58"></a><!-- doxytag: member="glm::ballInertia3" ref="gadce989778e572b2cdca8879f6d546c58" args="(T const &Mass, T const &Radius)" -->
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<p>Fast but less accurate implementations of square root based functions. </p>
|
||||
<ul>
|
||||
<li>Sqrt optimisation based on Newton's method, www.gamedev.net/community/forums/topic.asp?topic id=139956</li>
|
||||
</ul>
|
||||
<p><<a class="el" href="a00024.html" title="OpenGL Mathematics (glm.g-truc.net)">glm/gtx/fast_square_root.hpp</a>> need to be included to use these functionalities. </p>
|
||||
<h2 class="groupheader">Function Documentation</h2>
|
||||
<a class="anchor" id="ga646eee2633e9de7274de9bc6f5af92b5"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">detail::tmat3x3<T> glm::ballInertia3 </td>
|
||||
<td class="memname">genType::value_type glm::fastDistance </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>Mass</em>, </td>
|
||||
<td class="paramtype">genType 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>Radius</em> </td>
|
||||
<td class="paramtype">genType const & </td>
|
||||
<td class="paramname"><em>y</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
@@ -95,232 +86,95 @@ Functions</h2></td></tr>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build an inertia matrix for a ball. </p>
|
||||
<p>From GLM_GTX_inertia extension. </p>
|
||||
<p>Faster than the common distance function but less accurate. </p>
|
||||
<p>From GLM_GTX_fast_square_root extension. </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga6493a41b36da51c3122f61f68f44a96f"></a><!-- doxytag: member="glm::ballInertia4" ref="ga6493a41b36da51c3122f61f68f44a96f" args="(T const &Mass, T const &Radius)" -->
|
||||
<a class="anchor" id="ga49dd9caa2853398474e5aae377259a22"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">detail::tmat4x4<T> glm::ballInertia4 </td>
|
||||
<td class="memname">genType glm::fastInverseSqrt </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>Mass</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td class="paramtype">genType const & </td>
|
||||
<td class="paramname"><em>x</em></td><td>)</td>
|
||||
<td></td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>Radius</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build an inertia matrix for a ball. </p>
|
||||
<p>From GLM_GTX_inertia extension. </p>
|
||||
<p>Faster than the common inversesqrt function but less accurate. </p>
|
||||
<p>From GLM_GTX_fast_square_root extension. </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gafc837a32c6bd921748c4fc7ec7dda7e1"></a><!-- doxytag: member="glm::boxInertia3" ref="gafc837a32c6bd921748c4fc7ec7dda7e1" args="(T const &Mass, detail::tvec3< T > const &Scale)" -->
|
||||
<a class="anchor" id="ga2e726cc8b9f02b7c09910858ea1afac6"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">detail::tmat3x3<T> glm::boxInertia3 </td>
|
||||
<td class="memname">genType::value_type glm::fastLength </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>Mass</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td class="paramtype">genType const & </td>
|
||||
<td class="paramname"><em>x</em></td><td>)</td>
|
||||
<td></td>
|
||||
<td class="paramtype">detail::tvec3< T > const & </td>
|
||||
<td class="paramname"><em>Scale</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build an inertia matrix for a box. </p>
|
||||
<p>From GLM_GTX_inertia extension. </p>
|
||||
<p>Faster than the common length function but less accurate. </p>
|
||||
<p>From GLM_GTX_fast_square_root extension. </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gaaa39a53ec43b9c6d046b3407104990f1"></a><!-- doxytag: member="glm::boxInertia4" ref="gaaa39a53ec43b9c6d046b3407104990f1" args="(T const &Mass, detail::tvec3< T > const &Scale)" -->
|
||||
<a class="anchor" id="ga2953e7426a420bb2b33affce7360ef40"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">detail::tmat4x4<T> glm::boxInertia4 </td>
|
||||
<td class="memname">genType glm::fastNormalize </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>Mass</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td class="paramtype">genType const & </td>
|
||||
<td class="paramname"><em>x</em></td><td>)</td>
|
||||
<td></td>
|
||||
<td class="paramtype">detail::tvec3< T > const & </td>
|
||||
<td class="paramname"><em>Scale</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build an inertia matrix for a box. </p>
|
||||
<p>From GLM_GTX_inertia extension. </p>
|
||||
<p>Faster than the common normalize function but less accurate. </p>
|
||||
<p>From GLM_GTX_fast_square_root extension. </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gae71f78e2dc40f7d6ffdb088549287370"></a><!-- doxytag: member="glm::diskInertia3" ref="gae71f78e2dc40f7d6ffdb088549287370" args="(T const &Mass, T const &Radius)" -->
|
||||
<a class="anchor" id="gad57c343d2362c1469043adedeb8ef8eb"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">detail::tmat3x3<T> glm::diskInertia3 </td>
|
||||
<td class="memname">genType glm::fastSqrt </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>Mass</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td class="paramtype">genType const & </td>
|
||||
<td class="paramname"><em>x</em></td><td>)</td>
|
||||
<td></td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>Radius</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Build an inertia matrix for a disk. </p>
|
||||
<p>From GLM_GTX_inertia extension. </p>
|
||||
<p>Faster than the common sqrt function but less accurate. </p>
|
||||
<p>From GLM_GTX_fast_square_root extension. </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga1f205ea0c47195a156234ca9dda8ff33"></a><!-- doxytag: member="glm::diskInertia4" ref="ga1f205ea0c47195a156234ca9dda8ff33" args="(T const &Mass, T const &Radius)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">detail::tmat4x4<T> glm::diskInertia4 </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>Mass</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>Radius</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>Build an inertia matrix for a disk. </p>
|
||||
<p>From GLM_GTX_inertia extension. </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga43e1260e6fb0bf29558091cd9447a6ca"></a><!-- doxytag: member="glm::sphereInertia3" ref="ga43e1260e6fb0bf29558091cd9447a6ca" args="(T const &Mass, T const &Radius)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">detail::tmat3x3<T> glm::sphereInertia3 </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>Mass</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>Radius</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>Build an inertia matrix for a sphere. </p>
|
||||
<p>From GLM_GTX_inertia extension. </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga6a8eefbd055ddea7522316677a78f649"></a><!-- doxytag: member="glm::sphereInertia4" ref="ga6a8eefbd055ddea7522316677a78f649" args="(T const &Mass, T const &Radius)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">detail::tmat4x4<T> glm::sphereInertia4 </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>Mass</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">T const & </td>
|
||||
<td class="paramname"><em>Radius</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>Build an inertia matrix for a sphere. </p>
|
||||
<p>From GLM_GTX_inertia extension. </p>
|
||||
|
||||
</div>
|
||||
</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.7.5.1
|
||||
</a> 1.8.2
|
||||
</small></address>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user