1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375
|
<!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"/>
<title>Vector Relational Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<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>
<!-- Generated by Doxygen 1.8.0 -->
<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">
<div class="title">Vector Relational Functions</div> </div>
<div class="ingroups"><a class="el" href="a00139.html">GLM Core</a></div></div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga349edc1a383fff08c6d577428416a73b"><td class="memTemplParams" colspan="2">template<template< typename > class vecType> </td></tr>
<tr class="memitem:ga349edc1a383fff08c6d577428416a73b"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00135.html#ga349edc1a383fff08c6d577428416a73b">all</a> (vecType< bool > const &v)</td></tr>
<tr class="memitem:ga7141e1fafe91560d8c8789901d1c1271"><td class="memTemplParams" colspan="2">template<template< typename > class vecType> </td></tr>
<tr class="memitem:ga7141e1fafe91560d8c8789901d1c1271"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00135.html#ga7141e1fafe91560d8c8789901d1c1271">any</a> (vecType< bool > const &v)</td></tr>
<tr class="memitem:gaeded4966b21a46182176fc6e24e05fdd"><td class="memTemplParams" colspan="2">template<typename vecType > </td></tr>
<tr class="memitem:gaeded4966b21a46182176fc6e24e05fdd"><td class="memTemplItemLeft" align="right" valign="top">vecType::bool_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00135.html#gaeded4966b21a46182176fc6e24e05fdd">equal</a> (vecType const &x, vecType const &y)</td></tr>
<tr class="memitem:gabd72ae0dc35908eaa143568fb42c3830"><td class="memTemplParams" colspan="2">template<typename vecType > </td></tr>
<tr class="memitem:gabd72ae0dc35908eaa143568fb42c3830"><td class="memTemplItemLeft" align="right" valign="top">vecType::bool_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00135.html#gabd72ae0dc35908eaa143568fb42c3830">greaterThan</a> (vecType const &x, vecType const &y)</td></tr>
<tr class="memitem:gac9b3c898e70adc1e573300b1a8e66e9f"><td class="memTemplParams" colspan="2">template<typename vecType > </td></tr>
<tr class="memitem:gac9b3c898e70adc1e573300b1a8e66e9f"><td class="memTemplItemLeft" align="right" valign="top">vecType::bool_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00135.html#gac9b3c898e70adc1e573300b1a8e66e9f">greaterThanEqual</a> (vecType const &x, vecType const &y)</td></tr>
<tr class="memitem:ga1227d6a9d2c15a57d8189c5d9f4d9c53"><td class="memTemplParams" colspan="2">template<typename vecType > </td></tr>
<tr class="memitem:ga1227d6a9d2c15a57d8189c5d9f4d9c53"><td class="memTemplItemLeft" align="right" valign="top">vecType::bool_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00135.html#ga1227d6a9d2c15a57d8189c5d9f4d9c53">lessThan</a> (vecType const &x, vecType const &y)</td></tr>
<tr class="memitem:ga6199b9a55616b7b872b0bf0658b239ce"><td class="memTemplParams" colspan="2">template<typename vecType > </td></tr>
<tr class="memitem:ga6199b9a55616b7b872b0bf0658b239ce"><td class="memTemplItemLeft" align="right" valign="top">vecType::bool_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00135.html#ga6199b9a55616b7b872b0bf0658b239ce">lessThanEqual</a> (vecType const &x, vecType const &y)</td></tr>
<tr class="memitem:gac44e885cf2f0b0896124d7ce5df6ed4f"><td class="memTemplParams" colspan="2">template<template< typename > class vecType> </td></tr>
<tr class="memitem:gac44e885cf2f0b0896124d7ce5df6ed4f"><td class="memTemplItemLeft" align="right" valign="top">vecType< bool > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00135.html#gac44e885cf2f0b0896124d7ce5df6ed4f">not_</a> (vecType< bool > const &v)</td></tr>
<tr class="memitem:ga20caef2fbce3eacb97e895f2ed315271"><td class="memTemplParams" colspan="2">template<typename vecType > </td></tr>
<tr class="memitem:ga20caef2fbce3eacb97e895f2ed315271"><td class="memTemplItemLeft" align="right" valign="top">vecType::bool_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00135.html#ga20caef2fbce3eacb97e895f2ed315271">notEqual</a> (vecType const &x, vecType const &y)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<p>Relational and equality operators (<, <=, >, >=, ==, !=) are defined to operate on scalars and produce scalar Boolean results. </p>
<p>For vector results, use the following built-in functions.</p>
<p>In all cases, the sizes of all the input and return vectors for any particular call must match. </p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga349edc1a383fff08c6d577428416a73b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool glm::all </td>
<td>(</td>
<td class="paramtype">vecType< bool > const & </td>
<td class="paramname"><em>v</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns true if all components of x are true. </p>
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
<table class="">
<tr><td class="paramname">vecType</td><td>Boolean vector types. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also:</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/all.xml">GLSL all man page</a> </dd>
<dd>
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.7 Vector Relational Functions</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga7141e1fafe91560d8c8789901d1c1271"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool glm::any </td>
<td>(</td>
<td class="paramtype">vecType< bool > const & </td>
<td class="paramname"><em>v</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns true if any component of x is true. </p>
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
<table class="">
<tr><td class="paramname">vecType</td><td>Boolean vector types. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also:</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/any.xml">GLSL any man page</a> </dd>
<dd>
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.7 Vector Relational Functions</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gaeded4966b21a46182176fc6e24e05fdd"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">vecType::bool_type glm::equal </td>
<td>(</td>
<td class="paramtype">vecType const & </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">vecType 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 component-wise comparison of result x == y. </p>
<div class="fragment"><pre class="fragment">@tparam vecType Floating-point, integer or boolean vector types. @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/equal.xml">GLSL equal man page</a>
</pre></div> <dl class="section see"><dt>See also:</dt><dd><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.7 Vector Relational Functions</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gabd72ae0dc35908eaa143568fb42c3830"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">vecType::bool_type glm::greaterThan </td>
<td>(</td>
<td class="paramtype">vecType const & </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">vecType 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 component-wise comparison of result x > y. </p>
<div class="fragment"><pre class="fragment">@tparam vecType Floating-point or integer vector types. @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/greaterThan.xml">GLSL greaterThan man page</a>
</pre></div> <dl class="section see"><dt>See also:</dt><dd><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.7 Vector Relational Functions</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gac9b3c898e70adc1e573300b1a8e66e9f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">vecType::bool_type glm::greaterThanEqual </td>
<td>(</td>
<td class="paramtype">vecType const & </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">vecType 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 component-wise comparison of result x >= y. </p>
<div class="fragment"><pre class="fragment">@tparam vecType Floating-point or integer vector types. @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/greaterThanEqual.xml">GLSL greaterThanEqual man page</a>
</pre></div> <dl class="section see"><dt>See also:</dt><dd><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.7 Vector Relational Functions</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga1227d6a9d2c15a57d8189c5d9f4d9c53"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">vecType::bool_type glm::lessThan </td>
<td>(</td>
<td class="paramtype">vecType const & </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">vecType 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 component-wise comparison result of x < y. </p>
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
<table class="">
<tr><td class="paramname">vecType</td><td>Floating-point or integer vector types. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also:</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/lessThan.xml">GLSL lessThan man page</a> </dd>
<dd>
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.7 Vector Relational Functions</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga6199b9a55616b7b872b0bf0658b239ce"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">vecType::bool_type glm::lessThanEqual </td>
<td>(</td>
<td class="paramtype">vecType const & </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">vecType 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 component-wise comparison of result x <= y. </p>
<div class="fragment"><pre class="fragment">@tparam vecType Floating-point or integer vector types. @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/lessThanEqual.xml">GLSL lessThanEqual man page</a>
</pre></div> <dl class="section see"><dt>See also:</dt><dd><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.7 Vector Relational Functions</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gac44e885cf2f0b0896124d7ce5df6ed4f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">vecType<bool> glm::not_ </td>
<td>(</td>
<td class="paramtype">vecType< bool > const & </td>
<td class="paramname"><em>v</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the component-wise logical complement of x. </p>
<p>/!\ Because of language incompatibilities between C++ and GLSL, GLM defines the function not but not_ instead. </p>
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
<table class="">
<tr><td class="paramname">vecType</td><td>Boolean vector types. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also:</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/not.xml">GLSL not man page</a> </dd>
<dd>
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.7 Vector Relational Functions</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ga20caef2fbce3eacb97e895f2ed315271"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">vecType::bool_type glm::notEqual </td>
<td>(</td>
<td class="paramtype">vecType const & </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">vecType 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 component-wise comparison of result x != y. </p>
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
<table class="">
<tr><td class="paramname">vecType</td><td>Floating-point, integer or boolean vector types. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also:</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/notEqual.xml">GLSL notEqual man page</a> </dd>
<dd>
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.7 Vector Relational Functions</a> </dd></dl>
</div>
</div>
</div><!-- contents -->
<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.0
</small></address>
</body>
</html>
|