mirror of
https://github.com/g-truc/glm.git
synced 2024-11-27 02:34:35 +00:00
310 lines
16 KiB
HTML
310 lines
16 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.9 API documenation: GLM_GTX_matrix_operation</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="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</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="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">0.9.9 API documenation
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.10 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<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><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">GLM_GTX_matrix_operation<div class="ingroups"><a class="el" href="a00157.html">GTX Extensions (Experimental)</a></div></div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Build diagonal matrices from vectors.
|
|
<a href="#details">More...</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:ga2a5a236689e94ef72fcef64064e9bd5a"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga2a5a236689e94ef72fcef64064e9bd5a"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 2, 2, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga2a5a236689e94ef72fcef64064e9bd5a">diagonal2x2</a> (vec< 2, T, P > const &v)</td></tr>
|
|
<tr class="memdesc:ga2a5a236689e94ef72fcef64064e9bd5a"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#ga2a5a236689e94ef72fcef64064e9bd5a">More...</a><br /></td></tr>
|
|
<tr class="separator:ga2a5a236689e94ef72fcef64064e9bd5a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaba34be247fae13984a657f18f985b889"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gaba34be247fae13984a657f18f985b889"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 2, 3, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gaba34be247fae13984a657f18f985b889">diagonal2x3</a> (vec< 2, T, P > const &v)</td></tr>
|
|
<tr class="memdesc:gaba34be247fae13984a657f18f985b889"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#gaba34be247fae13984a657f18f985b889">More...</a><br /></td></tr>
|
|
<tr class="separator:gaba34be247fae13984a657f18f985b889"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga420b4c9e124eca9e4730e4d9f2ca04a6"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga420b4c9e124eca9e4730e4d9f2ca04a6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 2, 4, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga420b4c9e124eca9e4730e4d9f2ca04a6">diagonal2x4</a> (vec< 2, T, P > const &v)</td></tr>
|
|
<tr class="memdesc:ga420b4c9e124eca9e4730e4d9f2ca04a6"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#ga420b4c9e124eca9e4730e4d9f2ca04a6">More...</a><br /></td></tr>
|
|
<tr class="separator:ga420b4c9e124eca9e4730e4d9f2ca04a6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7160ee2791f695fbc409e5dec7ad5548"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga7160ee2791f695fbc409e5dec7ad5548"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 3, 2, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga7160ee2791f695fbc409e5dec7ad5548">diagonal3x2</a> (vec< 2, T, P > const &v)</td></tr>
|
|
<tr class="memdesc:ga7160ee2791f695fbc409e5dec7ad5548"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#ga7160ee2791f695fbc409e5dec7ad5548">More...</a><br /></td></tr>
|
|
<tr class="separator:ga7160ee2791f695fbc409e5dec7ad5548"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga246399c6803f8433bb097d81299b1535"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga246399c6803f8433bb097d81299b1535"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 3, 3, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga246399c6803f8433bb097d81299b1535">diagonal3x3</a> (vec< 3, T, P > const &v)</td></tr>
|
|
<tr class="memdesc:ga246399c6803f8433bb097d81299b1535"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#ga246399c6803f8433bb097d81299b1535">More...</a><br /></td></tr>
|
|
<tr class="separator:ga246399c6803f8433bb097d81299b1535"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gabd62dd6842db75540efe439e6af4f306"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gabd62dd6842db75540efe439e6af4f306"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 3, 4, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gabd62dd6842db75540efe439e6af4f306">diagonal3x4</a> (vec< 3, T, P > const &v)</td></tr>
|
|
<tr class="memdesc:gabd62dd6842db75540efe439e6af4f306"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#gabd62dd6842db75540efe439e6af4f306">More...</a><br /></td></tr>
|
|
<tr class="separator:gabd62dd6842db75540efe439e6af4f306"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad57a154d7d12d9cd006c9b03bd2adac6"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gad57a154d7d12d9cd006c9b03bd2adac6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 4, 2, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#gad57a154d7d12d9cd006c9b03bd2adac6">diagonal4x2</a> (vec< 2, T, P > const &v)</td></tr>
|
|
<tr class="memdesc:gad57a154d7d12d9cd006c9b03bd2adac6"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#gad57a154d7d12d9cd006c9b03bd2adac6">More...</a><br /></td></tr>
|
|
<tr class="separator:gad57a154d7d12d9cd006c9b03bd2adac6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga012fcff72e35891559ea33db736c0211"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga012fcff72e35891559ea33db736c0211"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 4, 3, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga012fcff72e35891559ea33db736c0211">diagonal4x3</a> (vec< 3, T, P > const &v)</td></tr>
|
|
<tr class="memdesc:ga012fcff72e35891559ea33db736c0211"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#ga012fcff72e35891559ea33db736c0211">More...</a><br /></td></tr>
|
|
<tr class="separator:ga012fcff72e35891559ea33db736c0211"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga24d7a93eeaaac78b8e8cbc78b3804b23"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga24d7a93eeaaac78b8e8cbc78b3804b23"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat< 4, 4, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00212.html#ga24d7a93eeaaac78b8e8cbc78b3804b23">diagonal4x4</a> (vec< 4, T, P > const &v)</td></tr>
|
|
<tr class="memdesc:ga24d7a93eeaaac78b8e8cbc78b3804b23"><td class="mdescLeft"> </td><td class="mdescRight">Build a diagonal matrix. <a href="a00212.html#ga24d7a93eeaaac78b8e8cbc78b3804b23">More...</a><br /></td></tr>
|
|
<tr class="separator:ga24d7a93eeaaac78b8e8cbc78b3804b23"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<p>Build diagonal matrices from vectors. </p>
|
|
<p><<a class="el" href="a00072.html" title="GLM_GTX_matrix_operation ">glm/gtx/matrix_operation.hpp</a>> need to be included to use these functionalities. </p>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a class="anchor" id="ga2a5a236689e94ef72fcef64064e9bd5a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL mat<2, 2, T, P> glm::diagonal2x2 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< 2, T, P > const & </td>
|
|
<td class="paramname"><em>v</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Build a diagonal matrix. </p>
|
|
<p>From GLM_GTX_matrix_operation extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaba34be247fae13984a657f18f985b889"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL mat<2, 3, T, P> glm::diagonal2x3 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< 2, T, P > const & </td>
|
|
<td class="paramname"><em>v</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Build a diagonal matrix. </p>
|
|
<p>From GLM_GTX_matrix_operation extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga420b4c9e124eca9e4730e4d9f2ca04a6"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL mat<2, 4, T, P> glm::diagonal2x4 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< 2, T, P > const & </td>
|
|
<td class="paramname"><em>v</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Build a diagonal matrix. </p>
|
|
<p>From GLM_GTX_matrix_operation extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga7160ee2791f695fbc409e5dec7ad5548"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL mat<3, 2, T, P> glm::diagonal3x2 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< 2, T, P > const & </td>
|
|
<td class="paramname"><em>v</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Build a diagonal matrix. </p>
|
|
<p>From GLM_GTX_matrix_operation extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga246399c6803f8433bb097d81299b1535"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL mat<3, 3, T, P> glm::diagonal3x3 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
|
<td class="paramname"><em>v</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Build a diagonal matrix. </p>
|
|
<p>From GLM_GTX_matrix_operation extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gabd62dd6842db75540efe439e6af4f306"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL mat<3, 4, T, P> glm::diagonal3x4 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
|
<td class="paramname"><em>v</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Build a diagonal matrix. </p>
|
|
<p>From GLM_GTX_matrix_operation extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gad57a154d7d12d9cd006c9b03bd2adac6"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL mat<4, 2, T, P> glm::diagonal4x2 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< 2, T, P > const & </td>
|
|
<td class="paramname"><em>v</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Build a diagonal matrix. </p>
|
|
<p>From GLM_GTX_matrix_operation extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga012fcff72e35891559ea33db736c0211"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL mat<4, 3, T, P> glm::diagonal4x3 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
|
<td class="paramname"><em>v</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Build a diagonal matrix. </p>
|
|
<p>From GLM_GTX_matrix_operation extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga24d7a93eeaaac78b8e8cbc78b3804b23"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL mat<4, 4, T, P> glm::diagonal4x4 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< 4, T, P > const & </td>
|
|
<td class="paramname"><em>v</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Build a diagonal matrix. </p>
|
|
<p>From GLM_GTX_matrix_operation extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
</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>
|