Getting GLM 0.9.3.1 release ready

This commit is contained in:
Christophe Riccio
2012-01-25 12:56:50 +00:00
parent 359312f503
commit 18a500a0f5
340 changed files with 26944 additions and 39419 deletions

View File

@@ -2,8 +2,9 @@
<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>fast_square_root.hpp Source File</title>
<title>inertia.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
@@ -31,7 +32,7 @@
</table>
</div>
<!-- Generated by Doxygen 1.7.5 -->
<!-- Generated by Doxygen 1.7.6.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
@@ -46,10 +47,11 @@
<li><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<div class="title">fast_square_root.hpp</div> </div>
</div>
<div class="title">inertia.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="a00039.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002
@@ -89,48 +91,71 @@
<a name="l00036"></a>00036
<a name="l00037"></a>00037
<a name="l00038"></a>00038
<a name="l00039"></a>00039
<a name="l00040"></a>00040 <span class="preprocessor">#ifndef GLM_GTX_fast_square_root</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#define GLM_GTX_fast_square_root GLM_VERSION</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a>00043 <span class="comment">// Dependency:</span>
<a name="l00044"></a>00044 <span class="preprocessor">#include &quot;../glm.hpp&quot;</span>
<a name="l00045"></a>00045
<a name="l00046"></a>00046 <span class="preprocessor">#if(defined(GLM_MESSAGES) &amp;&amp; !defined(glm_ext))</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor"># pragma message(&quot;GLM: GLM_GTX_fast_square_root extension included&quot;)</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span>
<a name="l00050"></a>00050 <span class="keyword">namespace </span>glm
<a name="l00051"></a>00051 {
<a name="l00054"></a>00054
<a name="l00057"></a>00057 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;
<a name="l00058"></a>00058 genType <a class="code" href="a00183.html#gad57c343d2362c1469043adedeb8ef8eb" title="Faster than the common sqrt function but less accurate.">fastSqrt</a>(genType <span class="keyword">const</span> &amp; x);
<a name="l00059"></a>00059
<a name="l00062"></a>00062 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;
<a name="l00063"></a>00063 genType <a class="code" href="a00183.html#ga49dd9caa2853398474e5aae377259a22" title="Faster than the common inversesqrt function but less accurate.">fastInverseSqrt</a>(genType <span class="keyword">const</span> &amp; x);
<a name="l00064"></a>00064
<a name="l00067"></a>00067 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;
<a name="l00068"></a>00068 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00183.html#ga2e726cc8b9f02b7c09910858ea1afac6" title="Faster than the common length function but less accurate.">fastLength</a>(genType <span class="keyword">const</span> &amp; x);
<a name="l00069"></a>00069
<a name="l00072"></a>00072 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;
<a name="l00073"></a>00073 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00183.html#ga646eee2633e9de7274de9bc6f5af92b5" title="Faster than the common distance function but less accurate.">fastDistance</a>(genType <span class="keyword">const</span> &amp; x, genType <span class="keyword">const</span> &amp; y);
<a name="l00039"></a>00039 <span class="preprocessor">#ifndef GLM_GTX_inertia</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define GLM_GTX_inertia GLM_VERSION</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="comment">// Dependency:</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &quot;../glm.hpp&quot;</span>
<a name="l00044"></a>00044
<a name="l00045"></a>00045 <span class="preprocessor">#if(defined(GLM_MESSAGES) &amp;&amp; !defined(glm_ext))</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor"># pragma message(&quot;GLM: GLM_GTX_inertia extension included&quot;)</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>
<a name="l00049"></a>00049 <span class="keyword">namespace </span>glm
<a name="l00050"></a>00050 {
<a name="l00053"></a>00053
<a name="l00056"></a>00056 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00057"></a>00057 detail::tmat3x3&lt;T&gt; boxInertia3(
<a name="l00058"></a>00058 T <span class="keyword">const</span> &amp; Mass,
<a name="l00059"></a>00059 detail::tvec3&lt;T&gt; <span class="keyword">const</span> &amp; Scale);
<a name="l00060"></a>00060
<a name="l00063"></a>00063 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00064"></a>00064 detail::tmat4x4&lt;T&gt; boxInertia4(
<a name="l00065"></a>00065 T <span class="keyword">const</span> &amp; Mass,
<a name="l00066"></a>00066 detail::tvec3&lt;T&gt; <span class="keyword">const</span> &amp; Scale);
<a name="l00067"></a>00067
<a name="l00070"></a>00070 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00071"></a>00071 detail::tmat3x3&lt;T&gt; diskInertia3(
<a name="l00072"></a>00072 T <span class="keyword">const</span> &amp; Mass,
<a name="l00073"></a>00073 T <span class="keyword">const</span> &amp; Radius);
<a name="l00074"></a>00074
<a name="l00077"></a>00077 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;
<a name="l00078"></a>00078 genType <a class="code" href="a00183.html#ga2953e7426a420bb2b33affce7360ef40" title="Faster than the common normalize function but less accurate.">fastNormalize</a>(genType <span class="keyword">const</span> &amp; x);
<a name="l00079"></a>00079
<a name="l00081"></a>00081 }<span class="comment">// namespace glm</span>
<a name="l00082"></a>00082
<a name="l00083"></a>00083 <span class="preprocessor">#include &quot;fast_square_root.inl&quot;</span>
<a name="l00084"></a>00084
<a name="l00085"></a>00085 <span class="preprocessor">#endif//GLM_GTX_fast_square_root</span>
</pre></div></div>
</div>
<a name="l00077"></a>00077 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00078"></a>00078 detail::tmat4x4&lt;T&gt; diskInertia4(
<a name="l00079"></a>00079 T <span class="keyword">const</span> &amp; Mass,
<a name="l00080"></a>00080 T <span class="keyword">const</span> &amp; Radius);
<a name="l00081"></a>00081
<a name="l00084"></a>00084 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00085"></a>00085 detail::tmat3x3&lt;T&gt; ballInertia3(
<a name="l00086"></a>00086 T <span class="keyword">const</span> &amp; Mass,
<a name="l00087"></a>00087 T <span class="keyword">const</span> &amp; Radius);
<a name="l00088"></a>00088
<a name="l00091"></a>00091 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00092"></a>00092 detail::tmat4x4&lt;T&gt; ballInertia4(
<a name="l00093"></a>00093 T <span class="keyword">const</span> &amp; Mass,
<a name="l00094"></a>00094 T <span class="keyword">const</span> &amp; Radius);
<a name="l00095"></a>00095
<a name="l00098"></a>00098 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00099"></a>00099 detail::tmat3x3&lt;T&gt; sphereInertia3(
<a name="l00100"></a>00100 T <span class="keyword">const</span> &amp; Mass,
<a name="l00101"></a>00101 T <span class="keyword">const</span> &amp; Radius);
<a name="l00102"></a>00102
<a name="l00105"></a>00105 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00106"></a>00106 detail::tmat4x4&lt;T&gt; sphereInertia4(
<a name="l00107"></a>00107 T <span class="keyword">const</span> &amp; Mass,
<a name="l00108"></a>00108 T <span class="keyword">const</span> &amp; Radius);
<a name="l00109"></a>00109
<a name="l00111"></a>00111 }<span class="comment">// namespace glm</span>
<a name="l00112"></a>00112
<a name="l00113"></a>00113 <span class="preprocessor">#include &quot;inertia.inl&quot;</span>
<a name="l00114"></a>00114
<a name="l00115"></a>00115 <span class="preprocessor">#endif//GLM_GTX_inertia</span>
</pre></div></div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5
</a> 1.7.6.1
</small></address>
</body>