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>intersect.hpp Source File</title>
<title>matrix_query.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">intersect.hpp</div> </div>
</div>
<div class="title">matrix_query.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="a00058.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,57 +91,73 @@
<a name="l00036"></a>00036
<a name="l00037"></a>00037
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="preprocessor">#ifndef GLM_GTX_intersect</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define GLM_GTX_intersect GLM_VERSION</span>
<a name="l00039"></a>00039 <span class="preprocessor">#ifndef GLM_GTX_matrix_query</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define GLM_GTX_matrix_query 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 <span class="preprocessor">#include &quot;../gtx/closest_point.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_closest_point 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 <span class="keywordtype">bool</span> <a class="code" href="a00190.html#gac8bcfc662702cc5ae4463a7f95c35ed4" title="Compute the intersection of a ray and a triangle.">intersectRayTriangle</a>(
<a name="l00059"></a>00059 genType <span class="keyword">const</span> &amp; orig, genType <span class="keyword">const</span> &amp; dir,
<a name="l00060"></a>00060 genType <span class="keyword">const</span> &amp; vert0, genType <span class="keyword">const</span> &amp; vert1, genType <span class="keyword">const</span> &amp; vert2,
<a name="l00061"></a>00061 genType &amp; baryPosition);
<a name="l00062"></a>00062
<a name="l00065"></a>00065 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;
<a name="l00066"></a>00066 <span class="keywordtype">bool</span> <a class="code" href="a00190.html#ga54942f4d0fc37afdd866e79a4b8b997f" title="Compute the intersection of a line and a triangle.">intersectLineTriangle</a>(
<a name="l00067"></a>00067 genType <span class="keyword">const</span> &amp; orig, genType <span class="keyword">const</span> &amp; dir,
<a name="l00068"></a>00068 genType <span class="keyword">const</span> &amp; vert0, genType <span class="keyword">const</span> &amp; vert1, genType <span class="keyword">const</span> &amp; vert2,
<a name="l00069"></a>00069 genType &amp; position);
<a name="l00070"></a>00070
<a name="l00073"></a>00073 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;
<a name="l00074"></a>00074 <span class="keywordtype">bool</span> <a class="code" href="a00190.html#gac2114cdc93a129257300a86489c797f2" title="Compute the intersection of a ray and a sphere.">intersectRaySphere</a>(
<a name="l00075"></a>00075 genType <span class="keyword">const</span> &amp; orig, genType <span class="keyword">const</span> &amp; dir,
<a name="l00076"></a>00076 genType <span class="keyword">const</span> &amp; center, <span class="keyword">typename</span> genType::value_type radius,
<a name="l00077"></a>00077 genType &amp; position, genType &amp; normal);
<a name="l00078"></a>00078
<a name="l00081"></a>00081 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> genType&gt;
<a name="l00082"></a>00082 <span class="keywordtype">bool</span> <a class="code" href="a00190.html#gaa8552e6a12621c629786f6d25ab1fc8e" title="Compute the intersection of a line and a sphere.">intersectLineSphere</a>(
<a name="l00083"></a>00083 genType <span class="keyword">const</span> &amp; point0, genType <span class="keyword">const</span> &amp; point1,
<a name="l00084"></a>00084 genType <span class="keyword">const</span> &amp; center, <span class="keyword">typename</span> genType::value_type radius,
<a name="l00085"></a>00085 genType &amp; position, genType &amp; normal);
<a name="l00086"></a>00086
<a name="l00088"></a>00088 }<span class="comment">//namespace glm</span>
<a name="l00089"></a>00089
<a name="l00090"></a>00090 <span class="preprocessor">#include &quot;intersect.inl&quot;</span>
<a name="l00091"></a>00091
<a name="l00092"></a>00092 <span class="preprocessor">#endif//GLM_GTX_intersect</span>
</pre></div></div>
</div>
<a name="l00044"></a>00044 <span class="preprocessor">#include &quot;../gtx/vector_query.hpp&quot;</span>
<a name="l00045"></a>00045 <span class="preprocessor">#include &lt;limits&gt;</span>
<a name="l00046"></a>00046
<a name="l00047"></a>00047 <span class="preprocessor">#if(defined(GLM_MESSAGES) &amp;&amp; !defined(glm_ext))</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor"># pragma message(&quot;GLM: GLM_GTX_matrix_query extension included&quot;)</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="keyword">namespace </span>glm
<a name="l00052"></a>00052 {
<a name="l00055"></a>00055
<a name="l00058"></a>00058 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00059"></a>00059 <span class="keywordtype">bool</span> isNull(
<a name="l00060"></a>00060 detail::tmat2x2&lt;T&gt; <span class="keyword">const</span> &amp; m,
<a name="l00061"></a>00061 T <span class="keyword">const</span> &amp; <a class="code" href="a00160.html#ga73bc2500704c8c25dc3cde534134ca20" title="Return the epsilon constant for floating point types.">epsilon</a><span class="comment">/* = std::numeric_limits&lt;T&gt;::epsilon()*/</span>);
<a name="l00062"></a>00062
<a name="l00065"></a>00065 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00066"></a>00066 <span class="keywordtype">bool</span> isNull(
<a name="l00067"></a>00067 detail::tmat3x3&lt;T&gt; <span class="keyword">const</span> &amp; m,
<a name="l00068"></a>00068 T <span class="keyword">const</span> &amp; <a class="code" href="a00160.html#ga73bc2500704c8c25dc3cde534134ca20" title="Return the epsilon constant for floating point types.">epsilon</a><span class="comment">/* = std::numeric_limits&lt;T&gt;::epsilon()*/</span>);
<a name="l00069"></a>00069
<a name="l00072"></a>00072 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00073"></a>00073 <span class="keywordtype">bool</span> isNull(
<a name="l00074"></a>00074 detail::tmat4x4&lt;T&gt; <span class="keyword">const</span> &amp; m,
<a name="l00075"></a>00075 T <span class="keyword">const</span> &amp; <a class="code" href="a00160.html#ga73bc2500704c8c25dc3cde534134ca20" title="Return the epsilon constant for floating point types.">epsilon</a><span class="comment">/* = std::numeric_limits&lt;T&gt;::epsilon()*/</span>);
<a name="l00076"></a>00076
<a name="l00079"></a>00079 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> genType&gt;
<a name="l00080"></a>00080 <span class="keywordtype">bool</span> isIdentity(
<a name="l00081"></a>00081 genType <span class="keyword">const</span> &amp; m,
<a name="l00082"></a>00082 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> &amp; <a class="code" href="a00160.html#ga73bc2500704c8c25dc3cde534134ca20" title="Return the epsilon constant for floating point types.">epsilon</a><span class="comment">/* = std::numeric_limits&lt;typename genType::value_type&gt;::epsilon()*/</span>);
<a name="l00083"></a>00083
<a name="l00086"></a>00086 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> valType&gt;
<a name="l00087"></a>00087 <span class="keywordtype">bool</span> isNormalized(
<a name="l00088"></a>00088 detail::tmat2x2&lt;valType&gt; <span class="keyword">const</span> &amp; m,
<a name="l00089"></a>00089 valType <span class="keyword">const</span> &amp; <a class="code" href="a00160.html#ga73bc2500704c8c25dc3cde534134ca20" title="Return the epsilon constant for floating point types.">epsilon</a><span class="comment">/* = std::numeric_limits&lt;valType&gt;::epsilon()*/</span>);
<a name="l00090"></a>00090
<a name="l00093"></a>00093 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> valType&gt;
<a name="l00094"></a>00094 <span class="keywordtype">bool</span> isNormalized(
<a name="l00095"></a>00095 detail::tmat3x3&lt;valType&gt; <span class="keyword">const</span> &amp; m,
<a name="l00096"></a>00096 valType <span class="keyword">const</span> &amp; <a class="code" href="a00160.html#ga73bc2500704c8c25dc3cde534134ca20" title="Return the epsilon constant for floating point types.">epsilon</a><span class="comment">/* = std::numeric_limits&lt;valType&gt;::epsilon()*/</span>);
<a name="l00097"></a>00097
<a name="l00100"></a>00100 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> valType&gt;
<a name="l00101"></a>00101 <span class="keywordtype">bool</span> isNormalized(
<a name="l00102"></a>00102 detail::tmat4x4&lt;valType&gt; <span class="keyword">const</span> &amp; m,
<a name="l00103"></a>00103 valType <span class="keyword">const</span> &amp; <a class="code" href="a00160.html#ga73bc2500704c8c25dc3cde534134ca20" title="Return the epsilon constant for floating point types.">epsilon</a><span class="comment">/* = std::numeric_limits&lt;valType&gt;::epsilon()*/</span>);
<a name="l00104"></a>00104
<a name="l00107"></a>00107 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> valType, <span class="keyword">template</span> &lt;<span class="keyword">typename</span>&gt; <span class="keyword">class </span>matType&gt;
<a name="l00108"></a>00108 <span class="keywordtype">bool</span> isOrthogonal(
<a name="l00109"></a>00109 matType&lt;valType&gt; <span class="keyword">const</span> &amp; m,
<a name="l00110"></a>00110 valType <span class="keyword">const</span> &amp; <a class="code" href="a00160.html#ga73bc2500704c8c25dc3cde534134ca20" title="Return the epsilon constant for floating point types.">epsilon</a><span class="comment">/* = std::numeric_limits&lt;genType&gt;::epsilon()*/</span>);
<a name="l00111"></a>00111
<a name="l00113"></a>00113 }<span class="comment">//namespace glm</span>
<a name="l00114"></a>00114
<a name="l00115"></a>00115 <span class="preprocessor">#include &quot;matrix_query.inl&quot;</span>
<a name="l00116"></a>00116
<a name="l00117"></a>00117 <span class="preprocessor">#endif//GLM_GTX_matrix_query</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>