mirror of
https://github.com/g-truc/glm.git
synced 2024-11-27 10:44:34 +00:00
363 lines
15 KiB
HTML
363 lines
15 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_GTX_norm: Vector norm calculations</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.7.3 -->
|
||
|
<div id="top">
|
||
|
<div id="titlearea">
|
||
|
<table cellspacing="0" cellpadding="0">
|
||
|
<tbody>
|
||
|
<tr style="height: 56px;">
|
||
|
<td id="projectlogo"><img alt="Logo" src="logo-mini.png"></td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div id="navrow1" class="tabs">
|
||
|
<ul class="tablist">
|
||
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
||
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
||
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
||
|
<li><a href="files.html"><span>Files</span></a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="header">
|
||
|
<div class="summary">
|
||
|
<a href="#func-members">Functions</a> </div>
|
||
|
<div class="headertitle">
|
||
|
<h1>GLM_GTX_norm: Vector norm calculations</h1> </div>
|
||
|
<div class="ingroups"><a class="el" href="a00152.html">GTX Extensions (Experimental)</a></div></div>
|
||
|
<div class="contents">
|
||
|
|
||
|
<p>Various way to compute vector norms.
|
||
|
<a href="#_details">More...</a></p>
|
||
|
<table class="memberdecls">
|
||
|
<tr><td colspan="2"><h2><a name="func-members"></a>
|
||
|
Functions</h2></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#ga1ffdf8beb8b0d9d9744898310ddfdf82">distance2</a> (T const &p0, T const &p1)</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="a00200.html#gae6fd2b1e59574a084f5cbe90d65c4013">distance2</a> (genType const &p0, genType const &p1)</td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#ga625d4bbfbc1916d2a45e84f3bfade035">l1Norm</a> (detail::tvec3< T > const &x, detail::tvec3< T > const &y)</td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#ga18dfb6413bc73110fca88941922b8308">l1Norm</a> (detail::tvec3< T > const &v)</td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#ga5dade395ecece0b28b1052b33b572c11">l2Norm</a> (detail::tvec3< T > const &x, detail::tvec3< T > const &y)</td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#gaf9916b5aa750aba334b68536b96fbfa9">l2Norm</a> (detail::tvec3< T > const &x)</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="a00200.html#ga5236d7ef71490bdc70310cac1e15b5a6">length2</a> (genType const &x)</td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#gabda54e15f0c0c5d2aeeb34038bcd2063">length2</a> (T const &x)</td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#ga2f6c061974233424763d2967e70cacca">length2</a> (detail::tquat< T > const &q)</td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#gabd603a2ba8ca0ae1e9da0e6d3da7f17e">lxNorm</a> (detail::tvec3< T > const &x, detail::tvec3< T > const &y, unsigned int Depth)</td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00200.html#ga59941688cecd7fe82f80d8b73eb5e14e">lxNorm</a> (detail::tvec3< T > const &x, unsigned int Depth)</td></tr>
|
||
|
</table>
|
||
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
||
|
<p>Various way to compute vector norms. </p>
|
||
|
<p><<a class="el" href="a00080.html" title="OpenGL Mathematics (glm.g-truc.net)">glm/gtx/norm.hpp</a>> need to be included to use these functionalities. </p>
|
||
|
<hr/><h2>Function Documentation</h2>
|
||
|
<a class="anchor" id="ga1ffdf8beb8b0d9d9744898310ddfdf82"></a><!-- doxytag: member="glm::distance2" ref="ga1ffdf8beb8b0d9d9744898310ddfdf82" args="(T const &p0, T const &p1)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">T glm::distance2 </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">T const & </td>
|
||
|
<td class="paramname"><em>p0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">T 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., length(p0 - p1). </p>
|
||
|
<p>From GLM_GTX_norm extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gae6fd2b1e59574a084f5cbe90d65c4013"></a><!-- doxytag: member="glm::distance2" ref="gae6fd2b1e59574a084f5cbe90d65c4013" args="(genType const &p0, genType const &p1)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">genType::value_type glm::distance2 </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">genType const & </td>
|
||
|
<td class="paramname"><em>p0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">genType 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., length(p0 - p1). </p>
|
||
|
<p>From GLM_GTX_norm extension. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga625d4bbfbc1916d2a45e84f3bfade035"></a><!-- doxytag: member="glm::l1Norm" ref="ga625d4bbfbc1916d2a45e84f3bfade035" args="(detail::tvec3< T > const &x, detail::tvec3< T > const &y)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">T glm::l1Norm </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">detail::tvec3< T > const & </td>
|
||
|
<td class="paramname"><em>x</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">detail::tvec3< T > 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="ga18dfb6413bc73110fca88941922b8308"></a><!-- doxytag: member="glm::l1Norm" ref="ga18dfb6413bc73110fca88941922b8308" args="(detail::tvec3< T > const &v)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">T glm::l1Norm </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">detail::tvec3< T > 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="ga5dade395ecece0b28b1052b33b572c11"></a><!-- doxytag: member="glm::l2Norm" ref="ga5dade395ecece0b28b1052b33b572c11" args="(detail::tvec3< T > const &x, detail::tvec3< T > const &y)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">T glm::l2Norm </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">detail::tvec3< T > const & </td>
|
||
|
<td class="paramname"><em>x</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">detail::tvec3< T > 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="gaf9916b5aa750aba334b68536b96fbfa9"></a><!-- doxytag: member="glm::l2Norm" ref="gaf9916b5aa750aba334b68536b96fbfa9" args="(detail::tvec3< T > const &x)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">T glm::l2Norm </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">detail::tvec3< T > 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="ga5236d7ef71490bdc70310cac1e15b5a6"></a><!-- doxytag: member="glm::length2" ref="ga5236d7ef71490bdc70310cac1e15b5a6" args="(genType const &x)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">genType::value_type glm::length2 </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">genType 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="gabda54e15f0c0c5d2aeeb34038bcd2063"></a><!-- doxytag: member="glm::length2" ref="gabda54e15f0c0c5d2aeeb34038bcd2063" args="(T const &x)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">T glm::length2 </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">T 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="ga2f6c061974233424763d2967e70cacca"></a><!-- doxytag: member="glm::length2" ref="ga2f6c061974233424763d2967e70cacca" args="(detail::tquat< T > const &q)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">T glm::length2 </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">detail::tquat< T > const & </td>
|
||
|
<td class="paramname"><em>q</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="gabd603a2ba8ca0ae1e9da0e6d3da7f17e"></a><!-- doxytag: member="glm::lxNorm" ref="gabd603a2ba8ca0ae1e9da0e6d3da7f17e" args="(detail::tvec3< T > const &x, detail::tvec3< T > const &y, unsigned int Depth)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">T glm::lxNorm </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">detail::tvec3< T > const & </td>
|
||
|
<td class="paramname"><em>x</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">detail::tvec3< T > 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="ga59941688cecd7fe82f80d8b73eb5e14e"></a><!-- doxytag: member="glm::lxNorm" ref="ga59941688cecd7fe82f80d8b73eb5e14e" args="(detail::tvec3< T > const &x, unsigned int Depth)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">T glm::lxNorm </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">detail::tvec3< T > 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>
|
||
|
<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.7.3 </small></address>
|
||
|
</body>
|
||
|
</html>
|