glm/doc/api/a00075_source.html

192 lines
26 KiB
HTML
Raw Normal View History

<!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"/>
2012-11-18 13:05:52 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
2014-11-25 00:28:32 +00:00
<meta name="generator" content="Doxygen 1.8.8"/>
2014-11-30 20:57:58 +00:00
<title>0.9.6: matrix_transform.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
2012-11-18 13:05:52 +00:00
<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>
2012-11-18 13:05:52 +00:00
<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;">
2014-11-25 00:28:32 +00:00
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
2013-12-25 22:48:55 +00:00
<td style="padding-left: 0.5em;">
2014-11-25 00:28:32 +00:00
<div id="projectname">0.9.6
2013-12-25 22:48:55 +00:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
2012-11-18 13:05:52 +00:00
<!-- end header part -->
2014-11-25 00:28:32 +00:00
<!-- Generated by Doxygen 1.8.8 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</div>
2012-11-18 13:05:52 +00:00
<div id="nav-path" class="navpath">
<ul>
2014-11-30 20:57:58 +00:00
<li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_153b03dd71a7bff437c38ec53cb2e014.html">Source</a></li><li class="navelem"><a class="el" href="dir_0c6652232a835be54bedd6cfd7502504.html">G-Truc</a></li><li class="navelem"><a class="el" href="dir_e2c7faa62a52820b5be8795affd6e495.html">glm</a></li><li class="navelem"><a class="el" href="dir_5cf96241cdcf6779b80e104875f9716f.html">glm</a></li><li class="navelem"><a class="el" href="dir_8aa733b201d3a9f98631fbccc86ae6c7.html">gtc</a></li> </ul>
2012-11-18 13:05:52 +00:00
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
2014-11-30 20:57:58 +00:00
<div class="title">matrix_transform.hpp</div> </div>
2012-11-18 13:05:52 +00:00
</div><!--header-->
<div class="contents">
2012-11-18 13:05:52 +00:00
<a href="a00075.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div>
2014-11-30 20:57:58 +00:00
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="comment">// Dependencies</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="preprocessor">#include &quot;../mat4x4.hpp&quot;</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="preprocessor">#include &quot;../vec2.hpp&quot;</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="preprocessor">#include &quot;../vec3.hpp&quot;</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="preprocessor">#include &quot;../vec4.hpp&quot;</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="preprocessor">#include &quot;../gtc/constants.hpp&quot;</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="preprocessor">#if(defined(GLM_MESSAGES) &amp;&amp; !defined(GLM_EXT_INCLUDED))</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="preprocessor"># pragma message(&quot;GLM: GLM_GTC_matrix_transform extension included&quot;)</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="keyword">namespace </span><a class="code" href="a00145.html">glm</a></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;{</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; GLM_FUNC_DECL tmat4x4&lt;T, P&gt; <a class="code" href="a00171.html#gaee134ab77c6c5548a6ebf4e8e476c6ed">translate</a>(</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; tmat4x4&lt;T, P&gt; <span class="keyword">const</span> &amp; m,</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; GLM_FUNC_DECL tmat4x4&lt;T, P&gt; <a class="code" href="a00171.html#ga161b1df124348f232d994ba7958e4815">rotate</a>(</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; tmat4x4&lt;T, P&gt; <span class="keyword">const</span> &amp; m,</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; T <a class="code" href="a00174.html#gad4a4448baedb198b2b1e7880d2544dc9">angle</a>,</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; <a class="code" href="a00174.html#ga0b3e87a13b2708154b72259e50789a19">axis</a>);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; GLM_FUNC_DECL tmat4x4&lt;T, P&gt; <a class="code" href="a00171.html#ga8f062fcc07e2445500793f2803afebb0">scale</a>(</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; tmat4x4&lt;T, P&gt; <span class="keyword">const</span> &amp; m,</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; v);</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; GLM_FUNC_DECL tmat4x4&lt;T, defaultp&gt; <a class="code" href="a00171.html#ga45b1b64f99255c07119b4f1aaed04dd7">ortho</a>(</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; T left,</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; T right,</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; T bottom,</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; T top,</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; T zNear,</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; T zFar);</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; GLM_FUNC_DECL tmat4x4&lt;T, defaultp&gt; <a class="code" href="a00171.html#ga45b1b64f99255c07119b4f1aaed04dd7">ortho</a>(</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; T left,</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; T right,</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; T bottom,</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; T top);</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; GLM_FUNC_DECL tmat4x4&lt;T, defaultp&gt; <a class="code" href="a00171.html#gada6deb989d4b553fe0f7e3279f3afae1">frustum</a>(</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; T left,</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; T right,</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; T bottom,</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; T top,</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; T near,</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; T far);</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160;</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; GLM_FUNC_DECL tmat4x4&lt;T, defaultp&gt; <a class="code" href="a00171.html#gac3613dcb6c6916465ad5b7ad5a786175">perspective</a>(</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; T fovy,</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; T aspect,</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; T near,</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; T far);</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; GLM_FUNC_DECL tmat4x4&lt;T, defaultp&gt; <a class="code" href="a00171.html#gae9146e2c550fc8646299e4b900238145">perspectiveFov</a>(</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; T fov,</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; T width,</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; T height,</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; T near,</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; T far);</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160;</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; GLM_FUNC_DECL tmat4x4&lt;T, defaultp&gt; <a class="code" href="a00171.html#ga79f704ad91a5f0d68abd88c66c8186e5">infinitePerspective</a>(</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; T fovy, T aspect, T near);</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160;</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; GLM_FUNC_DECL tmat4x4&lt;T, defaultp&gt; <a class="code" href="a00171.html#gaa50fce7f50b5d5da881ed30f5532a921">tweakedInfinitePerspective</a>(</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; T fovy, T aspect, T near);</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160;</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; GLM_FUNC_DECL tmat4x4&lt;T, defaultp&gt; <a class="code" href="a00171.html#gaa50fce7f50b5d5da881ed30f5532a921">tweakedInfinitePerspective</a>(</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; T fovy, T aspect, T near, T ep);</div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160;</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> U, precision P&gt;</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; <a class="code" href="a00171.html#gad743556abd138264d4f06f4ca27f1d7e">project</a>(</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; obj,</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; tmat4x4&lt;T, P&gt; <span class="keyword">const</span> &amp; model,</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; tmat4x4&lt;T, P&gt; <span class="keyword">const</span> &amp; <a class="code" href="a00220.html#gadf29123bcf748fc9d6fb0998192184cf">proj</a>,</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; tvec4&lt;U, P&gt; <span class="keyword">const</span> &amp; viewport);</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160;</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> U, precision P&gt;</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; GLM_FUNC_DECL tvec3&lt;T, P&gt; <a class="code" href="a00171.html#ga82a558de3ce42cbeed0f6ec292a4e1b3">unProject</a>(</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; win,</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; tmat4x4&lt;T, P&gt; <span class="keyword">const</span> &amp; model,</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; tmat4x4&lt;T, P&gt; <span class="keyword">const</span> &amp; <a class="code" href="a00220.html#gadf29123bcf748fc9d6fb0998192184cf">proj</a>,</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; tvec4&lt;U, P&gt; <span class="keyword">const</span> &amp; viewport);</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160;</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P, <span class="keyword">typename</span> U&gt;</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; GLM_FUNC_DECL tmat4x4&lt;T, P&gt; <a class="code" href="a00171.html#ga9026c77505b99990f68826f27c267dc5">pickMatrix</a>(</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; tvec2&lt;T, P&gt; <span class="keyword">const</span> &amp; center,</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; tvec2&lt;T, P&gt; <span class="keyword">const</span> &amp; delta,</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; tvec4&lt;U, P&gt; <span class="keyword">const</span> &amp; viewport);</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160;</div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, precision P&gt;</div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; GLM_FUNC_DECL tmat4x4&lt;T, P&gt; <a class="code" href="a00171.html#gaf8eef81da1ad09f6a8920101c01eaae4">lookAt</a>(</div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160; tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; eye,</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; center,</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; tvec3&lt;T, P&gt; <span class="keyword">const</span> &amp; up);</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160;</div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160;}<span class="comment">//namespace glm</span></div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160;</div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160;<span class="preprocessor">#include &quot;matrix_transform.inl&quot;</span></div>
<div class="ttc" id="a00171_html_ga45b1b64f99255c07119b4f1aaed04dd7"><div class="ttname"><a href="a00171.html#ga45b1b64f99255c07119b4f1aaed04dd7">glm::ortho</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4&lt; T, defaultp &gt; ortho(T left, T right, T bottom, T top)</div><div class="ttdoc">Creates a matrix for projecting two-dimensional coordinates onto the screen. </div></div>
<div class="ttc" id="a00171_html_ga8f062fcc07e2445500793f2803afebb0"><div class="ttname"><a href="a00171.html#ga8f062fcc07e2445500793f2803afebb0">glm::scale</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4&lt; T, P &gt; scale(tmat4x4&lt; T, P &gt; const &amp;m, tvec3&lt; T, P &gt; const &amp;v)</div><div class="ttdoc">Builds a scale 4 * 4 matrix created from 3 scalars. </div></div>
<div class="ttc" id="a00220_html_gadf29123bcf748fc9d6fb0998192184cf"><div class="ttname"><a href="a00220.html#gadf29123bcf748fc9d6fb0998192184cf">glm::proj</a></div><div class="ttdeci">GLM_FUNC_DECL vecType proj(vecType const &amp;x, vecType const &amp;Normal)</div><div class="ttdoc">Projects x on Normal. </div></div>
<div class="ttc" id="a00171_html_gad743556abd138264d4f06f4ca27f1d7e"><div class="ttname"><a href="a00171.html#gad743556abd138264d4f06f4ca27f1d7e">glm::project</a></div><div class="ttdeci">GLM_FUNC_DECL tvec3&lt; T, P &gt; project(tvec3&lt; T, P &gt; const &amp;obj, tmat4x4&lt; T, P &gt; const &amp;model, tmat4x4&lt; T, P &gt; const &amp;proj, tvec4&lt; U, P &gt; const &amp;viewport)</div><div class="ttdoc">Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates. </div></div>
<div class="ttc" id="a00174_html_ga0b3e87a13b2708154b72259e50789a19"><div class="ttname"><a href="a00174.html#ga0b3e87a13b2708154b72259e50789a19">glm::axis</a></div><div class="ttdeci">GLM_FUNC_DECL tvec3&lt; T, P &gt; axis(tquat&lt; T, P &gt; const &amp;x)</div><div class="ttdoc">Returns the q rotation axis. </div></div>
<div class="ttc" id="a00171_html_gae9146e2c550fc8646299e4b900238145"><div class="ttname"><a href="a00171.html#gae9146e2c550fc8646299e4b900238145">glm::perspectiveFov</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4&lt; T, defaultp &gt; perspectiveFov(T fov, T width, T height, T near, T far)</div><div class="ttdoc">Builds a perspective projection matrix based on a field of view. </div></div>
<div class="ttc" id="a00174_html_gad4a4448baedb198b2b1e7880d2544dc9"><div class="ttname"><a href="a00174.html#gad4a4448baedb198b2b1e7880d2544dc9">glm::angle</a></div><div class="ttdeci">GLM_FUNC_DECL T angle(tquat&lt; T, P &gt; const &amp;x)</div><div class="ttdoc">Returns the quaternion rotation angle. </div></div>
<div class="ttc" id="a00171_html_gaee134ab77c6c5548a6ebf4e8e476c6ed"><div class="ttname"><a href="a00171.html#gaee134ab77c6c5548a6ebf4e8e476c6ed">glm::translate</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4&lt; T, P &gt; translate(tmat4x4&lt; T, P &gt; const &amp;m, tvec3&lt; T, P &gt; const &amp;v)</div><div class="ttdoc">Builds a translation 4 * 4 matrix created from a vector of 3 components. </div></div>
<div class="ttc" id="a00171_html_gada6deb989d4b553fe0f7e3279f3afae1"><div class="ttname"><a href="a00171.html#gada6deb989d4b553fe0f7e3279f3afae1">glm::frustum</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4&lt; T, defaultp &gt; frustum(T left, T right, T bottom, T top, T near, T far)</div><div class="ttdoc">Creates a frustum matrix. </div></div>
<div class="ttc" id="a00171_html_gaa50fce7f50b5d5da881ed30f5532a921"><div class="ttname"><a href="a00171.html#gaa50fce7f50b5d5da881ed30f5532a921">glm::tweakedInfinitePerspective</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4&lt; T, defaultp &gt; tweakedInfinitePerspective(T fovy, T aspect, T near, T ep)</div><div class="ttdoc">Creates a matrix for a symmetric perspective-view frustum with far plane at infinite for graphics har...</div></div>
<div class="ttc" id="a00171_html_ga161b1df124348f232d994ba7958e4815"><div class="ttname"><a href="a00171.html#ga161b1df124348f232d994ba7958e4815">glm::rotate</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4&lt; T, P &gt; rotate(tmat4x4&lt; T, P &gt; const &amp;m, T angle, tvec3&lt; T, P &gt; const &amp;axis)</div><div class="ttdoc">Builds a rotation 4 * 4 matrix created from an axis vector and an angle. </div></div>
<div class="ttc" id="a00145_html"><div class="ttname"><a href="a00145.html">glm</a></div><div class="ttdef"><b>Definition:</b> <a href="a00003_source.html#l00039">_noise.hpp:39</a></div></div>
<div class="ttc" id="a00171_html_gac3613dcb6c6916465ad5b7ad5a786175"><div class="ttname"><a href="a00171.html#gac3613dcb6c6916465ad5b7ad5a786175">glm::perspective</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4&lt; T, defaultp &gt; perspective(T fovy, T aspect, T near, T far)</div><div class="ttdoc">Creates a matrix for a symetric perspective-view frustum. </div></div>
<div class="ttc" id="a00171_html_ga82a558de3ce42cbeed0f6ec292a4e1b3"><div class="ttname"><a href="a00171.html#ga82a558de3ce42cbeed0f6ec292a4e1b3">glm::unProject</a></div><div class="ttdeci">GLM_FUNC_DECL tvec3&lt; T, P &gt; unProject(tvec3&lt; T, P &gt; const &amp;win, tmat4x4&lt; T, P &gt; const &amp;model, tmat4x4&lt; T, P &gt; const &amp;proj, tvec4&lt; U, P &gt; const &amp;viewport)</div><div class="ttdoc">Map the specified window coordinates (win.x, win.y, win.z) into object coordinates. </div></div>
<div class="ttc" id="a00171_html_ga9026c77505b99990f68826f27c267dc5"><div class="ttname"><a href="a00171.html#ga9026c77505b99990f68826f27c267dc5">glm::pickMatrix</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4&lt; T, P &gt; pickMatrix(tvec2&lt; T, P &gt; const &amp;center, tvec2&lt; T, P &gt; const &amp;delta, tvec4&lt; U, P &gt; const &amp;viewport)</div><div class="ttdoc">Define a picking region. </div></div>
<div class="ttc" id="a00171_html_ga79f704ad91a5f0d68abd88c66c8186e5"><div class="ttname"><a href="a00171.html#ga79f704ad91a5f0d68abd88c66c8186e5">glm::infinitePerspective</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4&lt; T, defaultp &gt; infinitePerspective(T fovy, T aspect, T near)</div><div class="ttdoc">Creates a matrix for a symmetric perspective-view frustum with far plane at infinite. </div></div>
<div class="ttc" id="a00171_html_gaf8eef81da1ad09f6a8920101c01eaae4"><div class="ttname"><a href="a00171.html#gaf8eef81da1ad09f6a8920101c01eaae4">glm::lookAt</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4&lt; T, P &gt; lookAt(tvec3&lt; T, P &gt; const &amp;eye, tvec3&lt; T, P &gt; const &amp;center, tvec3&lt; T, P &gt; const &amp;up)</div><div class="ttdoc">Build a look at view matrix. </div></div>
2012-11-18 13:05:52 +00:00
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<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"/>
2014-11-25 00:28:32 +00:00
</a> 1.8.8
</small></address>
</body>
</html>