a00130.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. <title>GLM: glm::core::function::matrix Namespace Reference</title>
  6. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  7. <link href="doxygen.css" rel="stylesheet" type="text/css"/>
  8. </head>
  9. <body>
  10. <!-- Generated by Doxygen 1.6.1 -->
  11. <div class="navigation" id="top">
  12. <div class="tabs">
  13. <ul>
  14. <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
  15. <li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
  16. <li><a href="files.html"><span>Files</span></a></li>
  17. </ul>
  18. </div>
  19. <div class="tabs">
  20. <ul>
  21. <li><a href="namespaces.html"><span>Namespace&nbsp;List</span></a></li>
  22. <li><a href="namespacemembers.html"><span>Namespace&nbsp;Members</span></a></li>
  23. </ul>
  24. </div>
  25. <div class="navpath"><a class="el" href="a00124.html">glm</a>::<a class="el" href="a00125.html">core</a>::<a class="el" href="a00126.html">function</a>::<a class="el" href="a00130.html">matrix</a>
  26. </div>
  27. </div>
  28. <div class="contents">
  29. <h1>glm::core::function::matrix Namespace Reference</h1>
  30. <p>Define all <a class="el" href="a00130.html" title="Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included...">matrix</a> functions from Section 8.5 of GLSL 1.30.8 specification. Included in <a class="el" href="a00124.html" title="GLM namespace, it contains all GLSL based features.">glm</a> namespace.
  31. <a href="#_details">More...</a></p>
  32. <table border="0" cellpadding="0" cellspacing="0">
  33. <tr><td colspan="2"><h2>Functions</h2></td></tr>
  34. <tr><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  35. <tr><td class="memTemplItemLeft" align="right" valign="top">genType::value_type&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00130.html#ae463e0ea522ea3147e2fd7ecb95a2274">determinant</a> (genType const &amp;m)</td></tr>
  36. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the determinant of a <a class="el" href="a00130.html" title="Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included...">matrix</a>. <a href="#ae463e0ea522ea3147e2fd7ecb95a2274"></a><br/></td></tr>
  37. <tr><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  38. <tr><td class="memTemplItemLeft" align="right" valign="top">genType&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00130.html#a748536c65c9e13fd538c4499a631a680">inverse</a> (genType const &amp;m)</td></tr>
  39. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the inverse of a <a class="el" href="a00130.html" title="Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included...">matrix</a>. <a href="#a748536c65c9e13fd538c4499a631a680"></a><br/></td></tr>
  40. <tr><td class="memTemplParams" colspan="2">template&lt;typename matType &gt; </td></tr>
  41. <tr><td class="memTemplItemLeft" align="right" valign="top">matType&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00130.html#ad27896f9d5be202b8d39552eeb352c87">matrixCompMult</a> (matType const &amp;x, matType const &amp;y)</td></tr>
  42. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Multiply <a class="el" href="a00130.html" title="Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included...">matrix</a> x by <a class="el" href="a00130.html" title="Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included...">matrix</a> y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and y[i][j]. <a href="#ad27896f9d5be202b8d39552eeb352c87"></a><br/></td></tr>
  43. <tr><td class="memTemplParams" colspan="2">template&lt;typename vecType , typename matType &gt; </td></tr>
  44. <tr><td class="memTemplItemLeft" align="right" valign="top">matType&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00130.html#a04b83f76e97124e8e91d923dd7ba326c">outerProduct</a> (vecType const &amp;c, vecType const &amp;r)</td></tr>
  45. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Treats the first parameter c as a column vector and the second parameter r as a row vector and does a linear algebraic <a class="el" href="a00130.html" title="Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included...">matrix</a> multiply c * r. <a href="#a04b83f76e97124e8e91d923dd7ba326c"></a><br/></td></tr>
  46. <tr><td class="memTemplParams" colspan="2"><a class="anchor" id="a8b1a22512f73b0176ad062d3d480e906"></a><!-- doxytag: member="glm::core::function::matrix::transpose" ref="a8b1a22512f73b0176ad062d3d480e906" args="(matType const &amp;x)" -->
  47. template&lt;typename matType &gt; </td></tr>
  48. <tr><td class="memTemplItemLeft" align="right" valign="top">matType::transpose_type&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00130.html#a8b1a22512f73b0176ad062d3d480e906">transpose</a> (matType const &amp;x)</td></tr>
  49. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the transposed <a class="el" href="a00130.html" title="Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included...">matrix</a> of x (From GLSL 1.30.08 specification, section 8.5). <br/></td></tr>
  50. </table>
  51. <hr/><a name="_details"></a><h2>Detailed Description</h2>
  52. <p>Define all <a class="el" href="a00130.html" title="Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included...">matrix</a> functions from Section 8.5 of GLSL 1.30.8 specification. Included in <a class="el" href="a00124.html" title="GLM namespace, it contains all GLSL based features.">glm</a> namespace. </p>
  53. <hr/><h2>Function Documentation</h2>
  54. <a class="anchor" id="ae463e0ea522ea3147e2fd7ecb95a2274"></a><!-- doxytag: member="glm::core::function::matrix::determinant" ref="ae463e0ea522ea3147e2fd7ecb95a2274" args="(genType const &amp;m)" -->
  55. <div class="memitem">
  56. <div class="memproto">
  57. <table class="memname">
  58. <tr>
  59. <td class="memname">genType::value_type glm::core::function::matrix::determinant </td>
  60. <td>(</td>
  61. <td class="paramtype">genType const &amp;&nbsp;</td>
  62. <td class="paramname"> <em>m</em></td>
  63. <td>&nbsp;)&nbsp;</td>
  64. <td></td>
  65. </tr>
  66. </table>
  67. </div>
  68. <div class="memdoc">
  69. <p>Return the determinant of a <a class="el" href="a00130.html" title="Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included...">matrix</a>. </p>
  70. <p>(From GLSL 1.50.09 specification, section 8.5). genType: mat2, mat3, mat4. </p>
  71. </div>
  72. </div>
  73. <a class="anchor" id="a748536c65c9e13fd538c4499a631a680"></a><!-- doxytag: member="glm::core::function::matrix::inverse" ref="a748536c65c9e13fd538c4499a631a680" args="(genType const &amp;m)" -->
  74. <div class="memitem">
  75. <div class="memproto">
  76. <table class="memname">
  77. <tr>
  78. <td class="memname">genType glm::core::function::matrix::inverse </td>
  79. <td>(</td>
  80. <td class="paramtype">genType const &amp;&nbsp;</td>
  81. <td class="paramname"> <em>m</em></td>
  82. <td>&nbsp;)&nbsp;</td>
  83. <td></td>
  84. </tr>
  85. </table>
  86. </div>
  87. <div class="memdoc">
  88. <p>Return the inverse of a <a class="el" href="a00130.html" title="Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included...">matrix</a>. </p>
  89. <p>(From GLSL 1.40.07 specification, section 8.5). genType: mat2, mat3, mat4. </p>
  90. </div>
  91. </div>
  92. <a class="anchor" id="ad27896f9d5be202b8d39552eeb352c87"></a><!-- doxytag: member="glm::core::function::matrix::matrixCompMult" ref="ad27896f9d5be202b8d39552eeb352c87" args="(matType const &amp;x, matType const &amp;y)" -->
  93. <div class="memitem">
  94. <div class="memproto">
  95. <table class="memname">
  96. <tr>
  97. <td class="memname">matType glm::core::function::matrix::matrixCompMult </td>
  98. <td>(</td>
  99. <td class="paramtype">matType const &amp;&nbsp;</td>
  100. <td class="paramname"> <em>x</em>, </td>
  101. </tr>
  102. <tr>
  103. <td class="paramkey"></td>
  104. <td></td>
  105. <td class="paramtype">matType const &amp;&nbsp;</td>
  106. <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
  107. </tr>
  108. <tr>
  109. <td></td>
  110. <td>)</td>
  111. <td></td><td></td><td></td>
  112. </tr>
  113. </table>
  114. </div>
  115. <div class="memdoc">
  116. <p>Multiply <a class="el" href="a00130.html" title="Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included...">matrix</a> x by <a class="el" href="a00130.html" title="Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included...">matrix</a> y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and y[i][j]. </p>
  117. <p>(From GLSL 1.30.08 specification, section 8.5) </p>
  118. </div>
  119. </div>
  120. <a class="anchor" id="a04b83f76e97124e8e91d923dd7ba326c"></a><!-- doxytag: member="glm::core::function::matrix::outerProduct" ref="a04b83f76e97124e8e91d923dd7ba326c" args="(vecType const &amp;c, vecType const &amp;r)" -->
  121. <div class="memitem">
  122. <div class="memproto">
  123. <table class="memname">
  124. <tr>
  125. <td class="memname">matType glm::core::function::matrix::outerProduct </td>
  126. <td>(</td>
  127. <td class="paramtype">vecType const &amp;&nbsp;</td>
  128. <td class="paramname"> <em>c</em>, </td>
  129. </tr>
  130. <tr>
  131. <td class="paramkey"></td>
  132. <td></td>
  133. <td class="paramtype">vecType const &amp;&nbsp;</td>
  134. <td class="paramname"> <em>r</em></td><td>&nbsp;</td>
  135. </tr>
  136. <tr>
  137. <td></td>
  138. <td>)</td>
  139. <td></td><td></td><td></td>
  140. </tr>
  141. </table>
  142. </div>
  143. <div class="memdoc">
  144. <p>Treats the first parameter c as a column vector and the second parameter r as a row vector and does a linear algebraic <a class="el" href="a00130.html" title="Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included...">matrix</a> multiply c * r. </p>
  145. <p>(From GLSL 1.30.08 specification, section 8.5) </p>
  146. </div>
  147. </div>
  148. </div>
  149. <hr size="1"/><address style="text-align: right;"><small>Generated on Mon Nov 16 11:23:23 2009 for GLM by&nbsp;
  150. <a href="http://www.doxygen.org/index.html">
  151. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
  152. </body>
  153. </html>