mirror of
https://github.com/g-truc/glm.git
synced 2024-11-14 06:04:34 +00:00
241 lines
34 KiB
HTML
241 lines
34 KiB
HTML
<!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"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.10"/>
|
|
<title>0.9.7: matrix_transform.hpp Source File</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, 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.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">0.9.7
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.10 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main 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 List</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_275089585c7fc1b5fd5d7d42c69cb1da.html">D:</a></li><li class="navelem"><a class="el" href="dir_7b98f88bffbed4b390b5f8f520d9c08e.html">Source</a></li><li class="navelem"><a class="el" href="dir_1f76e953200861345293ade84ac7fb6c.html">G-Truc</a></li><li class="navelem"><a class="el" href="dir_e29b03b892e0e25920d021a614d4db9b.html">glm</a></li><li class="navelem"><a class="el" href="dir_5ce58d942b2d0776e17a9a58abc01e04.html">glm</a></li><li class="navelem"><a class="el" href="dir_9440d7c11b99dcd7e5d369c7cf9802fe.html">gtc</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">matrix_transform.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="a00077.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment">// Dependencies</span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor">#include "../mat4x4.hpp"</span></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor">#include "../vec2.hpp"</span></div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor">#include "../vec3.hpp"</span></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor">#include "../vec4.hpp"</span></div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor">#include "../gtc/constants.hpp"</span></div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))</span></div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="preprocessor"># pragma message("GLM: GLM_GTC_matrix_transform extension included")</span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="keyword">namespace </span><a class="code" href="a00146.html">glm</a></div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> {</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P></div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  GLM_FUNC_DECL tmat4x4<T, P> <a class="code" href="a00174.html#gaee134ab77c6c5548a6ebf4e8e476c6ed">translate</a>(</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  tmat4x4<T, P> <span class="keyword">const</span> & m,</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  tvec3<T, P> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  </div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P></div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  GLM_FUNC_DECL tmat4x4<T, P> <a class="code" href="a00174.html#ga161b1df124348f232d994ba7958e4815">rotate</a>(</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  tmat4x4<T, P> <span class="keyword">const</span> & m,</div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  T <a class="code" href="a00177.html#gad4a4448baedb198b2b1e7880d2544dc9">angle</a>,</div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  tvec3<T, P> <span class="keyword">const</span> & <a class="code" href="a00177.html#ga0b3e87a13b2708154b72259e50789a19">axis</a>);</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P></div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  GLM_FUNC_DECL tmat4x4<T, P> <a class="code" href="a00174.html#ga8f062fcc07e2445500793f2803afebb0">scale</a>(</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  tmat4x4<T, P> <span class="keyword">const</span> & m,</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  tvec3<T, P> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  GLM_FUNC_DECL tmat4x4<T, defaultp> <a class="code" href="a00174.html#ga45b1b64f99255c07119b4f1aaed04dd7">ortho</a>(</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  T left,</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  T right,</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  T bottom,</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  T top,</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  T zNear,</div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  T zFar);</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  GLM_FUNC_DECL tmat4x4<T, defaultp> <a class="code" href="a00174.html#ga45b1b64f99255c07119b4f1aaed04dd7">ortho</a>(</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  T left,</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  T right,</div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  T bottom,</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  T top);</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  GLM_FUNC_DECL tmat4x4<T, defaultp> <a class="code" href="a00174.html#gada6deb989d4b553fe0f7e3279f3afae1">frustum</a>(</div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  T left,</div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  T right,</div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  T bottom,</div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  T top,</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  T near,</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  T far);</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  GLM_FUNC_DECL tmat4x4<T, defaultp> <a class="code" href="a00174.html#gac3613dcb6c6916465ad5b7ad5a786175">perspective</a>(</div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  T fovy,</div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  T aspect,</div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  T near,</div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  T far);</div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> </div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  GLM_FUNC_DECL tmat4x4<T, defaultp> <a class="code" href="a00174.html#ga5a4fa9f8ffabb2294e48a18bf8fa2f5f">perspectiveRH</a>(</div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  T fovy,</div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  T aspect,</div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  T near,</div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  T far);</div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  GLM_FUNC_DECL tmat4x4<T, defaultp> <a class="code" href="a00174.html#ga34048da27c559f1ac8e9550d169dd6f3">perspectiveLH</a>(</div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  T fovy,</div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  T aspect,</div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  T near,</div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  T far);</div>
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> </div>
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  GLM_FUNC_DECL tmat4x4<T, defaultp> <a class="code" href="a00174.html#gae9146e2c550fc8646299e4b900238145">perspectiveFov</a>(</div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  T fov,</div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  T width,</div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  T height,</div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  T near,</div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  T far);</div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> </div>
|
|
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  GLM_FUNC_DECL tmat4x4<T, defaultp> <a class="code" href="a00174.html#ga07cd8df791bf90dcb782645fe0b21261">perspectiveFovRH</a>(</div>
|
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  T fov,</div>
|
|
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  T width,</div>
|
|
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  T height,</div>
|
|
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  T near,</div>
|
|
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  T far);</div>
|
|
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> </div>
|
|
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  GLM_FUNC_DECL tmat4x4<T, defaultp> <a class="code" href="a00174.html#gae705a2f19c3ef5ef880bd6c92759cf2d">perspectiveFovLH</a>(</div>
|
|
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  T fov,</div>
|
|
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  T width,</div>
|
|
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  T height,</div>
|
|
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  T near,</div>
|
|
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  T far);</div>
|
|
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> </div>
|
|
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  GLM_FUNC_DECL tmat4x4<T, defaultp> <a class="code" href="a00174.html#ga79f704ad91a5f0d68abd88c66c8186e5">infinitePerspective</a>(</div>
|
|
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  T fovy, T aspect, T near);</div>
|
|
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> </div>
|
|
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  GLM_FUNC_DECL tmat4x4<T, defaultp> <a class="code" href="a00174.html#gaa50fce7f50b5d5da881ed30f5532a921">tweakedInfinitePerspective</a>(</div>
|
|
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  T fovy, T aspect, T near);</div>
|
|
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> </div>
|
|
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  GLM_FUNC_DECL tmat4x4<T, defaultp> <a class="code" href="a00174.html#gaa50fce7f50b5d5da881ed30f5532a921">tweakedInfinitePerspective</a>(</div>
|
|
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  T fovy, T aspect, T near, T ep);</div>
|
|
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> </div>
|
|
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U, precision P></div>
|
|
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  GLM_FUNC_DECL tvec3<T, P> <a class="code" href="a00174.html#gad743556abd138264d4f06f4ca27f1d7e">project</a>(</div>
|
|
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  tvec3<T, P> <span class="keyword">const</span> & obj,</div>
|
|
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  tmat4x4<T, P> <span class="keyword">const</span> & model,</div>
|
|
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  tmat4x4<T, P> <span class="keyword">const</span> & <a class="code" href="a00223.html#gadf29123bcf748fc9d6fb0998192184cf">proj</a>,</div>
|
|
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  tvec4<U, P> <span class="keyword">const</span> & viewport);</div>
|
|
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> </div>
|
|
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U, precision P></div>
|
|
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  GLM_FUNC_DECL tvec3<T, P> <a class="code" href="a00174.html#ga82a558de3ce42cbeed0f6ec292a4e1b3">unProject</a>(</div>
|
|
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  tvec3<T, P> <span class="keyword">const</span> & win,</div>
|
|
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  tmat4x4<T, P> <span class="keyword">const</span> & model,</div>
|
|
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  tmat4x4<T, P> <span class="keyword">const</span> & <a class="code" href="a00223.html#gadf29123bcf748fc9d6fb0998192184cf">proj</a>,</div>
|
|
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  tvec4<U, P> <span class="keyword">const</span> & viewport);</div>
|
|
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> </div>
|
|
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">typename</span> U></div>
|
|
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  GLM_FUNC_DECL tmat4x4<T, P> <a class="code" href="a00174.html#ga9026c77505b99990f68826f27c267dc5">pickMatrix</a>(</div>
|
|
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  tvec2<T, P> <span class="keyword">const</span> & center,</div>
|
|
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  tvec2<T, P> <span class="keyword">const</span> & delta,</div>
|
|
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  tvec4<U, P> <span class="keyword">const</span> & viewport);</div>
|
|
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span> </div>
|
|
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P></div>
|
|
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  GLM_FUNC_DECL tmat4x4<T, P> <a class="code" href="a00174.html#gaf8eef81da1ad09f6a8920101c01eaae4">lookAt</a>(</div>
|
|
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  tvec3<T, P> <span class="keyword">const</span> & eye,</div>
|
|
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  tvec3<T, P> <span class="keyword">const</span> & center,</div>
|
|
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  tvec3<T, P> <span class="keyword">const</span> & up);</div>
|
|
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span> </div>
|
|
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P></div>
|
|
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  GLM_FUNC_DECL tmat4x4<T, P> <a class="code" href="a00174.html#ga2876d9313334980b94292d2ec169088e">lookAtRH</a>(</div>
|
|
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  tvec3<T, P> <span class="keyword">const</span> & eye,</div>
|
|
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  tvec3<T, P> <span class="keyword">const</span> & center,</div>
|
|
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  tvec3<T, P> <span class="keyword">const</span> & up);</div>
|
|
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> </div>
|
|
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P></div>
|
|
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  GLM_FUNC_DECL tmat4x4<T, P> <a class="code" href="a00174.html#gacd0c077ec7b58a575855e29cb5fb586d">lookAtLH</a>(</div>
|
|
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  tvec3<T, P> <span class="keyword">const</span> & eye,</div>
|
|
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  tvec3<T, P> <span class="keyword">const</span> & center,</div>
|
|
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  tvec3<T, P> <span class="keyword">const</span> & up);</div>
|
|
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span> </div>
|
|
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span> }<span class="comment">//namespace glm</span></div>
|
|
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> </div>
|
|
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span> <span class="preprocessor">#include "matrix_transform.inl"</span></div>
|
|
<div class="ttc" id="a00223_html_gadf29123bcf748fc9d6fb0998192184cf"><div class="ttname"><a href="a00223.html#gadf29123bcf748fc9d6fb0998192184cf">glm::proj</a></div><div class="ttdeci">GLM_FUNC_DECL vecType proj(vecType const &x, vecType const &Normal)</div><div class="ttdoc">Projects x on Normal. </div></div>
|
|
<div class="ttc" id="a00174_html_gaee134ab77c6c5548a6ebf4e8e476c6ed"><div class="ttname"><a href="a00174.html#gaee134ab77c6c5548a6ebf4e8e476c6ed">glm::translate</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, P > translate(tmat4x4< T, P > const &m, tvec3< T, P > const &v)</div><div class="ttdoc">Builds a translation 4 * 4 matrix created from a vector of 3 components. </div></div>
|
|
<div class="ttc" id="a00174_html_gae9146e2c550fc8646299e4b900238145"><div class="ttname"><a href="a00174.html#gae9146e2c550fc8646299e4b900238145">glm::perspectiveFov</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, defaultp > 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 and the default handedness. </div></div>
|
|
<div class="ttc" id="a00174_html_gaa50fce7f50b5d5da881ed30f5532a921"><div class="ttname"><a href="a00174.html#gaa50fce7f50b5d5da881ed30f5532a921">glm::tweakedInfinitePerspective</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, defaultp > 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="a00174_html_gac3613dcb6c6916465ad5b7ad5a786175"><div class="ttname"><a href="a00174.html#gac3613dcb6c6916465ad5b7ad5a786175">glm::perspective</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, defaultp > perspective(T fovy, T aspect, T near, T far)</div><div class="ttdoc">Creates a matrix for a symetric perspective-view frustum based on the default handedness. </div></div>
|
|
<div class="ttc" id="a00174_html_ga5a4fa9f8ffabb2294e48a18bf8fa2f5f"><div class="ttname"><a href="a00174.html#ga5a4fa9f8ffabb2294e48a18bf8fa2f5f">glm::perspectiveRH</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, defaultp > perspectiveRH(T fovy, T aspect, T near, T far)</div><div class="ttdoc">Creates a matrix for a right handed, symetric perspective-view frustum. </div></div>
|
|
<div class="ttc" id="a00174_html_ga82a558de3ce42cbeed0f6ec292a4e1b3"><div class="ttname"><a href="a00174.html#ga82a558de3ce42cbeed0f6ec292a4e1b3">glm::unProject</a></div><div class="ttdeci">GLM_FUNC_DECL tvec3< T, P > unProject(tvec3< T, P > const &win, tmat4x4< T, P > const &model, tmat4x4< T, P > const &proj, tvec4< U, P > const &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="a00174_html_ga45b1b64f99255c07119b4f1aaed04dd7"><div class="ttname"><a href="a00174.html#ga45b1b64f99255c07119b4f1aaed04dd7">glm::ortho</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, defaultp > 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="a00174_html_gaf8eef81da1ad09f6a8920101c01eaae4"><div class="ttname"><a href="a00174.html#gaf8eef81da1ad09f6a8920101c01eaae4">glm::lookAt</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, P > lookAt(tvec3< T, P > const &eye, tvec3< T, P > const &center, tvec3< T, P > const &up)</div><div class="ttdoc">Build a look at view matrix based on the default handedness. </div></div>
|
|
<div class="ttc" id="a00174_html_ga9026c77505b99990f68826f27c267dc5"><div class="ttname"><a href="a00174.html#ga9026c77505b99990f68826f27c267dc5">glm::pickMatrix</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, P > pickMatrix(tvec2< T, P > const &center, tvec2< T, P > const &delta, tvec4< U, P > const &viewport)</div><div class="ttdoc">Define a picking region. </div></div>
|
|
<div class="ttc" id="a00174_html_ga34048da27c559f1ac8e9550d169dd6f3"><div class="ttname"><a href="a00174.html#ga34048da27c559f1ac8e9550d169dd6f3">glm::perspectiveLH</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, defaultp > perspectiveLH(T fovy, T aspect, T near, T far)</div><div class="ttdoc">Creates a matrix for a left handed, symetric perspective-view frustum. </div></div>
|
|
<div class="ttc" id="a00174_html_ga79f704ad91a5f0d68abd88c66c8186e5"><div class="ttname"><a href="a00174.html#ga79f704ad91a5f0d68abd88c66c8186e5">glm::infinitePerspective</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, defaultp > 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="a00174_html_gad743556abd138264d4f06f4ca27f1d7e"><div class="ttname"><a href="a00174.html#gad743556abd138264d4f06f4ca27f1d7e">glm::project</a></div><div class="ttdeci">GLM_FUNC_DECL tvec3< T, P > project(tvec3< T, P > const &obj, tmat4x4< T, P > const &model, tmat4x4< T, P > const &proj, tvec4< U, P > const &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="a00177_html_ga0b3e87a13b2708154b72259e50789a19"><div class="ttname"><a href="a00177.html#ga0b3e87a13b2708154b72259e50789a19">glm::axis</a></div><div class="ttdeci">GLM_FUNC_DECL tvec3< T, P > axis(tquat< T, P > const &x)</div><div class="ttdoc">Returns the q rotation axis. </div></div>
|
|
<div class="ttc" id="a00146_html"><div class="ttname"><a href="a00146.html">glm</a></div><div class="ttdef"><b>Definition:</b> <a href="a00003_source.html#l00040">_noise.hpp:40</a></div></div>
|
|
<div class="ttc" id="a00174_html_ga07cd8df791bf90dcb782645fe0b21261"><div class="ttname"><a href="a00174.html#ga07cd8df791bf90dcb782645fe0b21261">glm::perspectiveFovRH</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, defaultp > perspectiveFovRH(T fov, T width, T height, T near, T far)</div><div class="ttdoc">Builds a right handed perspective projection matrix based on a field of view. </div></div>
|
|
<div class="ttc" id="a00177_html_gad4a4448baedb198b2b1e7880d2544dc9"><div class="ttname"><a href="a00177.html#gad4a4448baedb198b2b1e7880d2544dc9">glm::angle</a></div><div class="ttdeci">GLM_FUNC_DECL T angle(tquat< T, P > const &x)</div><div class="ttdoc">Returns the quaternion rotation angle. </div></div>
|
|
<div class="ttc" id="a00174_html_gada6deb989d4b553fe0f7e3279f3afae1"><div class="ttname"><a href="a00174.html#gada6deb989d4b553fe0f7e3279f3afae1">glm::frustum</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, defaultp > 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="a00174_html_gacd0c077ec7b58a575855e29cb5fb586d"><div class="ttname"><a href="a00174.html#gacd0c077ec7b58a575855e29cb5fb586d">glm::lookAtLH</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, P > lookAtLH(tvec3< T, P > const &eye, tvec3< T, P > const &center, tvec3< T, P > const &up)</div><div class="ttdoc">Build a left handed look at view matrix. </div></div>
|
|
<div class="ttc" id="a00174_html_ga161b1df124348f232d994ba7958e4815"><div class="ttname"><a href="a00174.html#ga161b1df124348f232d994ba7958e4815">glm::rotate</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, P > rotate(tmat4x4< T, P > const &m, T angle, tvec3< T, P > const &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="a00174_html_gae705a2f19c3ef5ef880bd6c92759cf2d"><div class="ttname"><a href="a00174.html#gae705a2f19c3ef5ef880bd6c92759cf2d">glm::perspectiveFovLH</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, defaultp > perspectiveFovLH(T fov, T width, T height, T near, T far)</div><div class="ttdoc">Builds a left handed perspective projection matrix based on a field of view. </div></div>
|
|
<div class="ttc" id="a00174_html_ga2876d9313334980b94292d2ec169088e"><div class="ttname"><a href="a00174.html#ga2876d9313334980b94292d2ec169088e">glm::lookAtRH</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, P > lookAtRH(tvec3< T, P > const &eye, tvec3< T, P > const &center, tvec3< T, P > const &up)</div><div class="ttdoc">Build a right handed look at view matrix. </div></div>
|
|
<div class="ttc" id="a00174_html_ga8f062fcc07e2445500793f2803afebb0"><div class="ttname"><a href="a00174.html#ga8f062fcc07e2445500793f2803afebb0">glm::scale</a></div><div class="ttdeci">GLM_FUNC_DECL tmat4x4< T, P > scale(tmat4x4< T, P > const &m, tvec3< T, P > const &v)</div><div class="ttdoc">Builds a scale 4 * 4 matrix created from 3 scalars. </div></div>
|
|
</div><!-- fragment --></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.8.10
|
|
</small></address>
|
|
</body>
|
|
</html>
|