Getting GLM 0.9.3.1 release ready
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
<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>type_vec2.hpp File Reference</title>
|
||||
<title>Geometric functions</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
@@ -31,70 +32,344 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- Generated by Doxygen 1.7.5 -->
|
||||
<!-- Generated by Doxygen 1.7.6.1 -->
|
||||
<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 class="current"><a href="files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="files.html"><span>File List</span></a></li>
|
||||
<li><a href="files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#typedef-members">Typedefs</a> </div>
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">type_vec2.hpp File Reference</div> </div>
|
||||
</div>
|
||||
<div class="title">Geometric functions</div> </div>
|
||||
<div class="ingroups"><a class="el" href="a00137.html">GLM Core</a></div></div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="a00127_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr><td colspan="2"><h2><a name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00016.html">tvec2</a></td></tr>
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">The basic 2D vector type. <a href="a00016.html#details">More...</a><br/></td></tr>
|
||||
<tr><td colspan="2"><h2><a name="typedef-members"></a>
|
||||
Typedefs</h2></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec2< highp_int > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#ga306173e656477f59bf0164a623780236">highp_ivec2</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec2< highp_uint > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#gad4a5243fc438d0f2efbc22d075b4e399">highp_uvec2</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec2<br class="typebreak"/>
|
||||
< highp_float > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#ga9b65d7afd0783a02f5b3d1b75d1d872e">highp_vec2</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec2< lowp_int > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#ga26364654fd75ba6c7f11a65967a7fbee">lowp_ivec2</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec2< lowp_uint > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#ga9cb9b78162fca09f7ce9d08758f8b3c1">lowp_uvec2</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec2< lowp_float > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#ga4df6c67742cd65d6d0a885b3a539d9ff">lowp_vec2</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec2<br class="typebreak"/>
|
||||
< mediump_int > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#ga269315792504783f450b829161f2bccf">mediump_ivec2</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec2<br class="typebreak"/>
|
||||
< mediump_uint > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#ga5cd4f5f5667de09c7c12df85d138f599">mediump_uvec2</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec2<br class="typebreak"/>
|
||||
< mediump_float > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#ga9a8a10fce5852b088dd631b34e942b7d">mediump_vec2</a></td></tr>
|
||||
<tr><td colspan="2"><h2><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename valType > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tvec3< valType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00127.html#gaa127ddc9d38f715125f91742d399eb6f">cross</a> (detail::tvec3< valType > const &x, detail::tvec3< valType > const &y)</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="a00127.html#ga3fac0e61144f60184d961dd156709dd3">distance</a> (genType const &p0, genType 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="a00127.html#ga7a31d2864eccfe665409e3b44f5e6e8d">dot</a> (genType const &x, genType const &y)</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="a00127.html#ga855fc5fd7779df1683482564956c6764">faceforward</a> (genType const &N, genType const &I, genType const &Nref)</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="a00127.html#ga282360c8bb80b80d3c7f5bc00766d873">length</a> (genType const &x)</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="a00127.html#ga68b931c228750eeba844c273c54ca43d">normalize</a> (genType const &x)</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="a00127.html#gabe1fa0bef5f854242eb70ce56e5a7d03">reflect</a> (genType const &I, genType const &N)</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="a00127.html#gabbb4909d3e99a7a2411cc63252afbbd8">refract</a> (genType const &I, genType const &N, typename genType::value_type const &eta)</td></tr>
|
||||
</table>
|
||||
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
||||
<div class="textblock"><p>OpenGL Mathematics (glm.g-truc.net) </p>
|
||||
<p>Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
|
||||
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
|
||||
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
|
||||
<p><a class="el" href="a00154.html">GLM Core</a></p>
|
||||
<dl class="date"><dt><b>Date:</b></dt><dd>2008-08-18 / 2011-06-15 </dd></dl>
|
||||
<dl class="author"><dt><b>Author:</b></dt><dd>Christophe Riccio </dd></dl>
|
||||
<p>These operate on vectors as vectors, not component-wise. </p>
|
||||
<hr/><h2>Function Documentation</h2>
|
||||
<a class="anchor" id="gaa127ddc9d38f715125f91742d399eb6f"></a><!-- doxytag: member="glm::cross" ref="gaa127ddc9d38f715125f91742d399eb6f" args="(detail::tvec3< valType > const &x, detail::tvec3< valType > const &y)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">detail::tvec3<valType> glm::cross </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">detail::tvec3< valType > const & </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">detail::tvec3< valType > 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>Definition in file <a class="el" href="a00127_source.html">type_vec2.hpp</a>.</p>
|
||||
</div></div>
|
||||
<p>Returns the cross product of x and y. </p>
|
||||
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">valType</td><td>Floating-point scalar types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/cross.xml">GLSL cross 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.5 Geometric Functions</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga3fac0e61144f60184d961dd156709dd3"></a><!-- doxytag: member="glm::distance" ref="ga3fac0e61144f60184d961dd156709dd3" args="(genType const &p0, genType const &p1)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genType::value_type glm::distance </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 distance betwwen p0 and p1, i.e., length(p0 - p1). </p>
|
||||
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genType</td><td>Floating-point vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/distance.xml">GLSL distance 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.5 Geometric Functions</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga7a31d2864eccfe665409e3b44f5e6e8d"></a><!-- doxytag: member="glm::dot" ref="ga7a31d2864eccfe665409e3b44f5e6e8d" args="(genType const &x, genType const &y)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genType::value_type glm::dot </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genType const & </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genType 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 dot product of x and y, i.e., result = x * y. </p>
|
||||
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genType</td><td>Floating-point vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/dot.xml">GLSL dot 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.5 Geometric Functions</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga855fc5fd7779df1683482564956c6764"></a><!-- doxytag: member="glm::faceforward" ref="ga855fc5fd7779df1683482564956c6764" args="(genType const &N, genType const &I, genType const &Nref)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genType glm::faceforward </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genType const & </td>
|
||||
<td class="paramname"><em>N</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genType const & </td>
|
||||
<td class="paramname"><em>I</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genType const & </td>
|
||||
<td class="paramname"><em>Nref</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>If dot(Nref, I) < 0.0, return N, otherwise, return -N. </p>
|
||||
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genType</td><td>Floating-point vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/faceforward.xml">GLSL faceforward 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.5 Geometric Functions</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga282360c8bb80b80d3c7f5bc00766d873"></a><!-- doxytag: member="glm::length" ref="ga282360c8bb80b80d3c7f5bc00766d873" args="(genType const &x)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genType::value_type glm::length </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 length of x, i.e., sqrt(x * x). </p>
|
||||
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genType</td><td>Floating-point vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/length.xml">GLSL length 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.5 Geometric Functions</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga68b931c228750eeba844c273c54ca43d"></a><!-- doxytag: member="glm::normalize" ref="ga68b931c228750eeba844c273c54ca43d" args="(genType const &x)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genType glm::normalize </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 a vector in the same direction as x but with length of 1. </p>
|
||||
<dl class="see"><dt><b>See also:</b></dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/normalize.xml">GLSL normalize 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.5 Geometric Functions</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gabe1fa0bef5f854242eb70ce56e5a7d03"></a><!-- doxytag: member="glm::reflect" ref="gabe1fa0bef5f854242eb70ce56e5a7d03" args="(genType const &I, genType const &N)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genType glm::reflect </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genType const & </td>
|
||||
<td class="paramname"><em>I</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genType const & </td>
|
||||
<td class="paramname"><em>N</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>For the incident vector I and surface orientation N, returns the reflection direction : result = I - 2.0 * dot(N, I) * N. </p>
|
||||
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genType</td><td>Floating-point vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/reflect.xml">GLSL reflect 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.5 Geometric Functions</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gabbb4909d3e99a7a2411cc63252afbbd8"></a><!-- doxytag: member="glm::refract" ref="gabbb4909d3e99a7a2411cc63252afbbd8" args="(genType const &I, genType const &N, typename genType::value_type const &eta)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genType glm::refract </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genType const & </td>
|
||||
<td class="paramname"><em>I</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genType const & </td>
|
||||
<td class="paramname"><em>N</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">typename genType::value_type const & </td>
|
||||
<td class="paramname"><em>eta</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>For the incident vector I and surface normal N, and the ratio of indices of refraction eta, return the refraction vector. </p>
|
||||
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genType</td><td>Floating-point vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/refract.xml">GLSL refract 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.5 Geometric 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.7.5
|
||||
</a> 1.7.6.1
|
||||
</small></address>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user