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>euler_angles.hpp Source File</title>
<title>glm.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">euler_angles.hpp</div> </div>
</div>
<div class="title">glm.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="a00034.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,99 +91,102 @@
<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_euler_angles</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define GLM_GTX_euler_angles 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;../gtc/half_float.hpp&quot;</span>
<a name="l00039"></a>00039
<a name="l00040"></a>00040
<a name="l00041"></a>00041
<a name="l00042"></a>00042
<a name="l00043"></a>00043
<a name="l00044"></a>00044
<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_euler_angles 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="l00046"></a>00046
<a name="l00047"></a>00047
<a name="l00048"></a>00048
<a name="l00049"></a>00049
<a name="l00050"></a>00050
<a name="l00051"></a>00051
<a name="l00052"></a>00052
<a name="l00053"></a>00053
<a name="l00054"></a>00054
<a name="l00057"></a>00057 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> valType&gt;
<a name="l00058"></a>00058 detail::tmat4x4&lt;valType&gt; <a class="code" href="a00179.html#gaac45eaecc2f40ecdda03a7112693dabf" title="Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle X.">eulerAngleX</a>(
<a name="l00059"></a>00059 valType <span class="keyword">const</span> &amp; angleX);
<a name="l00055"></a>00055
<a name="l00056"></a>00056
<a name="l00057"></a>00057
<a name="l00058"></a>00058
<a name="l00059"></a>00059
<a name="l00060"></a>00060
<a name="l00063"></a>00063 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> valType&gt;
<a name="l00064"></a>00064 detail::tmat4x4&lt;valType&gt; <a class="code" href="a00179.html#gae31b378f18fb01ed6d44c3f92f76eba5" title="Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Y.">eulerAngleY</a>(
<a name="l00065"></a>00065 valType <span class="keyword">const</span> &amp; angleY);
<a name="l00061"></a>00061
<a name="l00062"></a>00062
<a name="l00063"></a>00063
<a name="l00064"></a>00064
<a name="l00065"></a>00065
<a name="l00066"></a>00066
<a name="l00069"></a>00069 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> valType&gt;
<a name="l00070"></a>00070 detail::tmat4x4&lt;valType&gt; <a class="code" href="a00179.html#gaa309eabf292cab65cde623f398910685" title="Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Z.">eulerAngleZ</a>(
<a name="l00071"></a>00071 valType <span class="keyword">const</span> &amp; angleZ);
<a name="l00067"></a>00067
<a name="l00068"></a>00068
<a name="l00069"></a>00069
<a name="l00070"></a>00070
<a name="l00071"></a>00071
<a name="l00072"></a>00072
<a name="l00075"></a>00075 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> valType&gt;
<a name="l00076"></a>00076 detail::tmat4x4&lt;valType&gt; <a class="code" href="a00179.html#ga943a94f69965d594efde254c139aaae8" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y).">eulerAngleXY</a>(
<a name="l00077"></a>00077 valType <span class="keyword">const</span> &amp; angleX,
<a name="l00078"></a>00078 valType <span class="keyword">const</span> &amp; angleY);
<a name="l00073"></a>00073
<a name="l00074"></a>00074
<a name="l00075"></a>00075
<a name="l00076"></a>00076
<a name="l00077"></a>00077
<a name="l00078"></a>00078 <span class="preprocessor">#include &quot;<a class="code" href="a00004.html" title="OpenGL Mathematics (glm.g-truc.net)">core/_fixes.hpp</a>&quot;</span>
<a name="l00079"></a>00079
<a name="l00082"></a>00082 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> valType&gt;
<a name="l00083"></a>00083 detail::tmat4x4&lt;valType&gt; <a class="code" href="a00179.html#gaac8d93a4b3ae4014ff8f1c5a5a793236" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X).">eulerAngleYX</a>(
<a name="l00084"></a>00084 valType <span class="keyword">const</span> &amp; angleY,
<a name="l00085"></a>00085 valType <span class="keyword">const</span> &amp; angleX);
<a name="l00086"></a>00086
<a name="l00089"></a>00089 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> valType&gt;
<a name="l00090"></a>00090 detail::tmat4x4&lt;valType&gt; <a class="code" href="a00179.html#gafc6f582fa044bcece3506ffd6d31ef59" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z).">eulerAngleXZ</a>(
<a name="l00091"></a>00091 valType <span class="keyword">const</span> &amp; angleX,
<a name="l00092"></a>00092 valType <span class="keyword">const</span> &amp; angleZ);
<a name="l00093"></a>00093
<a name="l00096"></a>00096 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> valType&gt;
<a name="l00097"></a>00097 detail::tmat4x4&lt;valType&gt; <a class="code" href="a00179.html#ga630d8b3aadde3c890251deba896c9946" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X).">eulerAngleZX</a>(
<a name="l00098"></a>00098 valType <span class="keyword">const</span> &amp; angleZ,
<a name="l00099"></a>00099 valType <span class="keyword">const</span> &amp; angleX);
<a name="l00100"></a>00100
<a name="l00103"></a>00103 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> valType&gt;
<a name="l00104"></a>00104 detail::tmat4x4&lt;valType&gt; <a class="code" href="a00179.html#ga99f4bb03efd91aac95be4ce38a5f44ce" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z).">eulerAngleYZ</a>(
<a name="l00105"></a>00105 valType <span class="keyword">const</span> &amp; angleY,
<a name="l00106"></a>00106 valType <span class="keyword">const</span> &amp; angleZ);
<a name="l00107"></a>00107
<a name="l00110"></a>00110 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> valType&gt;
<a name="l00111"></a>00111 detail::tmat4x4&lt;valType&gt; <a class="code" href="a00179.html#ga6fb1d08bf5eb9320eb6520e9c27f0e80" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y).">eulerAngleZY</a>(
<a name="l00112"></a>00112 valType <span class="keyword">const</span> &amp; angleZ,
<a name="l00113"></a>00113 valType <span class="keyword">const</span> &amp; angleY);
<a name="l00114"></a>00114
<a name="l00117"></a>00117 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> valType&gt;
<a name="l00118"></a>00118 detail::tmat4x4&lt;valType&gt; <a class="code" href="a00179.html#gab2c29b80a86caa83f6b550de31e6889f" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z).">eulerAngleYXZ</a>(
<a name="l00119"></a>00119 valType <span class="keyword">const</span> &amp; <a class="code" href="a00210.html#gaac012c1a6bc37ce07a87745d9c596eed" title="Returns yaw value of euler angles in degrees.">yaw</a>,
<a name="l00120"></a>00120 valType <span class="keyword">const</span> &amp; <a class="code" href="a00210.html#gaf2a0323dbf6c6fb3f37b445aa899c1c7" title="Returns pitch value of euler angles in degrees.">pitch</a>,
<a name="l00121"></a>00121 valType <span class="keyword">const</span> &amp; <a class="code" href="a00210.html#ga7ef4c8c1ce1ca988add2f73392db0a06" title="Returns roll value of euler angles in degrees.">roll</a>);
<a name="l00080"></a>00080 <span class="preprocessor">#ifndef glm_glm</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span><span class="preprocessor">#define glm_glm</span>
<a name="l00082"></a>00082 <span class="preprocessor"></span>
<a name="l00083"></a>00083 <span class="preprocessor">#include &lt;cmath&gt;</span>
<a name="l00084"></a>00084 <span class="preprocessor">#include &lt;climits&gt;</span>
<a name="l00085"></a>00085 <span class="preprocessor">#include &lt;cfloat&gt;</span>
<a name="l00086"></a>00086 <span class="preprocessor">#include &lt;limits&gt;</span>
<a name="l00087"></a>00087 <span class="preprocessor">#include &lt;cstdio&gt;</span>
<a name="l00088"></a>00088 <span class="comment">//#include &lt;type_traits&gt;</span>
<a name="l00089"></a>00089 <span class="preprocessor">#include &quot;<a class="code" href="a00082.html" title="OpenGL Mathematics (glm.g-truc.net)">core/setup.hpp</a>&quot;</span>
<a name="l00090"></a>00090
<a name="l00091"></a>00091 <span class="preprocessor">#if(defined(GLM_MESSAGES) &amp;&amp; !defined(GLM_MESSAGE_CORE_INCLUDED_DISPLAYED))</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span><span class="preprocessor"># define GLM_MESSAGE_CORE_INCLUDED_DISPLAYED</span>
<a name="l00093"></a>00093 <span class="preprocessor"></span><span class="preprocessor"># pragma message(&quot;GLM: Core library included&quot;)</span>
<a name="l00094"></a>00094 <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_MESSAGE</span>
<a name="l00095"></a>00095 <span class="preprocessor"></span>
<a name="l00096"></a>00096 <span class="preprocessor">#include &quot;<a class="code" href="a00003.html" title="OpenGL Mathematics (glm.g-truc.net)">./core/_detail.hpp</a>&quot;</span>
<a name="l00097"></a>00097 <span class="preprocessor">#include &quot;<a class="code" href="a00091.html" title="OpenGL Mathematics (glm.g-truc.net)">./core/type.hpp</a>&quot;</span>
<a name="l00098"></a>00098
<a name="l00099"></a>00099 <span class="preprocessor">#include &quot;<a class="code" href="a00032.html" title="OpenGL Mathematics (glm.g-truc.net)">./core/func_trigonometric.hpp</a>&quot;</span>
<a name="l00100"></a>00100 <span class="preprocessor">#include &quot;<a class="code" href="a00026.html" title="OpenGL Mathematics (glm.g-truc.net)">./core/func_exponential.hpp</a>&quot;</span>
<a name="l00101"></a>00101 <span class="preprocessor">#include &quot;<a class="code" href="a00025.html" title="OpenGL Mathematics (glm.g-truc.net)">./core/func_common.hpp</a>&quot;</span>
<a name="l00102"></a>00102 <span class="preprocessor">#include &quot;<a class="code" href="a00031.html" title="OpenGL Mathematics (glm.g-truc.net)">./core/func_packing.hpp</a>&quot;</span>
<a name="l00103"></a>00103 <span class="preprocessor">#include &quot;<a class="code" href="a00027.html" title="OpenGL Mathematics (glm.g-truc.net)">./core/func_geometric.hpp</a>&quot;</span>
<a name="l00104"></a>00104 <span class="preprocessor">#include &quot;<a class="code" href="a00029.html" title="OpenGL Mathematics (glm.g-truc.net)">./core/func_matrix.hpp</a>&quot;</span>
<a name="l00105"></a>00105 <span class="preprocessor">#include &quot;<a class="code" href="a00033.html" title="OpenGL Mathematics (glm.g-truc.net)">./core/func_vector_relational.hpp</a>&quot;</span>
<a name="l00106"></a>00106 <span class="preprocessor">#include &quot;<a class="code" href="a00028.html" title="OpenGL Mathematics (glm.g-truc.net)">./core/func_integer.hpp</a>&quot;</span>
<a name="l00107"></a>00107 <span class="preprocessor">#include &quot;<a class="code" href="a00030.html" title="OpenGL Mathematics (glm.g-truc.net)">./core/func_noise.hpp</a>&quot;</span>
<a name="l00108"></a>00108 <span class="preprocessor">#include &quot;<a class="code" href="a00005.html" title="OpenGL Mathematics (glm.g-truc.net)">./core/_swizzle.hpp</a>&quot;</span>
<a name="l00109"></a>00109
<a name="l00111"></a>00111 <span class="comment">// check type sizes</span>
<a name="l00112"></a>00112 <span class="preprocessor">#ifndef GLM_STATIC_ASSERT_NULL</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span> GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::int8) == 1, <span class="stringliteral">&quot;int8 size isn&#39;t 1 byte on this platform&quot;</span>);
<a name="l00114"></a>00114 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::int16) == 2, <span class="stringliteral">&quot;int16 size isn&#39;t 2 bytes on this platform&quot;</span>);
<a name="l00115"></a>00115 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::int32) == 4, <span class="stringliteral">&quot;int32 size isn&#39;t 4 bytes on this platform&quot;</span>);
<a name="l00116"></a>00116 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::int64) == 8, <span class="stringliteral">&quot;int64 size isn&#39;t 8 bytes on this platform&quot;</span>);
<a name="l00117"></a>00117
<a name="l00118"></a>00118 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::uint8) == 1, <span class="stringliteral">&quot;uint8 size isn&#39;t 1 byte on this platform&quot;</span>);
<a name="l00119"></a>00119 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::uint16) == 2, <span class="stringliteral">&quot;uint16 size isn&#39;t 2 bytes on this platform&quot;</span>);
<a name="l00120"></a>00120 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::uint32) == 4, <span class="stringliteral">&quot;uint32 size isn&#39;t 4 bytes on this platform&quot;</span>);
<a name="l00121"></a>00121 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::uint64) == 8, <span class="stringliteral">&quot;uint64 size isn&#39;t 8 bytes on this platform&quot;</span>);
<a name="l00122"></a>00122
<a name="l00125"></a>00125 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> valType&gt;
<a name="l00126"></a>00126 detail::tmat4x4&lt;valType&gt; <a class="code" href="a00179.html#ga4c297724e663cb77cc2cf7e4ab89b77e" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z).">yawPitchRoll</a>(
<a name="l00127"></a>00127 valType <span class="keyword">const</span> &amp; <a class="code" href="a00210.html#gaac012c1a6bc37ce07a87745d9c596eed" title="Returns yaw value of euler angles in degrees.">yaw</a>,
<a name="l00128"></a>00128 valType <span class="keyword">const</span> &amp; <a class="code" href="a00210.html#gaf2a0323dbf6c6fb3f37b445aa899c1c7" title="Returns pitch value of euler angles in degrees.">pitch</a>,
<a name="l00129"></a>00129 valType <span class="keyword">const</span> &amp; <a class="code" href="a00210.html#ga7ef4c8c1ce1ca988add2f73392db0a06" title="Returns roll value of euler angles in degrees.">roll</a>);
<a name="l00130"></a>00130
<a name="l00133"></a>00133 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00134"></a>00134 detail::tmat2x2&lt;T&gt; <a class="code" href="a00179.html#ga381a4208b916cabe7244b1b77b0ea6c2" title="Creates a 2D 2 * 2 rotation matrix from an euler angle.">orientate2</a>(T <span class="keyword">const</span> &amp; <a class="code" href="a00210.html#ga69041d18bd8539fe82d6170932d28362" title="Returns the quaternion rotation angle.">angle</a>);
<a name="l00135"></a>00135
<a name="l00138"></a>00138 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00139"></a>00139 detail::tmat3x3&lt;T&gt; <a class="code" href="a00179.html#ga745f26f19b9c0e35c22e634e7f0c1721" title="Creates a 2D 4 * 4 homogeneous rotation matrix from an euler angle.">orientate3</a>(T <span class="keyword">const</span> &amp; <a class="code" href="a00210.html#ga69041d18bd8539fe82d6170932d28362" title="Returns the quaternion rotation angle.">angle</a>);
<a name="l00140"></a>00140
<a name="l00143"></a>00143 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00144"></a>00144 detail::tmat3x3&lt;T&gt; <a class="code" href="a00179.html#ga745f26f19b9c0e35c22e634e7f0c1721" title="Creates a 2D 4 * 4 homogeneous rotation matrix from an euler angle.">orientate3</a>(detail::tvec3&lt;T&gt; <span class="keyword">const</span> &amp; angles);
<a name="l00145"></a>00145
<a name="l00148"></a>00148 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00149"></a>00149 detail::tmat4x4&lt;T&gt; <a class="code" href="a00179.html#gabbba69e91bb14442bb1b4d330235c550" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z).">orientate4</a>(detail::tvec3&lt;T&gt; <span class="keyword">const</span> &amp; angles);
<a name="l00150"></a>00150
<a name="l00152"></a>00152 }<span class="comment">//namespace glm</span>
<a name="l00153"></a>00153
<a name="l00154"></a>00154 <span class="preprocessor">#include &quot;euler_angles.inl&quot;</span>
<a name="l00155"></a>00155
<a name="l00156"></a>00156 <span class="preprocessor">#endif//GLM_GTX_euler_angles</span>
</pre></div></div>
</div>
<a name="l00123"></a>00123 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(<a class="code" href="a00002.html" title="16-bit floating point type.">glm::detail::float16</a>) == 2, <span class="stringliteral">&quot;float16 size isn&#39;t 2 bytes on this platform&quot;</span>);
<a name="l00124"></a>00124 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::float32) == 4, <span class="stringliteral">&quot;float32 size isn&#39;t 4 bytes on this platform&quot;</span>);
<a name="l00125"></a>00125 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::float64) == 8, <span class="stringliteral">&quot;float64 size isn&#39;t 8 bytes on this platform&quot;</span>);
<a name="l00126"></a>00126 <span class="preprocessor">#endif//GLM_STATIC_ASSERT_NULL</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span>
<a name="l00128"></a>00128 <span class="preprocessor">#endif//glm_glm</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>