mirror of
https://github.com/g-truc/glm.git
synced 2024-11-12 21:31:47 +00:00
162 lines
10 KiB
HTML
162 lines
10 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"/>
|
|
<title>GLM: glm::core::function::matrix Namespace Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<!-- Generated by Doxygen 1.6.1 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="namespaces.html"><span>Namespace List</span></a></li>
|
|
<li><a href="namespacemembers.html"><span>Namespace Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>glm::core::function::matrix Namespace Reference</h1>
|
|
<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.
|
|
<a href="#_details">More...</a></p>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td colspan="2"><h2>Functions</h2></td></tr>
|
|
<tr><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr><td class="memTemplItemLeft" align="right" valign="top">genType::value_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00130.html#ae463e0ea522ea3147e2fd7ecb95a2274">determinant</a> (genType const &m)</td></tr>
|
|
<tr><td class="mdescLeft"> </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>
|
|
<tr><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr><td class="memTemplItemLeft" align="right" valign="top">genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00130.html#a748536c65c9e13fd538c4499a631a680">inverse</a> (genType const &m)</td></tr>
|
|
<tr><td class="mdescLeft"> </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>
|
|
<tr><td class="memTemplParams" colspan="2">template<typename matType > </td></tr>
|
|
<tr><td class="memTemplItemLeft" align="right" valign="top">matType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00130.html#ad27896f9d5be202b8d39552eeb352c87">matrixCompMult</a> (matType const &x, matType const &y)</td></tr>
|
|
<tr><td class="mdescLeft"> </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>
|
|
<tr><td class="memTemplParams" colspan="2">template<typename vecType , typename matType > </td></tr>
|
|
<tr><td class="memTemplItemLeft" align="right" valign="top">matType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00130.html#a04b83f76e97124e8e91d923dd7ba326c">outerProduct</a> (vecType const &c, vecType const &r)</td></tr>
|
|
<tr><td class="mdescLeft"> </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>
|
|
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="a8b1a22512f73b0176ad062d3d480e906"></a><!-- doxytag: member="glm::core::function::matrix::transpose" ref="a8b1a22512f73b0176ad062d3d480e906" args="(matType const &x)" -->
|
|
template<typename matType > </td></tr>
|
|
<tr><td class="memTemplItemLeft" align="right" valign="top">matType::transpose_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00130.html#a8b1a22512f73b0176ad062d3d480e906">transpose</a> (matType const &x)</td></tr>
|
|
<tr><td class="mdescLeft"> </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>
|
|
</table>
|
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
|
<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>
|
|
<hr/><h2>Function Documentation</h2>
|
|
<a class="anchor" id="ae463e0ea522ea3147e2fd7ecb95a2274"></a><!-- doxytag: member="glm::core::function::matrix::determinant" ref="ae463e0ea522ea3147e2fd7ecb95a2274" args="(genType const &m)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">genType::value_type glm::core::function::matrix::determinant </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genType const & </td>
|
|
<td class="paramname"> <em>m</em></td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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>
|
|
<p>(From GLSL 1.50.09 specification, section 8.5). genType: mat2, mat3, mat4. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a748536c65c9e13fd538c4499a631a680"></a><!-- doxytag: member="glm::core::function::matrix::inverse" ref="a748536c65c9e13fd538c4499a631a680" args="(genType const &m)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">genType glm::core::function::matrix::inverse </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genType const & </td>
|
|
<td class="paramname"> <em>m</em></td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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>
|
|
<p>(From GLSL 1.40.07 specification, section 8.5). genType: mat2, mat3, mat4. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad27896f9d5be202b8d39552eeb352c87"></a><!-- doxytag: member="glm::core::function::matrix::matrixCompMult" ref="ad27896f9d5be202b8d39552eeb352c87" args="(matType const &x, matType const &y)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">matType glm::core::function::matrix::matrixCompMult </td>
|
|
<td>(</td>
|
|
<td class="paramtype">matType const & </td>
|
|
<td class="paramname"> <em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">matType const & </td>
|
|
<td class="paramname"> <em>y</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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>
|
|
<p>(From GLSL 1.30.08 specification, section 8.5) </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a04b83f76e97124e8e91d923dd7ba326c"></a><!-- doxytag: member="glm::core::function::matrix::outerProduct" ref="a04b83f76e97124e8e91d923dd7ba326c" args="(vecType const &c, vecType const &r)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">matType glm::core::function::matrix::outerProduct </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vecType const & </td>
|
|
<td class="paramname"> <em>c</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vecType const & </td>
|
|
<td class="paramname"> <em>r</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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>
|
|
<p>(From GLSL 1.30.08 specification, section 8.5) </p>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr size="1"/><address style="text-align: right;"><small>Generated on Mon Nov 16 11:23:23 2009 for GLM by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
|
|
</body>
|
|
</html>
|