mirror of
https://github.com/g-truc/glm.git
synced 2024-11-30 03:44:38 +00:00
343 lines
16 KiB
HTML
343 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_norm</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_norm<div class="ingroups"><a class="el" href="a00157.html">GTX Extensions (Experimental)</a></div></div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
|
||
|
<p>Various ways to compute vector norms.
|
||
|
<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:ga4c6073a9c281c944136e61b2532be936"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga4c6073a9c281c944136e61b2532be936"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00216.html#ga4c6073a9c281c944136e61b2532be936">distance2</a> (vec< L, T, P > const &p0, vec< L, T, P > const &p1)</td></tr>
|
||
|
<tr class="memdesc:ga4c6073a9c281c944136e61b2532be936"><td class="mdescLeft"> </td><td class="mdescRight">Returns the squared distance between p0 and p1, i.e., length2(p0 - p1). <a href="a00216.html#ga4c6073a9c281c944136e61b2532be936">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga4c6073a9c281c944136e61b2532be936"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga37960d52e54bab9a8f212199907d2013"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga37960d52e54bab9a8f212199907d2013"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00216.html#ga37960d52e54bab9a8f212199907d2013">l1Norm</a> (vec< 3, T, P > const &x, vec< 3, T, P > const &y)</td></tr>
|
||
|
<tr class="memdesc:ga37960d52e54bab9a8f212199907d2013"><td class="mdescLeft"> </td><td class="mdescRight">Returns the L1 norm between x and y. <a href="a00216.html#ga37960d52e54bab9a8f212199907d2013">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga37960d52e54bab9a8f212199907d2013"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga571fbbeb06443fd1cbae176b7388c140"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga571fbbeb06443fd1cbae176b7388c140"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00216.html#ga571fbbeb06443fd1cbae176b7388c140">l1Norm</a> (vec< 3, T, P > const &v)</td></tr>
|
||
|
<tr class="memdesc:ga571fbbeb06443fd1cbae176b7388c140"><td class="mdescLeft"> </td><td class="mdescRight">Returns the L1 norm of v. <a href="a00216.html#ga571fbbeb06443fd1cbae176b7388c140">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga571fbbeb06443fd1cbae176b7388c140"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga8590366c5da7b312aed20aeb6d014014"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga8590366c5da7b312aed20aeb6d014014"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00216.html#ga8590366c5da7b312aed20aeb6d014014">l2Norm</a> (vec< 3, T, P > const &x, vec< 3, T, P > const &y)</td></tr>
|
||
|
<tr class="memdesc:ga8590366c5da7b312aed20aeb6d014014"><td class="mdescLeft"> </td><td class="mdescRight">Returns the L2 norm between x and y. <a href="a00216.html#ga8590366c5da7b312aed20aeb6d014014">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga8590366c5da7b312aed20aeb6d014014"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga11330d56fb8d605af08aac8c36aa9592"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga11330d56fb8d605af08aac8c36aa9592"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00216.html#ga11330d56fb8d605af08aac8c36aa9592">l2Norm</a> (vec< 3, T, P > const &x)</td></tr>
|
||
|
<tr class="memdesc:ga11330d56fb8d605af08aac8c36aa9592"><td class="mdescLeft"> </td><td class="mdescRight">Returns the L2 norm of v. <a href="a00216.html#ga11330d56fb8d605af08aac8c36aa9592">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga11330d56fb8d605af08aac8c36aa9592"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga824d4ac86af677742fe1963552f96591"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga824d4ac86af677742fe1963552f96591"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00216.html#ga824d4ac86af677742fe1963552f96591">length2</a> (vec< L, T, P > const &x)</td></tr>
|
||
|
<tr class="memdesc:ga824d4ac86af677742fe1963552f96591"><td class="mdescLeft"> </td><td class="mdescRight">Returns the squared length of x. <a href="a00216.html#ga824d4ac86af677742fe1963552f96591">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga824d4ac86af677742fe1963552f96591"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:gaf21eab38aabe0b0d1f26acfdb4498086"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:gaf21eab38aabe0b0d1f26acfdb4498086"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00216.html#gaf21eab38aabe0b0d1f26acfdb4498086">lxNorm</a> (vec< 3, T, P > const &x, vec< 3, T, P > const &y, unsigned int Depth)</td></tr>
|
||
|
<tr class="memdesc:gaf21eab38aabe0b0d1f26acfdb4498086"><td class="mdescLeft"> </td><td class="mdescRight">Returns the L norm between x and y. <a href="a00216.html#gaf21eab38aabe0b0d1f26acfdb4498086">More...</a><br /></td></tr>
|
||
|
<tr class="separator:gaf21eab38aabe0b0d1f26acfdb4498086"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ga7c9b58a8f0647f959ccc26b90045e1c6"><td class="memTemplParams" colspan="2">template<typename T , qualifier P> </td></tr>
|
||
|
<tr class="memitem:ga7c9b58a8f0647f959ccc26b90045e1c6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00216.html#ga7c9b58a8f0647f959ccc26b90045e1c6">lxNorm</a> (vec< 3, T, P > const &x, unsigned int Depth)</td></tr>
|
||
|
<tr class="memdesc:ga7c9b58a8f0647f959ccc26b90045e1c6"><td class="mdescLeft"> </td><td class="mdescRight">Returns the L norm of v. <a href="a00216.html#ga7c9b58a8f0647f959ccc26b90045e1c6">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ga7c9b58a8f0647f959ccc26b90045e1c6"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table>
|
||
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||
|
<p>Various ways to compute vector norms. </p>
|
||
|
<p><<a class="el" href="a00078.html" title="GLM_GTX_norm ">glm/gtx/norm.hpp</a>> need to be included to use these functionalities. </p>
|
||
|
<h2 class="groupheader">Function Documentation</h2>
|
||
|
<a class="anchor" id="ga4c6073a9c281c944136e61b2532be936"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL T glm::distance2 </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">vec< L, T, P > const & </td>
|
||
|
<td class="paramname"><em>p0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">vec< L, T, P > const & </td>
|
||
|
<td class="paramname"><em>p1</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Returns the squared distance between p0 and p1, i.e., length2(p0 - p1). </p>
|
||
|
<p>From GLM_GTX_norm extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga37960d52e54bab9a8f212199907d2013"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL T glm::l1Norm </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>x</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>y</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Returns the L1 norm between x and y. </p>
|
||
|
<p>From GLM_GTX_norm extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga571fbbeb06443fd1cbae176b7388c140"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL T glm::l1Norm </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>Returns the L1 norm of v. </p>
|
||
|
<p>From GLM_GTX_norm extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga8590366c5da7b312aed20aeb6d014014"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL T glm::l2Norm </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>x</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>y</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Returns the L2 norm between x and y. </p>
|
||
|
<p>From GLM_GTX_norm extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga11330d56fb8d605af08aac8c36aa9592"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL T glm::l2Norm </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>x</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Returns the L2 norm of v. </p>
|
||
|
<p>From GLM_GTX_norm extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga824d4ac86af677742fe1963552f96591"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL T glm::length2 </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">vec< L, T, P > const & </td>
|
||
|
<td class="paramname"><em>x</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Returns the squared length of x. </p>
|
||
|
<p>From GLM_GTX_norm extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gaf21eab38aabe0b0d1f26acfdb4498086"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL T glm::lxNorm </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>x</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>y</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">unsigned int </td>
|
||
|
<td class="paramname"><em>Depth</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Returns the L norm between x and y. </p>
|
||
|
<p>From GLM_GTX_norm extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga7c9b58a8f0647f959ccc26b90045e1c6"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">GLM_FUNC_DECL T glm::lxNorm </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">vec< 3, T, P > const & </td>
|
||
|
<td class="paramname"><em>x</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">unsigned int </td>
|
||
|
<td class="paramname"><em>Depth</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Returns the L norm of v. </p>
|
||
|
<p>From GLM_GTX_norm 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>
|