Platformer in OpenGL
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

335 рядки
15 KiB

5 роки тому
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>0.9.9 API documenation: GLM_GTX_norm</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectlogo"><img alt="Logo" src="logo-mini.png"/></td>
  24. <td id="projectalign" style="padding-left: 0.5em;">
  25. <div id="projectname">0.9.9 API documenation
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.14 -->
  34. <script type="text/javascript">
  35. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. /* @license-end */
  38. </script>
  39. <script type="text/javascript" src="menudata.js"></script>
  40. <script type="text/javascript" src="menu.js"></script>
  41. <script type="text/javascript">
  42. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  43. $(function() {
  44. initMenu('',true,false,'search.php','Search');
  45. $(document).ready(function() { init_search(); });
  46. });
  47. /* @license-end */</script>
  48. <div id="main-nav"></div>
  49. </div><!-- top -->
  50. <!-- window showing the filter options -->
  51. <div id="MSearchSelectWindow"
  52. onmouseover="return searchBox.OnSearchSelectShow()"
  53. onmouseout="return searchBox.OnSearchSelectHide()"
  54. onkeydown="return searchBox.OnSearchSelectKey(event)">
  55. </div>
  56. <!-- iframe showing the search results (closed by default) -->
  57. <div id="MSearchResultsWindow">
  58. <iframe src="javascript:void(0)" frameborder="0"
  59. name="MSearchResults" id="MSearchResults">
  60. </iframe>
  61. </div>
  62. <div class="header">
  63. <div class="summary">
  64. <a href="#func-members">Functions</a> </div>
  65. <div class="headertitle">
  66. <div class="title">GLM_GTX_norm<div class="ingroups"><a class="el" href="a00705.html">Experimental extensions</a></div></div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <table class="memberdecls">
  70. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  71. Functions</h2></td></tr>
  72. <tr class="memitem:ga85660f1b79f66c09c7b5a6f80e68c89f"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:ga85660f1b79f66c09c7b5a6f80e68c89f"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00760.html#ga85660f1b79f66c09c7b5a6f80e68c89f">distance2</a> (vec&lt; L, T, Q &gt; const &amp;p0, vec&lt; L, T, Q &gt; const &amp;p1)</td></tr>
  74. <tr class="separator:ga85660f1b79f66c09c7b5a6f80e68c89f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:gae2fc0b2aa967bebfd6a244700bff6997"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:gae2fc0b2aa967bebfd6a244700bff6997"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00760.html#gae2fc0b2aa967bebfd6a244700bff6997">l1Norm</a> (vec&lt; 3, T, Q &gt; const &amp;x, vec&lt; 3, T, Q &gt; const &amp;y)</td></tr>
  77. <tr class="separator:gae2fc0b2aa967bebfd6a244700bff6997"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga1a7491e2037ceeb37f83ce41addfc0be"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:ga1a7491e2037ceeb37f83ce41addfc0be"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00760.html#ga1a7491e2037ceeb37f83ce41addfc0be">l1Norm</a> (vec&lt; 3, T, Q &gt; const &amp;v)</td></tr>
  80. <tr class="separator:ga1a7491e2037ceeb37f83ce41addfc0be"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:ga41340b2ef40a9307ab0f137181565168"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  82. <tr class="memitem:ga41340b2ef40a9307ab0f137181565168"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00760.html#ga41340b2ef40a9307ab0f137181565168">l2Norm</a> (vec&lt; 3, T, Q &gt; const &amp;x, vec&lt; 3, T, Q &gt; const &amp;y)</td></tr>
  83. <tr class="separator:ga41340b2ef40a9307ab0f137181565168"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:gae288bde8f0e41fb4ed62e65137b18cba"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  85. <tr class="memitem:gae288bde8f0e41fb4ed62e65137b18cba"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00760.html#gae288bde8f0e41fb4ed62e65137b18cba">l2Norm</a> (vec&lt; 3, T, Q &gt; const &amp;x)</td></tr>
  86. <tr class="separator:gae288bde8f0e41fb4ed62e65137b18cba"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:ga8d1789651050adb7024917984b41c3de"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  88. <tr class="memitem:ga8d1789651050adb7024917984b41c3de"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00760.html#ga8d1789651050adb7024917984b41c3de">length2</a> (vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  89. <tr class="separator:ga8d1789651050adb7024917984b41c3de"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:gacad23d30497eb16f67709f2375d1f66a"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  91. <tr class="memitem:gacad23d30497eb16f67709f2375d1f66a"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00760.html#gacad23d30497eb16f67709f2375d1f66a">lxNorm</a> (vec&lt; 3, T, Q &gt; const &amp;x, vec&lt; 3, T, Q &gt; const &amp;y, unsigned int Depth)</td></tr>
  92. <tr class="separator:gacad23d30497eb16f67709f2375d1f66a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:gac61b6d81d796d6eb4d4183396a19ab91"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  94. <tr class="memitem:gac61b6d81d796d6eb4d4183396a19ab91"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00760.html#gac61b6d81d796d6eb4d4183396a19ab91">lxNorm</a> (vec&lt; 3, T, Q &gt; const &amp;x, unsigned int Depth)</td></tr>
  95. <tr class="separator:gac61b6d81d796d6eb4d4183396a19ab91"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. </table>
  97. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  98. <p>Include &lt;<a class="el" href="a00542.html" title="GLM_GTX_norm ">glm/gtx/norm.hpp</a>&gt; to use the features of this extension. </p>
  99. <p>Various ways to compute vector norms. </p>
  100. <h2 class="groupheader">Function Documentation</h2>
  101. <a id="ga85660f1b79f66c09c7b5a6f80e68c89f"></a>
  102. <h2 class="memtitle"><span class="permalink"><a href="#ga85660f1b79f66c09c7b5a6f80e68c89f">&#9670;&nbsp;</a></span>distance2()</h2>
  103. <div class="memitem">
  104. <div class="memproto">
  105. <table class="memname">
  106. <tr>
  107. <td class="memname">GLM_FUNC_DECL T glm::distance2 </td>
  108. <td>(</td>
  109. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  110. <td class="paramname"><em>p0</em>, </td>
  111. </tr>
  112. <tr>
  113. <td class="paramkey"></td>
  114. <td></td>
  115. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  116. <td class="paramname"><em>p1</em>&#160;</td>
  117. </tr>
  118. <tr>
  119. <td></td>
  120. <td>)</td>
  121. <td></td><td></td>
  122. </tr>
  123. </table>
  124. </div><div class="memdoc">
  125. <p>Returns the squared distance between p0 and p1, i.e., length2(p0 - p1). </p>
  126. <p>From GLM_GTX_norm extension. </p>
  127. </div>
  128. </div>
  129. <a id="gae2fc0b2aa967bebfd6a244700bff6997"></a>
  130. <h2 class="memtitle"><span class="permalink"><a href="#gae2fc0b2aa967bebfd6a244700bff6997">&#9670;&nbsp;</a></span>l1Norm() <span class="overload">[1/2]</span></h2>
  131. <div class="memitem">
  132. <div class="memproto">
  133. <table class="memname">
  134. <tr>
  135. <td class="memname">GLM_FUNC_DECL T glm::l1Norm </td>
  136. <td>(</td>
  137. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  138. <td class="paramname"><em>x</em>, </td>
  139. </tr>
  140. <tr>
  141. <td class="paramkey"></td>
  142. <td></td>
  143. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  144. <td class="paramname"><em>y</em>&#160;</td>
  145. </tr>
  146. <tr>
  147. <td></td>
  148. <td>)</td>
  149. <td></td><td></td>
  150. </tr>
  151. </table>
  152. </div><div class="memdoc">
  153. <p>Returns the L1 norm between x and y. </p>
  154. <p>From GLM_GTX_norm extension. </p>
  155. </div>
  156. </div>
  157. <a id="ga1a7491e2037ceeb37f83ce41addfc0be"></a>
  158. <h2 class="memtitle"><span class="permalink"><a href="#ga1a7491e2037ceeb37f83ce41addfc0be">&#9670;&nbsp;</a></span>l1Norm() <span class="overload">[2/2]</span></h2>
  159. <div class="memitem">
  160. <div class="memproto">
  161. <table class="memname">
  162. <tr>
  163. <td class="memname">GLM_FUNC_DECL T glm::l1Norm </td>
  164. <td>(</td>
  165. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  166. <td class="paramname"><em>v</em></td><td>)</td>
  167. <td></td>
  168. </tr>
  169. </table>
  170. </div><div class="memdoc">
  171. <p>Returns the L1 norm of v. </p>
  172. <p>From GLM_GTX_norm extension. </p>
  173. </div>
  174. </div>
  175. <a id="ga41340b2ef40a9307ab0f137181565168"></a>
  176. <h2 class="memtitle"><span class="permalink"><a href="#ga41340b2ef40a9307ab0f137181565168">&#9670;&nbsp;</a></span>l2Norm() <span class="overload">[1/2]</span></h2>
  177. <div class="memitem">
  178. <div class="memproto">
  179. <table class="memname">
  180. <tr>
  181. <td class="memname">GLM_FUNC_DECL T glm::l2Norm </td>
  182. <td>(</td>
  183. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  184. <td class="paramname"><em>x</em>, </td>
  185. </tr>
  186. <tr>
  187. <td class="paramkey"></td>
  188. <td></td>
  189. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  190. <td class="paramname"><em>y</em>&#160;</td>
  191. </tr>
  192. <tr>
  193. <td></td>
  194. <td>)</td>
  195. <td></td><td></td>
  196. </tr>
  197. </table>
  198. </div><div class="memdoc">
  199. <p>Returns the L2 norm between x and y. </p>
  200. <p>From GLM_GTX_norm extension. </p>
  201. </div>
  202. </div>
  203. <a id="gae288bde8f0e41fb4ed62e65137b18cba"></a>
  204. <h2 class="memtitle"><span class="permalink"><a href="#gae288bde8f0e41fb4ed62e65137b18cba">&#9670;&nbsp;</a></span>l2Norm() <span class="overload">[2/2]</span></h2>
  205. <div class="memitem">
  206. <div class="memproto">
  207. <table class="memname">
  208. <tr>
  209. <td class="memname">GLM_FUNC_DECL T glm::l2Norm </td>
  210. <td>(</td>
  211. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  212. <td class="paramname"><em>x</em></td><td>)</td>
  213. <td></td>
  214. </tr>
  215. </table>
  216. </div><div class="memdoc">
  217. <p>Returns the L2 norm of v. </p>
  218. <p>From GLM_GTX_norm extension. </p>
  219. </div>
  220. </div>
  221. <a id="ga8d1789651050adb7024917984b41c3de"></a>
  222. <h2 class="memtitle"><span class="permalink"><a href="#ga8d1789651050adb7024917984b41c3de">&#9670;&nbsp;</a></span>length2()</h2>
  223. <div class="memitem">
  224. <div class="memproto">
  225. <table class="memname">
  226. <tr>
  227. <td class="memname">GLM_FUNC_DECL T glm::length2 </td>
  228. <td>(</td>
  229. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  230. <td class="paramname"><em>x</em></td><td>)</td>
  231. <td></td>
  232. </tr>
  233. </table>
  234. </div><div class="memdoc">
  235. <p>Returns the squared length of x. </p>
  236. <p>From GLM_GTX_norm extension. </p>
  237. </div>
  238. </div>
  239. <a id="gacad23d30497eb16f67709f2375d1f66a"></a>
  240. <h2 class="memtitle"><span class="permalink"><a href="#gacad23d30497eb16f67709f2375d1f66a">&#9670;&nbsp;</a></span>lxNorm() <span class="overload">[1/2]</span></h2>
  241. <div class="memitem">
  242. <div class="memproto">
  243. <table class="memname">
  244. <tr>
  245. <td class="memname">GLM_FUNC_DECL T glm::lxNorm </td>
  246. <td>(</td>
  247. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  248. <td class="paramname"><em>x</em>, </td>
  249. </tr>
  250. <tr>
  251. <td class="paramkey"></td>
  252. <td></td>
  253. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  254. <td class="paramname"><em>y</em>, </td>
  255. </tr>
  256. <tr>
  257. <td class="paramkey"></td>
  258. <td></td>
  259. <td class="paramtype">unsigned int&#160;</td>
  260. <td class="paramname"><em>Depth</em>&#160;</td>
  261. </tr>
  262. <tr>
  263. <td></td>
  264. <td>)</td>
  265. <td></td><td></td>
  266. </tr>
  267. </table>
  268. </div><div class="memdoc">
  269. <p>Returns the L norm between x and y. </p>
  270. <p>From GLM_GTX_norm extension. </p>
  271. </div>
  272. </div>
  273. <a id="gac61b6d81d796d6eb4d4183396a19ab91"></a>
  274. <h2 class="memtitle"><span class="permalink"><a href="#gac61b6d81d796d6eb4d4183396a19ab91">&#9670;&nbsp;</a></span>lxNorm() <span class="overload">[2/2]</span></h2>
  275. <div class="memitem">
  276. <div class="memproto">
  277. <table class="memname">
  278. <tr>
  279. <td class="memname">GLM_FUNC_DECL T glm::lxNorm </td>
  280. <td>(</td>
  281. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  282. <td class="paramname"><em>x</em>, </td>
  283. </tr>
  284. <tr>
  285. <td class="paramkey"></td>
  286. <td></td>
  287. <td class="paramtype">unsigned int&#160;</td>
  288. <td class="paramname"><em>Depth</em>&#160;</td>
  289. </tr>
  290. <tr>
  291. <td></td>
  292. <td>)</td>
  293. <td></td><td></td>
  294. </tr>
  295. </table>
  296. </div><div class="memdoc">
  297. <p>Returns the L norm of v. </p>
  298. <p>From GLM_GTX_norm extension. </p>
  299. </div>
  300. </div>
  301. </div><!-- contents -->
  302. <!-- start footer part -->
  303. <hr class="footer"/><address class="footer"><small>
  304. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  305. <img class="footer" src="doxygen.png" alt="doxygen"/>
  306. </a> 1.8.14
  307. </small></address>
  308. </body>
  309. </html>