Added 0.9.3 documentation
This commit is contained in:
@@ -1,122 +0,0 @@
|
||||
<!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>Getting Started</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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 id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="index.html">OpenGL Mathematics</a> </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Getting Started </div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="textblock"><h2><a class="anchor" id="started_compiler"></a>
|
||||
Compiler Setup</h2>
|
||||
<p>GLM is a header only library, there is nothing to build to use it which increases its cross platform capabilities.</p>
|
||||
<p>To use GLM, a programmer only has to include <<a class="el" href="a00052_source.html">glm/glm.hpp</a>>. This provides all the GLSL features implemented by GLM.</p>
|
||||
<p>GLM makes heavy usages of C++ templates. This design may significantly increase the compile time for files that use GLM. Precompiled headers are recommended to avoid this issue.</p>
|
||||
<h2><a class="anchor" id="started_sample"></a>
|
||||
Use Sample of GLM</h2>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include <glm/glm.hpp></span>
|
||||
|
||||
<span class="keywordtype">int</span> foo()
|
||||
{
|
||||
<a class="code" href="a00022.html" title="Basic 4D vector type.">glm::vec4</a> Position = <a class="code" href="a00235.html#ga8fad5ffc01ba6dea689f2a38bf30bda4" title="4 components vector of floating-point numbers.">glm::vec4</a>(<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a>(0.0), 1.0);
|
||||
<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">glm::mat4</a> Model = <a class="code" href="a00235.html#gade0eb47c01f79384a6f38017ede17446" title="4 columns of 4 components matrix of floating-point numbers.">glm::mat4</a>(1.0);
|
||||
Model[4] = <a class="code" href="a00235.html#ga8fad5ffc01ba6dea689f2a38bf30bda4" title="4 components vector of floating-point numbers.">glm::vec4</a>(1.0, 1.0, 0.0, 1.0);
|
||||
<a class="code" href="a00022.html" title="Basic 4D vector type.">glm::vec4</a> Transformed = Model * Position;
|
||||
<span class="keywordflow">return</span> 0;
|
||||
}
|
||||
</pre></div><h2><a class="anchor" id="started_structure"></a>
|
||||
Library Structure</h2>
|
||||
<p>GLM is arranged in 2 distinct segments. These are the GLM features based on the GLSL specification and a set of extensions. Some extensions are stable and backward compatible (<a class="el" href="a00239.html">GTC Extensions (Stable)</a> GTC <a class="el" href="a00303.html">VIRTREV Extensions</a> VIRTREV) but some are experimental (<a class="el" href="a00248.html">GTX Extensions (Experimental)</a> GTX) which means that they are not guarantee to be backward compatible from version to version.</p>
|
||||
<p>The <a class="el" href="a00234.html">GLM</a> represents only what GLSL's core provides in terms of types and functions (to the best of GLM's ability to replicate them). All that is needed to use the core is to include <code><<a class="el" href="a00052_source.html">glm/glm.hpp</a>></code>.</p>
|
||||
<p><a class="el" href="a00239.html">GTC extensions</a> are functions and types that add onto the core. These are considered reasonably stable, with their APIs not changing much between versions. Each core extension is included with a separated header file include. All of the core extensions are in the "glm/gtc" directory.</p>
|
||||
<p><a class="el" href="a00248.html">GTX extensions</a> are functions and types that add onto the core. Unlike GTC extensions, their APIs are not considered particularly stable, which is why they are marked "experimental". Like GTC extensions, each experimental extension is included with a separate header file.</p>
|
||||
<p>All the extensions can be included at once by default by including <code><<a class="el" href="a00037_source.html">glm/ext.hpp</a>></code> but this is not recommanded as it will reduce compilation speed for many unused features.</p>
|
||||
<p>All of GLM is defined as direct children of the glm namespace, including extensions.</p>
|
||||
<p>To use a particular extension, simply include the extension header file. All extension features are added to the glm namespace automatically.</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include <glm/glm.hpp></span>
|
||||
<span class="preprocessor">#include <glm/gtc/matrix_transform.hpp></span>
|
||||
|
||||
<span class="keywordtype">int</span> foo()
|
||||
{
|
||||
<a class="code" href="a00022.html" title="Basic 4D vector type.">glm::vec4</a> Position = <a class="code" href="a00235.html#ga8fad5ffc01ba6dea689f2a38bf30bda4" title="4 components vector of floating-point numbers.">glm::vec4</a>(<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a>(0.0f), 1.0f);
|
||||
<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">glm::mat4</a> Model = <a class="code" href="a00244.html#ga4683c446c8432476750ade56f2537397" title="Builds a translation 4 * 4 matrix created from a vector of 3 components.">glm::translate</a>(
|
||||
<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">glm::mat4</a>(1.0f), <a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a>(1.0f));
|
||||
<a class="code" href="a00022.html" title="Basic 4D vector type.">glm::vec4</a> Transformed = Model * Position;
|
||||
<span class="keywordflow">return</span> 0;
|
||||
}
|
||||
</pre></div><h2><a class="anchor" id="started_dependencies"></a>
|
||||
Dependencies</h2>
|
||||
<p>When <<a class="el" href="a00052_source.html">glm/glm.hpp</a>> is included, GLM provides all the GLSL features it implements in C++.</p>
|
||||
<p>When an extension is included, all the dependent extensions will be included as well. All the extensions depend on GLM core. (<<a class="el" href="a00052_source.html">glm/glm.hpp</a>>)</p>
|
||||
<p>There is no dependence with external libraries or external headers like gl.h, gl3.h, glu.h or windows.h. However, if <boost/static_assert.hpp> is included, Boost static assert will be used throughout GLM code to provide compiled time errors.</p>
|
||||
<h2><a class="anchor" id="started_interop"></a>
|
||||
OpenGL Interoperability</h2>
|
||||
<p>It is often useful to get a vector type as an array of its base type. For example, the OpenGL function <code>glUniform3fv()</code> takes an array instead of 3 individual values. If the vector and matrix types were simple arrays, then one could pass them to the function like so: <code>glUniform3fv(loc, 1, glm::vec3(0))</code>. However, this is not the case; the vector and matrix types are C++ classes, not arrays.</p>
|
||||
<p>Instead, GLM provides a mechanism to get the content of a vector or matrix as an array pointer. The <a class="el" href="a00247.html">GLM_GTC_type_ptr: Memory layout access.</a> extension provides this ability.</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include <glm/glm.hpp></span>
|
||||
<span class="preprocessor">#include <glm/gtc/type_ptr.hpp></span>
|
||||
|
||||
<span class="keywordtype">void</span> BindUniforms(GLuint uniVec, GLuint uniMat)
|
||||
{
|
||||
<a class="code" href="a00022.html" title="Basic 4D vector type.">glm::vec4</a> v(0.0f);
|
||||
<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">glm::mat4</a> m(1.0f);
|
||||
...
|
||||
glUniform3fv(uniVec, 1, <a class="code" href="a00247.html#gac21518f95a134dbe3c61460c89264b08" title="Get the const address of the vector content.">glm::value_ptr</a>(v));
|
||||
glUniformMatrix4fv(uniMat, 1, GL_FALSE, <a class="code" href="a00247.html#gac21518f95a134dbe3c61460c89264b08" title="Get the const address of the vector content.">glm::value_ptr</a>(m));
|
||||
}
|
||||
</pre></div><p>Notice that all matrix types are <em>column-major</em> rather than row-major. Hence the need to pass GL_FALSE to glUniformMatrix4fv.</p>
|
||||
<p>Alternatively, the first element of the type can be dereferenced.</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include <glm/glm.hpp></span>
|
||||
|
||||
<span class="keywordtype">void</span> BindUniforms(GLuint uniVec, GLuint uniMat)
|
||||
{
|
||||
<a class="code" href="a00022.html" title="Basic 4D vector type.">glm::vec4</a> v(0.0f);
|
||||
<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">glm::mat4</a> m(1.0f);
|
||||
...
|
||||
glUniform3fv(uniVec, 1, <a class="code" href="a00247.html#gac21518f95a134dbe3c61460c89264b08" title="Get the const address of the vector content.">glm::value_ptr</a>(&v[0]));
|
||||
glUniformMatrix4fv(uniMat, 1, GL_FALSE, &m[0][0]);
|
||||
}
|
||||
</pre></div><p>This method requires dereferencing the very first basic type of the object, not merely the first element. The [] operator on the matrix type returns a column vector; one must then access the first element of that column vector to get a pointer to the basic type.</p>
|
||||
<dl class="note"><dt><b>Note:</b></dt><dd>This operation could have been built into the base vector and matrix types and performed with a cast operator. However, this has some downsides. Implicit casts can cause unexpected and unwanted behavior.</dd></dl>
|
||||
<h2><a class="anchor" id="started_cuda"></a>
|
||||
GLM for CUDA</h2>
|
||||
<p>GLM 0.9.2 introduces CUDA compiler support allowing programmer to use GLM inside a CUDA Kernel. To make GLM compatible with CUDA, GLM_FORCE_CUDA requires to be define before any inclusion of <code><<a class="el" href="a00052_source.html">glm/glm.hpp</a>></code>.</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#define GLM_FORCE_CUDA</span>
|
||||
<span class="preprocessor">#include <glm/glm.hpp></span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,120 +0,0 @@
|
||||
<!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>Advanced Usage</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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 id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="index.html">OpenGL Mathematics</a> </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Advanced Usage </div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="textblock"><h2><a class="anchor" id="advanced_swizzle"></a>
|
||||
Swizzle Operators</h2>
|
||||
<p>A common feature of shader languages like GLSL is components swizzling. This involves being able to select which components of a vector are used and in what order. For example, "variable.x", "variable.xxy", "variable.zxyy" are examples of swizzling.</p>
|
||||
<div class="fragment"><pre class="fragment"><a class="code" href="a00235.html#ga8fad5ffc01ba6dea689f2a38bf30bda4" title="4 components vector of floating-point numbers.">vec4</a> A;
|
||||
<a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">vec2</a> B;
|
||||
...
|
||||
B.yx = A.wy;
|
||||
B = A.xx;
|
||||
</pre></div><p>This functionally turns out to be really complicated to implement in C++ using the exact GLSL conventions. GLM provides 2 implementions this feature.</p>
|
||||
<h3><a class="anchor" id="advanced_swizzle_macro"></a>
|
||||
Macro implementation</h3>
|
||||
<p>The first implementation follows the GLSL convensions accurately. It uses macros to achieve this, which might generates name conflicts with system headers or third party libraries. Therefore, it is disabled by default. To enable this implementation, GLM_SWIZZLE must be defined before any inclusion of <<a class="el" href="a00052_source.html">glm/glm.hpp</a>>.</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#define GLM_SWIZZLE </span>
|
||||
<span class="preprocessor">#include <glm/glm.hpp></span>
|
||||
</pre></div><p>This implementation can be partially enabled by defining GLM_SWIZZLE_XYZW, GLM_SWIZZLE_RGBA or GLM_SWIZZLE_STQP. Each macro only enable a set of swizzling operators. For example we can only enable x,y,z,w and s,t,q,p operators using:</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#define GLM_SWIZZLE_XYZW </span>
|
||||
<span class="preprocessor"></span><span class="preprocessor">#define GLM_SWIZZLE_STQP</span>
|
||||
<span class="preprocessor">#include <glm/glm.hpp></span>
|
||||
</pre></div><h3><a class="anchor" id="advanced_swizzle_ext"></a>
|
||||
Extension implementation</h3>
|
||||
<p>A safer way to do swizzling is to use the <<a class="el" href="a00107_source.html">glm/gtc/swizzle.hpp</a>> extension. This extension provides the GLSL functionality, but uses a different syntax for it. Moreover, the swizzle extension also provides dynamic swizzling.</p>
|
||||
<p>Static swizzling is resovled at compile-time. The swizzle mask ".xzyy" is as fixed as the type of a particular variable. Dynamic swizzling is resolved at runtime via function calls. Dynamic swizzling is more flexible, since one can choose the swizzle mask at runtime, but it runs slower. This performance issue is enhanced when <a class="el" href="a00002.html#advanced_simd">SIMD instructions</a> are used.</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include <glm/glm.hpp></span>
|
||||
<span class="preprocessor">#include <glm/gtc/swizzle.hpp></span>
|
||||
|
||||
<span class="keywordtype">void</span> foo()
|
||||
{
|
||||
<a class="code" href="a00022.html" title="Basic 4D vector type.">glm::vec4</a> ColorRGBA(1.0f, 0.5f, 0.0f, 1.0f);
|
||||
...
|
||||
<span class="comment">// Dynamic swizzling (at run time, more flexible)</span>
|
||||
<span class="comment">// l-value:</span>
|
||||
<a class="code" href="a00022.html" title="Basic 4D vector type.">glm::vec4</a> ColorBGRA1 =
|
||||
glm::swizzle(ColorRGBA, glm::B, glm::G, glm::R, glm::A);
|
||||
<span class="comment">// r-value:</span>
|
||||
glm::swizzle(ColorRGBA, glm::B, glm::G, glm::R, glm::A) = ColorRGBA;
|
||||
|
||||
<span class="comment">// Static swizzling (at build time, faster)</span>
|
||||
<span class="comment">// l-value:</span>
|
||||
<a class="code" href="a00022.html" title="Basic 4D vector type.">glm::vec4</a> ColorBGRA2 =
|
||||
glm::swizzle<glm::B, glm::G, glm::R, glm::A>(ColorRGBA);
|
||||
<span class="comment">// r-value:</span>
|
||||
glm::swizzle<glm::B, glm::G, glm::R, glm::A>(ColorRGBA) = ColorRGBA;
|
||||
}
|
||||
</pre></div><h2><a class="anchor" id="advanced_notify"></a>
|
||||
Notification System</h2>
|
||||
<p>GLM includes a notification system which can display some information at build time: </p>
|
||||
<ul>
|
||||
<li>Compiler </li>
|
||||
<li>Build model: 32bits or 64 bits </li>
|
||||
<li>C++ version </li>
|
||||
<li>Architecture: x86, SSE, AVX, etc. </li>
|
||||
<li>Included extensions </li>
|
||||
<li>etc.</li>
|
||||
</ul>
|
||||
<p>This system is disable by default. To enable this system, define GLM_MESSAGES before any inclusion of <<a class="el" href="a00052_source.html">glm/glm.hpp</a>>.</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#define GLM_MESSAGES</span>
|
||||
<span class="preprocessor">#include <glm/glm.hpp></span>
|
||||
</pre></div><h2><a class="anchor" id="advanced_inline"></a>
|
||||
Force Inline</h2>
|
||||
<p>GLM's functions are defined in headers, so they are defined with C++'s "inline" delcaration. This does not require the compiler to inline them, however. To force the compiler to inline the function, using whatever capabilities that the compiler provides to do so, GLM_FORCE_INLINE can be defined before any inclusion of <<a class="el" href="a00052_source.html">glm/glm.hpp</a>>.</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#define GLM_FORCE_INLINE </span>
|
||||
<span class="preprocessor">#include <glm/glm.hpp></span>
|
||||
</pre></div><h2><a class="anchor" id="advanced_simd"></a>
|
||||
SIMD support</h2>
|
||||
<p>GLM provides some SIMD optimizations based on compiler intrinsics. These optimizations will be automatically utilized based on the build environment. These optimizations are mainly available through the extensions <a class="el" href="a00292.html">GLM_GTX_simd_vec4: SIMD vec4 type and functions</a> and <a class="el" href="a00291.html">GLM_GTX_simd_mat4: SIMD mat4 type and functions</a>.</p>
|
||||
<p>A programmer can restrict or force instruction sets used for these optimizations using GLM_FORCE_SSE2 or GLM_FORCE_AVX.</p>
|
||||
<p>A programmer can discard the use of intrinsics by defining GLM_FORCE_PURE before any inclusion of <<a class="el" href="a00052_source.html">glm/glm.hpp</a>>. If GLM_FORCE_PURE is defined, then including a SIMD extension will generate a build error.</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#define GLM_FORCE_PURE</span>
|
||||
<span class="preprocessor">#include <glm/glm.hpp></span>
|
||||
</pre></div><h2><a class="anchor" id="advanced_compatibility"></a>
|
||||
Compatibility</h2>
|
||||
<p>Compilers have some language extensions that GLM will automatically take advantage of them when they are enabled. GLM_FORCE_CXX98 can switch off these extensions, forcing GLM to operate on pure C++98.</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#define GLM_FORCE_CXX98 </span>
|
||||
<span class="preprocessor">#include <glm/glm.hpp></span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,83 +0,0 @@
|
||||
<!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>Deprecated function replacements</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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 id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="index.html">OpenGL Mathematics</a> </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Deprecated function replacements </div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="textblock"><p>The OpenGL 3.0 specification deprecated some features, and most of these have been removed from the OpenGL 3.1 specfication and beyond. GLM provides some replacement functions. Many of these functions come from the <a class="el" href="a00244.html">GLM_GTC_matrix_transform: Matrix transform functions.</a> extension.</p>
|
||||
<h2><a class="anchor" id="deprecated_opengl"></a>
|
||||
OpenGL function replacements</h2>
|
||||
<dl>
|
||||
<dt>glRotate[fd] </dt>
|
||||
<dd><a class="el" href="a00244.html#ga48168ff70412019857ceb28b3b2b1f5e">glm::rotate </a> </dd>
|
||||
<dt>glScale[fd] </dt>
|
||||
<dd><a class="el" href="a00244.html#ga6da77ee2c33d0d33de557a37ff35b197">glm::scale </a> </dd>
|
||||
<dt>glTranslate[fd] </dt>
|
||||
<dd><a class="el" href="a00244.html#ga4683c446c8432476750ade56f2537397">glm::translate </a> </dd>
|
||||
<dt>glLoadIdentity </dt>
|
||||
<dd>The default constructor of all matrix types creates an identity matrix. </dd>
|
||||
<dt>glMultMatrix[fd] </dt>
|
||||
<dd>Per the GLSL specification, the multiplication operator is overloaded for all matrix types. Multiplying two matrices together will perform matrix multiplication. </dd>
|
||||
<dt>glLoadTransposeMatrix[fd] </dt>
|
||||
<dd><a class="el" href="a00238.html#ga8b1a22512f73b0176ad062d3d480e906">glm::transpose </a> </dd>
|
||||
<dt>glMultTransposeMatrix </dt>
|
||||
<dd>Combine the last two. </dd>
|
||||
<dt>glFrustum </dt>
|
||||
<dd><a class="el" href="a00244.html#ga517623bf6344a9e276b877366143116a">glm::frustum </a> </dd>
|
||||
<dt>glOrtho </dt>
|
||||
<dd><a class="el" href="a00244.html#gad25e5b029ebefac5b657861378c17aa8">glm::ortho </a> </dd>
|
||||
<dt>gluLookAt </dt>
|
||||
<dd><a class="el" href="a00244.html#ga2d6b6c381f047ea4d9ca4145fed9edd5">glm::lookAt </a> </dd>
|
||||
</dl>
|
||||
<h2><a class="anchor" id="deprecated_glu"></a>
|
||||
GLU function replacements</h2>
|
||||
<dl>
|
||||
<dt>gluOrtho2D </dt>
|
||||
<dd><a class="el" href="a00244.html#gad25e5b029ebefac5b657861378c17aa8">glm::ortho </a> </dd>
|
||||
<dt>gluPerspective </dt>
|
||||
<dd><a class="el" href="a00244.html#ga1bb3652e43f824d8c1dd5b9e60c80437">glm::perspective </a> </dd>
|
||||
<dt>gluProject </dt>
|
||||
<dd><a class="el" href="a00244.html#ga30e98d64189bae49582de8373de9f09f">glm::project </a> </dd>
|
||||
<dt>gluUnProject </dt>
|
||||
<dd><a class="el" href="a00244.html#gac38d611231b15799a0c06c54ff1ede43">glm::unProject </a> </dd>
|
||||
</dl>
|
||||
</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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,77 +0,0 @@
|
||||
<!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>FAQ</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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 id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="index.html">OpenGL Mathematics</a> </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">FAQ </div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="textblock"><h2><a class="anchor" id="faq1"></a>
|
||||
Why does GLM follow GLSL specification and conventions?</h2>
|
||||
<p>Following GLSL conventions is a really strict policy of GLM. GLM has been designed according to the idea that everyone writes their own math library with their own conventions. The idea is that brilliant developers (the OpenGL ARB) worked together and agreed to make GLSL. Following GLSL conventions is a way to find consensus. Moreover, basically when a developer knows GLSL, he knows GLM.</p>
|
||||
<h2><a class="anchor" id="faq2"></a>
|
||||
Does GLM run GLSL programs?</h2>
|
||||
<p>No, GLM is a C++ implementation of a subset of GLSL.</p>
|
||||
<h2><a class="anchor" id="faq3"></a>
|
||||
Does a GLSL compiler build GLM codes?</h2>
|
||||
<p>No, this is not what GLM intends to do!</p>
|
||||
<h2><a class="anchor" id="faq4"></a>
|
||||
Should I use GTX extensions?</h2>
|
||||
<p><a class="el" href="a00248.html">GTX Extensions (Experimental)</a> are experimental. In GLM this means that these extensions might change from version to version without restriction. In practice, it doesn't really change except time to time. GTC extensions are stabled, tested and perfectly reliable in time. Many GTX extensions extend GTC extensions and provide a way to explore features and implementations before becoming stable by a promotion as GTC extensions. This is similar to how OpenGL extensions can be EXT or ARB extensions before becoming core functionality.</p>
|
||||
<p>In short, if you use a GTX extension, the API is much more likely to change from version to version than if you don't. But you should not feel too uncomfortable about using them.</p>
|
||||
<h2><a class="anchor" id="faq5"></a>
|
||||
Where can I ask my questions?</h2>
|
||||
<p>A good place is the OpenGL Toolkits forum on OpenGL.org: <a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1</a></p>
|
||||
<h2><a class="anchor" id="faq6"></a>
|
||||
Where can I find the documentation of extensions?</h2>
|
||||
<p>The Doxygen generated documentation includes a complete list of all extensions available. Explore this documentation to get a complete view of all GLM capabilities! <a href="http://glm.g-truc.net/html/index.html">http://glm.g-truc.net/html/index.html</a></p>
|
||||
<h2><a class="anchor" id="faq7"></a>
|
||||
Should I use 'using namespace glm;'?</h2>
|
||||
<p>This is unwise. Chances are that if 'using namespace glm;' is called, name collisions will happen. GLSL names for functions are fairly generic, so it is entirely likely that there is another function called, for example, <a class="el" href="">sqrt </a>.</p>
|
||||
<p>For frequent use of particular types, they can be brough into the global namespace with a 'using' declaration like this:</p>
|
||||
<p>/code using glm::mat4;</p>
|
||||
<p>mat4 someVariable(3.0f); /endcode</p>
|
||||
<h2><a class="anchor" id="faq8"></a>
|
||||
Is GLM fast?</h2>
|
||||
<p>GLM is mainly designed to be convenient; that's why it is written against GLSL specification.</p>
|
||||
<p>The <a href="http://en.wikipedia.org/wiki/Pareto_principle">80-20 rule</a> suggests that 80% of a program's performance comes from 20% of its code. Therefore, one should first identify which 20% of the code is impacting the performance.</p>
|
||||
<p>In general, if one identifies certain math code to be a performance bottleneck, the only way to solve this is to write specialized code for those particular math needs. So no canned library solution would be suitable.</p>
|
||||
<p>That being said, GLM can provides some descent performances alternatives based on approximations or SIMD instructions. </p>
|
||||
</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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,184 +0,0 @@
|
||||
<!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>Code Samples</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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 id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="index.html">OpenGL Mathematics</a> </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Code Samples </div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="textblock"><p>This series of samples only shows various GLM functionality.</p>
|
||||
<h2><a class="anchor" id="sample1"></a>
|
||||
Compute a Triangle's Normal</h2>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include <glm/glm.hpp></span> <span class="comment">// vec3 normalize cross</span>
|
||||
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> computeNormal(
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> <span class="keyword">const</span> & a,
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> <span class="keyword">const</span> & b,
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> <span class="keyword">const</span> & c)
|
||||
{
|
||||
<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga07ff16965f11fa17122ac874ed492276" title="Returns a vector in the same direction as x but with length of 1.">glm::normalize</a>(<a class="code" href="a00238.html#ga63272179a066d755953bcfbe38666257" title="Returns the cross product of x and y.">glm::cross</a>(c - a, b - a));
|
||||
}
|
||||
</pre></div><p>A potentially faster, but less accurate alternative:</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include <glm/glm.hpp></span> <span class="comment">// vec3 cross</span>
|
||||
<span class="preprocessor">#include <glm/gtx/fast_square_root.hpp></span> <span class="comment">// fastNormalize</span>
|
||||
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> computeNormal(
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> <span class="keyword">const</span> & a,
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> <span class="keyword">const</span> & b,
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> <span class="keyword">const</span> & c)
|
||||
{
|
||||
<span class="keywordflow">return</span> <a class="code" href="a00262.html#ga7e785d24d7bbac63f273baf9af1160da" title="Faster than the common normalize function but less accurate.">glm::fastNormalize</a>(<a class="code" href="a00238.html#ga63272179a066d755953bcfbe38666257" title="Returns the cross product of x and y.">glm::cross</a>(c - a, b - a));
|
||||
}
|
||||
</pre></div><h2><a class="anchor" id="sample2"></a>
|
||||
Matrix Transform</h2>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include <glm/glm.hpp></span> <span class="comment">//vec3, vec4, ivec4, mat4</span>
|
||||
<span class="preprocessor">#include <glm/gtc/matrix_transform.hpp></span> <span class="comment">//translate, rotate, scale, perspective </span>
|
||||
<span class="preprocessor">#include <glm/gtc/type_ptr.hpp></span> <span class="comment">//value_ptr</span>
|
||||
|
||||
<span class="keywordtype">void</span> setUniformMVP(
|
||||
GLuint Location,
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> <span class="keyword">const</span> & Translate,
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> <span class="keyword">const</span> & Rotate)
|
||||
{
|
||||
<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">glm::mat4</a> Projection =
|
||||
<a class="code" href="a00244.html#ga1bb3652e43f824d8c1dd5b9e60c80437" title="Creates a matrix for a symetric perspective-view frustum.">glm::perspective</a>(45.0f, 4.0f / 3.0f, 0.1f, 100.f);
|
||||
<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">glm::mat4</a> ViewTranslate = <a class="code" href="a00244.html#ga4683c446c8432476750ade56f2537397" title="Builds a translation 4 * 4 matrix created from a vector of 3 components.">glm::translate</a>(
|
||||
<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">glm::mat4</a>(1.0f),
|
||||
Translate);
|
||||
<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">glm::mat4</a> ViewRotateX = <a class="code" href="a00244.html#ga48168ff70412019857ceb28b3b2b1f5e" title="Builds a rotation 4 * 4 matrix created from an axis vector and an angle expressed in degrees...">glm::rotate</a>(
|
||||
ViewTranslate,
|
||||
Rotate.y, <a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a>(-1.0f, 0.0f, 0.0f));
|
||||
<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">glm::mat4</a> View = <a class="code" href="a00244.html#ga48168ff70412019857ceb28b3b2b1f5e" title="Builds a rotation 4 * 4 matrix created from an axis vector and an angle expressed in degrees...">glm::rotate</a>(
|
||||
ViewRotateX,
|
||||
Rotate.x, <a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a>(0.0f, 1.0f, 0.0f));
|
||||
<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">glm::mat4</a> Model = <a class="code" href="a00244.html#ga6da77ee2c33d0d33de557a37ff35b197" title="Builds a scale 4 * 4 matrix created from 3 scalars.">glm::scale</a>(
|
||||
<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">glm::mat4</a>(1.0f),
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a>(0.5f));
|
||||
<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">glm::mat4</a> MVP = Projection * View * Model;
|
||||
glUniformMatrix4fv(
|
||||
Location, 1, GL_FALSE, <a class="code" href="a00247.html#gac21518f95a134dbe3c61460c89264b08" title="Get the const address of the vector content.">glm::value_ptr</a>(MVP));
|
||||
}
|
||||
</pre></div><h2><a class="anchor" id="sample3"></a>
|
||||
Vector Types</h2>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include <glm/glm.hpp></span> <span class="comment">//vec2</span>
|
||||
<span class="preprocessor">#include <glm/gtc/type_precision.hpp></span> <span class="comment">//hvec2, i8vec2, i32vec2</span>
|
||||
std::size_t <span class="keyword">const</span> VertexCount = 4;
|
||||
|
||||
<span class="comment">// Float quad geometry</span>
|
||||
std::size_t <span class="keyword">const</span> PositionSizeF32 = VertexCount * <span class="keyword">sizeof</span>(<a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">glm::vec2</a>);
|
||||
<a class="code" href="a00020.html" title="The basic 2D vector type.">glm::vec2</a> <span class="keyword">const</span> PositionDataF32[VertexCount] =
|
||||
{
|
||||
<a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">glm::vec2</a>(-1.0f,-1.0f),
|
||||
<a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">glm::vec2</a>( 1.0f,-1.0f),
|
||||
<a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">glm::vec2</a>( 1.0f, 1.0f),
|
||||
<a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">glm::vec2</a>(-1.0f, 1.0f)
|
||||
};
|
||||
|
||||
<span class="comment">// Half-float quad geometry</span>
|
||||
std::size_t <span class="keyword">const</span> PositionSizeF16 = VertexCount * <span class="keyword">sizeof</span>(<a class="code" href="a00240.html#ga2cd0b3fe113dc1aa2ee750a85f77c50a" title="Vector of 2 half-precision floating-point numbers.">glm::hvec2</a>);
|
||||
<a class="code" href="a00020.html" title="The basic 2D vector type.">glm::hvec2</a> <span class="keyword">const</span> PositionDataF16[VertexCount] =
|
||||
{
|
||||
<a class="code" href="a00240.html#ga2cd0b3fe113dc1aa2ee750a85f77c50a" title="Vector of 2 half-precision floating-point numbers.">glm::hvec2</a>(-1.0f, -1.0f),
|
||||
<a class="code" href="a00240.html#ga2cd0b3fe113dc1aa2ee750a85f77c50a" title="Vector of 2 half-precision floating-point numbers.">glm::hvec2</a>( 1.0f, -1.0f),
|
||||
<a class="code" href="a00240.html#ga2cd0b3fe113dc1aa2ee750a85f77c50a" title="Vector of 2 half-precision floating-point numbers.">glm::hvec2</a>( 1.0f, 1.0f),
|
||||
<a class="code" href="a00240.html#ga2cd0b3fe113dc1aa2ee750a85f77c50a" title="Vector of 2 half-precision floating-point numbers.">glm::hvec2</a>(-1.0f, 1.0f)
|
||||
};
|
||||
|
||||
<span class="comment">// 8 bits signed integer quad geometry</span>
|
||||
std::size_t <span class="keyword">const</span> PositionSizeI8 = VertexCount * <span class="keyword">sizeof</span>(<a class="code" href="a00246.html#ga9ab3f26fa232d5a4d2397d7904eb9069" title="8bit signed integer vector of 2 components. (from GLM_GTC_type_precision extension)">glm::i8vec2</a>);
|
||||
<a class="code" href="a00020.html" title="The basic 2D vector type.">glm::i8vec2</a> <span class="keyword">const</span> PositionDataI8[VertexCount] =
|
||||
{
|
||||
<a class="code" href="a00246.html#ga9ab3f26fa232d5a4d2397d7904eb9069" title="8bit signed integer vector of 2 components. (from GLM_GTC_type_precision extension)">glm::i8vec2</a>(-1,-1),
|
||||
<a class="code" href="a00246.html#ga9ab3f26fa232d5a4d2397d7904eb9069" title="8bit signed integer vector of 2 components. (from GLM_GTC_type_precision extension)">glm::i8vec2</a>( 1,-1),
|
||||
<a class="code" href="a00246.html#ga9ab3f26fa232d5a4d2397d7904eb9069" title="8bit signed integer vector of 2 components. (from GLM_GTC_type_precision extension)">glm::i8vec2</a>( 1, 1),
|
||||
<a class="code" href="a00246.html#ga9ab3f26fa232d5a4d2397d7904eb9069" title="8bit signed integer vector of 2 components. (from GLM_GTC_type_precision extension)">glm::i8vec2</a>(-1, 1)
|
||||
};
|
||||
|
||||
<span class="comment">// 32 bits signed integer quad geometry</span>
|
||||
std::size_t <span class="keyword">const</span> PositionSizeI32 = VertexCount * <span class="keyword">sizeof</span>(<a class="code" href="a00246.html#ga587a33330386e50f7ff9a870f1b62ab1" title="32bit signed integer vector of 2 components. (from GLM_GTC_type_precision extension)">glm::i32vec2</a>);
|
||||
<a class="code" href="a00020.html" title="The basic 2D vector type.">glm::i32vec2</a> <span class="keyword">const</span> PositionDataI32[VertexCount] =
|
||||
{
|
||||
<a class="code" href="a00246.html#ga587a33330386e50f7ff9a870f1b62ab1" title="32bit signed integer vector of 2 components. (from GLM_GTC_type_precision extension)">glm::i32vec2</a> (-1,-1),
|
||||
<a class="code" href="a00246.html#ga587a33330386e50f7ff9a870f1b62ab1" title="32bit signed integer vector of 2 components. (from GLM_GTC_type_precision extension)">glm::i32vec2</a> ( 1,-1),
|
||||
<a class="code" href="a00246.html#ga587a33330386e50f7ff9a870f1b62ab1" title="32bit signed integer vector of 2 components. (from GLM_GTC_type_precision extension)">glm::i32vec2</a> ( 1, 1),
|
||||
<a class="code" href="a00246.html#ga587a33330386e50f7ff9a870f1b62ab1" title="32bit signed integer vector of 2 components. (from GLM_GTC_type_precision extension)">glm::i32vec2</a> (-1, 1)
|
||||
};
|
||||
</pre></div><h2><a class="anchor" id="sample4"></a>
|
||||
Lighting</h2>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include <glm/glm.hpp></span> <span class="comment">// vec3 normalize reflect dot pow</span>
|
||||
<span class="preprocessor">#include <glm/gtx/random.hpp></span> <span class="comment">// vecRand3</span>
|
||||
|
||||
<span class="comment">// vecRand3, generate a random and equiprobable normalized vec3</span>
|
||||
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> lighting(
|
||||
intersection <span class="keyword">const</span> & Intersection,
|
||||
material <span class="keyword">const</span> & Material,
|
||||
light <span class="keyword">const</span> & Light,
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> <span class="keyword">const</span> & View)
|
||||
{
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> Color = <a class="code" href="a00235.html#gac422c7058a7c9963b55ad70764c62752" title="3 components vector of floating-point numbers.">glm::vec3</a>(0.0f);
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> LightVertor = <a class="code" href="a00238.html#ga07ff16965f11fa17122ac874ed492276" title="Returns a vector in the same direction as x but with length of 1.">glm::normalize</a>(
|
||||
Light.position() - Intersection.globalPosition() +
|
||||
<a class="code" href="a00287.html#ga63249d58e1327a83638f1cf8b421a0de" title="Generate a random normalized 3 component vector. It's a spherical uniform distribution. (From GLM_GTX_random extension)">glm::vecRand3</a>(0.0f, Light.inaccuracy());
|
||||
|
||||
<span class="keywordflow">if</span>(!shadow(
|
||||
Intersection.globalPosition(),
|
||||
Light.position(),
|
||||
LightVertor))
|
||||
{
|
||||
<span class="keywordtype">float</span> Diffuse = <a class="code" href="a00238.html#ga38e1f1538ac0fedc9d6ac14910105421" title="Returns the dot product of x and y, i.e., result = x * y.">glm::dot</a>(Intersection.normal(), LightVector);
|
||||
<span class="keywordflow">if</span>(Diffuse <= 0.0f)
|
||||
<span class="keywordflow">return</span> Color;
|
||||
<span class="keywordflow">if</span>(Material.isDiffuse())
|
||||
Color += Light.color() * Material.diffuse() * Diffuse;
|
||||
|
||||
<span class="keywordflow">if</span>(Material.isSpecular())
|
||||
{
|
||||
<a class="code" href="a00021.html" title="Basic 3D vector type.">glm::vec3</a> Reflect = <a class="code" href="a00238.html#ga2863d2331eb3752a5a17244c604c1d07" title="For the incident vector I and surface orientation N, returns the reflection direction : result = I - ...">glm::reflect</a>(
|
||||
-LightVector,
|
||||
Intersection.normal());
|
||||
<span class="keywordtype">float</span> Dot = <a class="code" href="a00238.html#ga38e1f1538ac0fedc9d6ac14910105421" title="Returns the dot product of x and y, i.e., result = x * y.">glm::dot</a>(Reflect, View);
|
||||
<span class="keywordtype">float</span> Base = Dot > 0.0f ? Dot : 0.0f;
|
||||
<span class="keywordtype">float</span> Specular = <a class="code" href="a00238.html#ga8eb76dfbf0fed3397c0327915279f06f" title="Returns x raised to the y power.">glm::pow</a>(Base, Material.exponent());
|
||||
Color += Material.specular() * Specular;
|
||||
}
|
||||
<span class="keywordflow">return</span> Color;
|
||||
}
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,57 +0,0 @@
|
||||
<!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>Known Issues</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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 id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="index.html">OpenGL Mathematics</a> </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Known Issues </div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="textblock"><h2><a class="anchor" id="issue1"></a>
|
||||
not Function</h2>
|
||||
<p>The GLSL keyword not is also a keyword in C++. To prevent name collisions, the GLSL not function has been implemented with the name not_.</p>
|
||||
<h2><a class="anchor" id="issue2"></a>
|
||||
Half Based Types</h2>
|
||||
<p>GLM supports half float number types through the extension GLM_GTC_half_float. This extension provides the types half, hvec*, hmat*x* and hquat*.</p>
|
||||
<p>Unfortunately, C++ 98 specification doesn<73>t support anonymous unions which limit hvec* vector components access to x, y, z and w.</p>
|
||||
<p>However, Visual C++ does support anonymous unions if the language extensions are enabled (/Za to disable them). In this case GLM will automatically enables the support of all component names (x,y,z,w ; r,g,b,a ; s,t,p,q).</p>
|
||||
<p>To uniformalize the component access across types, GLM provides the define GLM_FORCE_ONLY_XYZW which will generates errors if component accesses are done using r,g,b,a or s,t,p,q.</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#define GLM_FORCE_ONLY_XYZW </span>
|
||||
<span class="preprocessor">#include <glm/glm.hpp></span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,55 +0,0 @@
|
||||
<!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>References</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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 id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="index.html">OpenGL Mathematics</a> </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">References </div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="textblock"><p>OpenGL 4.1 core specification: <a href="http://www.opengl.org/registry/doc/glspec41.core.20100725.pdf">http://www.opengl.org/registry/doc/glspec41.core.20100725.pdf</a></p>
|
||||
<p>GLSL 4.10 specification: <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf">http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf</a></p>
|
||||
<p>GLU 1.3 specification: <a href="http://www.opengl.org/documentation/specs/glu/glu1_3.pdf">http://www.opengl.org/documentation/specs/glu/glu1_3.pdf</a></p>
|
||||
<p>GLM HEAD snapshot: <a href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=snapshot;h=HEAD;sf=tgz">http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=snapshot;h=HEAD;sf=tgz</a></p>
|
||||
<p>GLM bug tracker: <a href="https://sourceforge.net/apps/trac/ogl-math">https://sourceforge.net/apps/trac/ogl-math</a></p>
|
||||
<p>GLM website: <a href="http://glm.g-truc.net">http://glm.g-truc.net</a></p>
|
||||
<p>GLM OpenGL SDK page: <a href="http://www.opengl.org/sdk/libs/GLM/">http://www.opengl.org/sdk/libs/GLM/</a></p>
|
||||
<p>G-Truc Creation page: <a href="http://www.g-truc.net/project-0016.html">http://www.g-truc.net/project-0016.html</a></p>
|
||||
<p>The OpenGL Toolkits forum to ask questions about GLM: <a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1</a> </p>
|
||||
</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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,392 +0,0 @@
|
||||
<!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>_detail.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">_detail.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-07-24</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-08-31</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/_detail.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_detail</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_detail</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "setup.hpp"</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#include <cassert></span>
|
||||
<a name="l00015"></a>00015
|
||||
<a name="l00016"></a><a class="code" href="a00143.html">00016</a> <span class="keyword">namespace </span>glm{
|
||||
<a name="l00017"></a>00017 <span class="keyword">namespace </span>detail
|
||||
<a name="l00018"></a>00018 {
|
||||
<a name="l00019"></a>00019 <span class="keyword">class </span>thalf;
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#if(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) // C99 detected, 64 bit types available</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span> <span class="keyword">typedef</span> int64_t sint64;
|
||||
<a name="l00023"></a>00023 <span class="keyword">typedef</span> uint64_t <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a>;
|
||||
<a name="l00024"></a>00024 <span class="preprocessor">#elif(GLM_COMPILER & GLM_COMPILER_VC)</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keywordtype">signed</span> __int64 sint64;
|
||||
<a name="l00026"></a>00026 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> __int64 <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a>;
|
||||
<a name="l00027"></a>00027 <span class="preprocessor">#elif(GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_LLVM_GCC | GLM_COMPILER_CLANG))</span>
|
||||
<a name="l00028"></a>00028 <span class="preprocessor"></span> __extension__ <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> sint64;
|
||||
<a name="l00029"></a>00029 __extension__ <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a>;
|
||||
<a name="l00030"></a>00030 <span class="preprocessor">#elif(GLM_COMPILER & GLM_COMPILER_BC)</span>
|
||||
<a name="l00031"></a>00031 <span class="preprocessor"></span> <span class="keyword">typedef</span> Int64 sint64;
|
||||
<a name="l00032"></a>00032 <span class="keyword">typedef</span> Uint64 <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a>;
|
||||
<a name="l00033"></a>00033 <span class="preprocessor">#else//unknown compiler</span>
|
||||
<a name="l00034"></a>00034 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> sint64;
|
||||
<a name="l00035"></a>00035 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a>;
|
||||
<a name="l00036"></a>00036 <span class="preprocessor">#endif//GLM_COMPILER</span>
|
||||
<a name="l00037"></a>00037 <span class="preprocessor"></span>
|
||||
<a name="l00038"></a>00038 <span class="keyword">template</span><<span class="keywordtype">bool</span> C>
|
||||
<a name="l00039"></a>00039 <span class="keyword">struct </span>If
|
||||
<a name="l00040"></a>00040 {
|
||||
<a name="l00041"></a>00041 <span class="keyword">template</span><<span class="keyword">typename</span> F, <span class="keyword">typename</span> T>
|
||||
<a name="l00042"></a>00042 <span class="keyword">static</span> GLM_FUNC_QUALIFIER T apply(F functor, <span class="keyword">const</span> T& val)
|
||||
<a name="l00043"></a>00043 {
|
||||
<a name="l00044"></a>00044 <span class="keywordflow">return</span> functor(val);
|
||||
<a name="l00045"></a>00045 }
|
||||
<a name="l00046"></a>00046 };
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00048"></a>00048 <span class="keyword">template</span><>
|
||||
<a name="l00049"></a>00049 <span class="keyword">struct </span>If<false>
|
||||
<a name="l00050"></a>00050 {
|
||||
<a name="l00051"></a>00051 <span class="keyword">template</span><<span class="keyword">typename</span> F, <span class="keyword">typename</span> T>
|
||||
<a name="l00052"></a>00052 <span class="keyword">static</span> GLM_FUNC_QUALIFIER T apply(F, <span class="keyword">const</span> T& val)
|
||||
<a name="l00053"></a>00053 {
|
||||
<a name="l00054"></a>00054 <span class="keywordflow">return</span> val;
|
||||
<a name="l00055"></a>00055 }
|
||||
<a name="l00056"></a>00056 };
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00058"></a>00058 <span class="comment">//template <typename T></span>
|
||||
<a name="l00059"></a>00059 <span class="comment">//struct traits</span>
|
||||
<a name="l00060"></a>00060 <span class="comment">//{</span>
|
||||
<a name="l00061"></a>00061 <span class="comment">// static const bool is_signed = false;</span>
|
||||
<a name="l00062"></a>00062 <span class="comment">// static const bool is_float = false;</span>
|
||||
<a name="l00063"></a>00063 <span class="comment">// static const bool is_vector = false;</span>
|
||||
<a name="l00064"></a>00064 <span class="comment">// static const bool is_matrix = false;</span>
|
||||
<a name="l00065"></a>00065 <span class="comment">// static const bool is_genType = false;</span>
|
||||
<a name="l00066"></a>00066 <span class="comment">// static const bool is_genIType = false;</span>
|
||||
<a name="l00067"></a>00067 <span class="comment">// static const bool is_genUType = false;</span>
|
||||
<a name="l00068"></a>00068 <span class="comment">//};</span>
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00070"></a>00070 <span class="comment">//template <></span>
|
||||
<a name="l00071"></a>00071 <span class="comment">//struct traits<half></span>
|
||||
<a name="l00072"></a>00072 <span class="comment">//{</span>
|
||||
<a name="l00073"></a>00073 <span class="comment">// static const bool is_float = true;</span>
|
||||
<a name="l00074"></a>00074 <span class="comment">// static const bool is_genType = true;</span>
|
||||
<a name="l00075"></a>00075 <span class="comment">//};</span>
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00077"></a>00077 <span class="comment">//template <></span>
|
||||
<a name="l00078"></a>00078 <span class="comment">//struct traits<float></span>
|
||||
<a name="l00079"></a>00079 <span class="comment">//{</span>
|
||||
<a name="l00080"></a>00080 <span class="comment">// static const bool is_float = true;</span>
|
||||
<a name="l00081"></a>00081 <span class="comment">// static const bool is_genType = true;</span>
|
||||
<a name="l00082"></a>00082 <span class="comment">//};</span>
|
||||
<a name="l00083"></a>00083
|
||||
<a name="l00084"></a>00084 <span class="comment">//template <></span>
|
||||
<a name="l00085"></a>00085 <span class="comment">//struct traits<double></span>
|
||||
<a name="l00086"></a>00086 <span class="comment">//{</span>
|
||||
<a name="l00087"></a>00087 <span class="comment">// static const bool is_float = true;</span>
|
||||
<a name="l00088"></a>00088 <span class="comment">// static const bool is_genType = true;</span>
|
||||
<a name="l00089"></a>00089 <span class="comment">//};</span>
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00091"></a>00091 <span class="comment">//template <typename genType></span>
|
||||
<a name="l00092"></a>00092 <span class="comment">//struct desc</span>
|
||||
<a name="l00093"></a>00093 <span class="comment">//{</span>
|
||||
<a name="l00094"></a>00094 <span class="comment">// typedef genType type;</span>
|
||||
<a name="l00095"></a>00095 <span class="comment">// typedef genType * pointer;</span>
|
||||
<a name="l00096"></a>00096 <span class="comment">// typedef genType const* const_pointer;</span>
|
||||
<a name="l00097"></a>00097 <span class="comment">// typedef genType const *const const_pointer_const;</span>
|
||||
<a name="l00098"></a>00098 <span class="comment">// typedef genType *const pointer_const;</span>
|
||||
<a name="l00099"></a>00099 <span class="comment">// typedef genType & reference;</span>
|
||||
<a name="l00100"></a>00100 <span class="comment">// typedef genType const& const_reference;</span>
|
||||
<a name="l00101"></a>00101 <span class="comment">// typedef genType const& param_type;</span>
|
||||
<a name="l00102"></a>00102
|
||||
<a name="l00103"></a>00103 <span class="comment">// typedef typename genType::value_type value_type;</span>
|
||||
<a name="l00104"></a>00104 <span class="comment">// typedef typename genType::size_type size_type;</span>
|
||||
<a name="l00105"></a>00105 <span class="comment">// static const typename size_type value_size;</span>
|
||||
<a name="l00106"></a>00106 <span class="comment">//};</span>
|
||||
<a name="l00107"></a>00107
|
||||
<a name="l00108"></a>00108 <span class="comment">//template <typename genType></span>
|
||||
<a name="l00109"></a>00109 <span class="comment">//const typename desc<genType>::size_type desc<genType>::value_size = genType::value_size();</span>
|
||||
<a name="l00110"></a>00110
|
||||
<a name="l00111"></a>00111 <span class="keyword">union </span>uif32
|
||||
<a name="l00112"></a>00112 {
|
||||
<a name="l00113"></a>00113 GLM_FUNC_QUALIFIER uif32() :
|
||||
<a name="l00114"></a>00114 i(0)
|
||||
<a name="l00115"></a>00115 {}
|
||||
<a name="l00116"></a>00116
|
||||
<a name="l00117"></a>00117 GLM_FUNC_QUALIFIER uif32(<span class="keywordtype">float</span> f) :
|
||||
<a name="l00118"></a>00118 f(f)
|
||||
<a name="l00119"></a>00119 {}
|
||||
<a name="l00120"></a>00120
|
||||
<a name="l00121"></a>00121 GLM_FUNC_QUALIFIER uif32(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i) :
|
||||
<a name="l00122"></a>00122 i(i)
|
||||
<a name="l00123"></a>00123 {}
|
||||
<a name="l00124"></a>00124
|
||||
<a name="l00125"></a>00125 <span class="keywordtype">float</span> f;
|
||||
<a name="l00126"></a>00126 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i;
|
||||
<a name="l00127"></a>00127 };
|
||||
<a name="l00128"></a>00128
|
||||
<a name="l00129"></a>00129 <span class="keyword">union </span>uif64
|
||||
<a name="l00130"></a>00130 {
|
||||
<a name="l00131"></a>00131 GLM_FUNC_QUALIFIER uif64() :
|
||||
<a name="l00132"></a>00132 i(0)
|
||||
<a name="l00133"></a>00133 {}
|
||||
<a name="l00134"></a>00134
|
||||
<a name="l00135"></a>00135 GLM_FUNC_QUALIFIER uif64(<span class="keywordtype">double</span> f) :
|
||||
<a name="l00136"></a>00136 f(f)
|
||||
<a name="l00137"></a>00137 {}
|
||||
<a name="l00138"></a>00138
|
||||
<a name="l00139"></a>00139 GLM_FUNC_QUALIFIER uif64(<a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a> i) :
|
||||
<a name="l00140"></a>00140 i(i)
|
||||
<a name="l00141"></a>00141 {}
|
||||
<a name="l00142"></a>00142
|
||||
<a name="l00143"></a>00143 <span class="keywordtype">double</span> f;
|
||||
<a name="l00144"></a>00144 <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a> i;
|
||||
<a name="l00145"></a>00145 };
|
||||
<a name="l00146"></a>00146
|
||||
<a name="l00147"></a>00147 <span class="keyword">typedef</span> uif32 uif;
|
||||
<a name="l00148"></a>00148
|
||||
<a name="l00150"></a>00150 <span class="comment">// int</span>
|
||||
<a name="l00151"></a>00151
|
||||
<a name="l00152"></a>00152 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00153"></a>00153 <span class="keyword">struct </span>is_int
|
||||
<a name="l00154"></a>00154 {
|
||||
<a name="l00155"></a>00155 <span class="keyword">enum</span> is_int_enum
|
||||
<a name="l00156"></a>00156 {
|
||||
<a name="l00157"></a>00157 _YES = 0,
|
||||
<a name="l00158"></a>00158 _NO = 1
|
||||
<a name="l00159"></a>00159 };
|
||||
<a name="l00160"></a>00160 };
|
||||
<a name="l00161"></a>00161
|
||||
<a name="l00162"></a>00162 <span class="preprocessor">#define GLM_DETAIL_IS_INT(T) \</span>
|
||||
<a name="l00163"></a>00163 <span class="preprocessor"> template <> \</span>
|
||||
<a name="l00164"></a>00164 <span class="preprocessor"> struct is_int<T> \</span>
|
||||
<a name="l00165"></a>00165 <span class="preprocessor"> { \</span>
|
||||
<a name="l00166"></a>00166 <span class="preprocessor"> enum is_int_enum \</span>
|
||||
<a name="l00167"></a>00167 <span class="preprocessor"> { \</span>
|
||||
<a name="l00168"></a>00168 <span class="preprocessor"> _YES = 1, \</span>
|
||||
<a name="l00169"></a>00169 <span class="preprocessor"> _NO = 0 \</span>
|
||||
<a name="l00170"></a>00170 <span class="preprocessor"> }; \</span>
|
||||
<a name="l00171"></a>00171 <span class="preprocessor"> }</span>
|
||||
<a name="l00172"></a>00172 <span class="preprocessor"></span>
|
||||
<a name="l00174"></a>00174 <span class="comment">// uint</span>
|
||||
<a name="l00175"></a>00175
|
||||
<a name="l00176"></a>00176 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00177"></a>00177 <span class="keyword">struct </span>is_uint
|
||||
<a name="l00178"></a>00178 {
|
||||
<a name="l00179"></a>00179 <span class="keyword">enum</span> is_uint_enum
|
||||
<a name="l00180"></a>00180 {
|
||||
<a name="l00181"></a>00181 _YES = 0,
|
||||
<a name="l00182"></a>00182 _NO = 1
|
||||
<a name="l00183"></a>00183 };
|
||||
<a name="l00184"></a>00184 };
|
||||
<a name="l00185"></a>00185
|
||||
<a name="l00186"></a>00186 <span class="preprocessor">#define GLM_DETAIL_IS_UINT(T) \</span>
|
||||
<a name="l00187"></a>00187 <span class="preprocessor"> template <> \</span>
|
||||
<a name="l00188"></a>00188 <span class="preprocessor"> struct is_uint<T> \</span>
|
||||
<a name="l00189"></a>00189 <span class="preprocessor"> { \</span>
|
||||
<a name="l00190"></a>00190 <span class="preprocessor"> enum is_uint_enum \</span>
|
||||
<a name="l00191"></a>00191 <span class="preprocessor"> { \</span>
|
||||
<a name="l00192"></a>00192 <span class="preprocessor"> _YES = 1, \</span>
|
||||
<a name="l00193"></a>00193 <span class="preprocessor"> _NO = 0 \</span>
|
||||
<a name="l00194"></a>00194 <span class="preprocessor"> }; \</span>
|
||||
<a name="l00195"></a>00195 <span class="preprocessor"> }</span>
|
||||
<a name="l00196"></a>00196 <span class="preprocessor"></span>
|
||||
<a name="l00197"></a>00197 <span class="comment">//GLM_DETAIL_IS_UINT(unsigned long long)</span>
|
||||
<a name="l00198"></a>00198
|
||||
<a name="l00200"></a>00200 <span class="comment">// float</span>
|
||||
<a name="l00201"></a>00201
|
||||
<a name="l00202"></a>00202 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00203"></a>00203 <span class="keyword">struct </span>is_float
|
||||
<a name="l00204"></a>00204 {
|
||||
<a name="l00205"></a>00205 <span class="keyword">enum</span> is_float_enum
|
||||
<a name="l00206"></a>00206 {
|
||||
<a name="l00207"></a>00207 _YES = 0,
|
||||
<a name="l00208"></a>00208 _NO = 1
|
||||
<a name="l00209"></a>00209 };
|
||||
<a name="l00210"></a>00210 };
|
||||
<a name="l00211"></a>00211
|
||||
<a name="l00212"></a>00212 <span class="preprocessor">#define GLM_DETAIL_IS_FLOAT(T) \</span>
|
||||
<a name="l00213"></a>00213 <span class="preprocessor"> template <> \</span>
|
||||
<a name="l00214"></a>00214 <span class="preprocessor"> struct is_float<T> \</span>
|
||||
<a name="l00215"></a>00215 <span class="preprocessor"> { \</span>
|
||||
<a name="l00216"></a>00216 <span class="preprocessor"> enum is_float_enum \</span>
|
||||
<a name="l00217"></a>00217 <span class="preprocessor"> { \</span>
|
||||
<a name="l00218"></a>00218 <span class="preprocessor"> _YES = 1, \</span>
|
||||
<a name="l00219"></a>00219 <span class="preprocessor"> _NO = 0 \</span>
|
||||
<a name="l00220"></a>00220 <span class="preprocessor"> }; \</span>
|
||||
<a name="l00221"></a>00221 <span class="preprocessor"> }</span>
|
||||
<a name="l00222"></a>00222 <span class="preprocessor"></span>
|
||||
<a name="l00224"></a>00224 <span class="comment">// bool</span>
|
||||
<a name="l00225"></a>00225
|
||||
<a name="l00226"></a>00226 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00227"></a>00227 <span class="keyword">struct </span>is_bool
|
||||
<a name="l00228"></a>00228 {
|
||||
<a name="l00229"></a>00229 <span class="keyword">enum</span> is_bool_enum
|
||||
<a name="l00230"></a>00230 {
|
||||
<a name="l00231"></a>00231 _YES = 0,
|
||||
<a name="l00232"></a>00232 _NO = 1
|
||||
<a name="l00233"></a>00233 };
|
||||
<a name="l00234"></a>00234 };
|
||||
<a name="l00235"></a>00235
|
||||
<a name="l00236"></a>00236 <span class="keyword">template</span> <>
|
||||
<a name="l00237"></a>00237 <span class="keyword">struct </span>is_bool<bool>
|
||||
<a name="l00238"></a>00238 {
|
||||
<a name="l00239"></a>00239 <span class="keyword">enum</span> is_bool_enum
|
||||
<a name="l00240"></a>00240 {
|
||||
<a name="l00241"></a>00241 _YES = 1,
|
||||
<a name="l00242"></a>00242 _NO = 0
|
||||
<a name="l00243"></a>00243 };
|
||||
<a name="l00244"></a>00244 };
|
||||
<a name="l00245"></a>00245
|
||||
<a name="l00247"></a>00247 <span class="comment">// vector</span>
|
||||
<a name="l00248"></a>00248
|
||||
<a name="l00249"></a>00249 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00250"></a>00250 <span class="keyword">struct </span>is_vector
|
||||
<a name="l00251"></a>00251 {
|
||||
<a name="l00252"></a>00252 <span class="keyword">enum</span> is_vector_enum
|
||||
<a name="l00253"></a>00253 {
|
||||
<a name="l00254"></a>00254 _YES = 0,
|
||||
<a name="l00255"></a>00255 _NO = 1
|
||||
<a name="l00256"></a>00256 };
|
||||
<a name="l00257"></a>00257 };
|
||||
<a name="l00258"></a>00258
|
||||
<a name="l00259"></a>00259 <span class="preprocessor"># define GLM_DETAIL_IS_VECTOR(TYPE) \</span>
|
||||
<a name="l00260"></a>00260 <span class="preprocessor"> template <typename T> \</span>
|
||||
<a name="l00261"></a>00261 <span class="preprocessor"> struct is_vector<TYPE<T> > \</span>
|
||||
<a name="l00262"></a>00262 <span class="preprocessor"> { \</span>
|
||||
<a name="l00263"></a>00263 <span class="preprocessor"> enum is_vector_enum \</span>
|
||||
<a name="l00264"></a>00264 <span class="preprocessor"> { \</span>
|
||||
<a name="l00265"></a>00265 <span class="preprocessor"> _YES = 1, \</span>
|
||||
<a name="l00266"></a>00266 <span class="preprocessor"> _NO = 0 \</span>
|
||||
<a name="l00267"></a>00267 <span class="preprocessor"> }; \</span>
|
||||
<a name="l00268"></a>00268 <span class="preprocessor"> }</span>
|
||||
<a name="l00269"></a>00269 <span class="preprocessor"></span>
|
||||
<a name="l00271"></a>00271 <span class="comment">// matrix</span>
|
||||
<a name="l00272"></a>00272
|
||||
<a name="l00273"></a>00273 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00274"></a>00274 <span class="keyword">struct </span>is_matrix
|
||||
<a name="l00275"></a>00275 {
|
||||
<a name="l00276"></a>00276 <span class="keyword">enum</span> is_matrix_enum
|
||||
<a name="l00277"></a>00277 {
|
||||
<a name="l00278"></a>00278 _YES = 0,
|
||||
<a name="l00279"></a>00279 _NO = 1
|
||||
<a name="l00280"></a>00280 };
|
||||
<a name="l00281"></a>00281 };
|
||||
<a name="l00282"></a>00282
|
||||
<a name="l00283"></a>00283 <span class="preprocessor">#define GLM_DETAIL_IS_MATRIX(T) \</span>
|
||||
<a name="l00284"></a>00284 <span class="preprocessor"> template <> \</span>
|
||||
<a name="l00285"></a>00285 <span class="preprocessor"> struct is_matrix \</span>
|
||||
<a name="l00286"></a>00286 <span class="preprocessor"> { \</span>
|
||||
<a name="l00287"></a>00287 <span class="preprocessor"> enum is_matrix_enum \</span>
|
||||
<a name="l00288"></a>00288 <span class="preprocessor"> { \</span>
|
||||
<a name="l00289"></a>00289 <span class="preprocessor"> _YES = 1, \</span>
|
||||
<a name="l00290"></a>00290 <span class="preprocessor"> _NO = 0 \</span>
|
||||
<a name="l00291"></a>00291 <span class="preprocessor"> }; \</span>
|
||||
<a name="l00292"></a>00292 <span class="preprocessor"> }</span>
|
||||
<a name="l00293"></a>00293 <span class="preprocessor"></span>
|
||||
<a name="l00295"></a>00295 <span class="comment">// type</span>
|
||||
<a name="l00296"></a>00296
|
||||
<a name="l00297"></a>00297 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00298"></a>00298 <span class="keyword">struct </span>type
|
||||
<a name="l00299"></a>00299 {
|
||||
<a name="l00300"></a>00300 <span class="keyword">enum</span> type_enum
|
||||
<a name="l00301"></a>00301 {
|
||||
<a name="l00302"></a>00302 is_float = is_float<T>::_YES,
|
||||
<a name="l00303"></a>00303 is_int = is_int<T>::_YES,
|
||||
<a name="l00304"></a>00304 is_uint = is_uint<T>::_YES,
|
||||
<a name="l00305"></a>00305 is_bool = is_bool<T>::_YES
|
||||
<a name="l00306"></a>00306 };
|
||||
<a name="l00307"></a>00307 };
|
||||
<a name="l00308"></a>00308
|
||||
<a name="l00310"></a>00310 <span class="comment">// type</span>
|
||||
<a name="l00311"></a>00311
|
||||
<a name="l00312"></a>00312 <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">char</span> <a class="code" href="a00246.html#ga41c6189f6485c2825d60fdc835b3a2b0" title="8bit signed integer. (from GLM_GTC_type_precision extension)">int8</a>;
|
||||
<a name="l00313"></a>00313 <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">short</span> <a class="code" href="a00246.html#ga302041c186d0d028bea31b711fe16759" title="16bit signed integer. (from GLM_GTC_type_precision extension)">int16</a>;
|
||||
<a name="l00314"></a>00314 <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">int</span> <a class="code" href="a00246.html#ga8df669f4e7698dfe0c0354d92578d74f" title="32bit signed integer. (from GLM_GTC_type_precision extension)">int32</a>;
|
||||
<a name="l00315"></a>00315 <span class="keyword">typedef</span> detail::sint64 <a class="code" href="a00246.html#gaff5189f97f9e842d9636a0f240001b2e" title="64bit signed integer. (from GLM_GTC_type_precision extension)">int64</a>;
|
||||
<a name="l00316"></a>00316
|
||||
<a name="l00317"></a>00317 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="a00246.html#ga36475e31b1992cfde54c1a6f5a148865" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">uint8</a>;
|
||||
<a name="l00318"></a>00318 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="a00246.html#ga13471cbbe74e4303a57f3743d007b74d" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">uint16</a>;
|
||||
<a name="l00319"></a>00319 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="a00246.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">uint32</a>;
|
||||
<a name="l00320"></a>00320 <span class="keyword">typedef</span> detail::uint64 <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a>;
|
||||
<a name="l00321"></a>00321
|
||||
<a name="l00322"></a>00322 <span class="keyword">typedef</span> <a class="code" href="a00009.html" title="16-bit floating point type.">detail::thalf</a> <a class="code" href="a00246.html#ga19287ee46bd37d1459731d7191bc2f66" title="Half-precision floating-point scalar. (from GLM_GTC_type_precision extension)">float16</a>;
|
||||
<a name="l00323"></a>00323 <span class="keyword">typedef</span> <span class="keywordtype">float</span> <a class="code" href="a00246.html#gad3c127f8bf8d7d4e738037c257abb5b1" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">float32</a>;
|
||||
<a name="l00324"></a>00324 <span class="keyword">typedef</span> <span class="keywordtype">double</span> <a class="code" href="a00246.html#gab5596d48586414c91ccb270962dc14d3" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">float64</a>;
|
||||
<a name="l00325"></a>00325
|
||||
<a name="l00326"></a>00326 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00327"></a>00327 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00328"></a>00328
|
||||
<a name="l00329"></a>00329 <span class="preprocessor">#if((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2005))</span>
|
||||
<a name="l00330"></a>00330 <span class="preprocessor"></span><span class="preprocessor"># define GLM_DEPRECATED __declspec(deprecated)</span>
|
||||
<a name="l00331"></a>00331 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGN(x) __declspec(align(x)) </span>
|
||||
<a name="l00332"></a>00332 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGNED_STRUCT(x) __declspec(align(x)) struct </span>
|
||||
<a name="l00333"></a>00333 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT __declspec(restrict)</span>
|
||||
<a name="l00334"></a>00334 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR __restrict</span>
|
||||
<a name="l00335"></a>00335 <span class="preprocessor"></span><span class="preprocessor">#elif((GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_LLVM_GCC)) && (GLM_COMPILER >= GLM_COMPILER_GCC31))</span>
|
||||
<a name="l00336"></a>00336 <span class="preprocessor"></span><span class="preprocessor"># define GLM_DEPRECATED __attribute__((__deprecated__))</span>
|
||||
<a name="l00337"></a>00337 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGN(x) __attribute__((aligned(x)))</span>
|
||||
<a name="l00338"></a>00338 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGNED_STRUCT(x) struct __attribute__((aligned(x)))</span>
|
||||
<a name="l00339"></a>00339 <span class="preprocessor"></span><span class="preprocessor"># if(GLM_COMPILER >= GLM_COMPILER_GCC33)</span>
|
||||
<a name="l00340"></a>00340 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT __restrict__</span>
|
||||
<a name="l00341"></a>00341 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR __restrict__</span>
|
||||
<a name="l00342"></a>00342 <span class="preprocessor"></span><span class="preprocessor"># else</span>
|
||||
<a name="l00343"></a>00343 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT</span>
|
||||
<a name="l00344"></a>00344 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR</span>
|
||||
<a name="l00345"></a>00345 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
|
||||
<a name="l00346"></a>00346 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT __restrict__</span>
|
||||
<a name="l00347"></a>00347 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR __restrict__</span>
|
||||
<a name="l00348"></a>00348 <span class="preprocessor"></span><span class="preprocessor">#else</span>
|
||||
<a name="l00349"></a>00349 <span class="preprocessor"></span><span class="preprocessor"># define GLM_DEPRECATED</span>
|
||||
<a name="l00350"></a>00350 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGN</span>
|
||||
<a name="l00351"></a>00351 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGNED_STRUCT(x) </span>
|
||||
<a name="l00352"></a>00352 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT</span>
|
||||
<a name="l00353"></a>00353 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR</span>
|
||||
<a name="l00354"></a>00354 <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_COMPILER</span>
|
||||
<a name="l00355"></a>00355 <span class="preprocessor"></span>
|
||||
<a name="l00356"></a>00356 <span class="preprocessor">#endif//glm_core_detail</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,60 +0,0 @@
|
||||
<!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>_fixes.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">_fixes.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2011-02-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2011-02-21</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/_fixes.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor">#ifdef max</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#undef max</span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#ifdef min</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#undef min</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,116 +0,0 @@
|
||||
<!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>associated_min_max.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">associated_min_max.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-03-10</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-03-15</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : gtx_associated_min_max.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTX_extented_min_max</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_associated_min_max</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_associated_min_max</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_associated_min_max extension included")</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span>
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00026"></a><a class="code" href="a00169.html">00026</a> <span class="keyword">namespace </span>associated_min_max
|
||||
<a name="l00027"></a>00027 {
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span><<span class="keyword">typename</span> genTypeT, <span class="keyword">typename</span> genTypeU>
|
||||
<a name="l00033"></a>00033 genTypeU <a class="code" href="a00249.html#ga84781b260e2851924efea99c4d2e5ae6" title="Min comparison between 2 variables.">associatedMin</a>(
|
||||
<a name="l00034"></a>00034 <span class="keyword">const</span> genTypeT& x, <span class="keyword">const</span> genTypeU& a,
|
||||
<a name="l00035"></a>00035 <span class="keyword">const</span> genTypeT& y, <span class="keyword">const</span> genTypeU& b);
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00038"></a>00038 <span class="keyword">template</span><<span class="keyword">typename</span> genTypeT, <span class="keyword">typename</span> genTypeU>
|
||||
<a name="l00039"></a>00039 genTypeU <a class="code" href="a00249.html#ga84781b260e2851924efea99c4d2e5ae6" title="Min comparison between 2 variables.">associatedMin</a>(
|
||||
<a name="l00040"></a>00040 <span class="keyword">const</span> genTypeT& x, <span class="keyword">const</span> genTypeU& a,
|
||||
<a name="l00041"></a>00041 <span class="keyword">const</span> genTypeT& y, <span class="keyword">const</span> genTypeU& b,
|
||||
<a name="l00042"></a>00042 <span class="keyword">const</span> genTypeT& z, <span class="keyword">const</span> genTypeU& c);
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00045"></a>00045 <span class="keyword">template</span><<span class="keyword">typename</span> genTypeT, <span class="keyword">typename</span> genTypeU>
|
||||
<a name="l00046"></a>00046 genTypeU <a class="code" href="a00249.html#ga84781b260e2851924efea99c4d2e5ae6" title="Min comparison between 2 variables.">associatedMin</a>(
|
||||
<a name="l00047"></a>00047 <span class="keyword">const</span> genTypeT& x, <span class="keyword">const</span> genTypeU& a,
|
||||
<a name="l00048"></a>00048 <span class="keyword">const</span> genTypeT& y, <span class="keyword">const</span> genTypeU& b,
|
||||
<a name="l00049"></a>00049 <span class="keyword">const</span> genTypeT& z, <span class="keyword">const</span> genTypeU& c,
|
||||
<a name="l00050"></a>00050 <span class="keyword">const</span> genTypeT& w, <span class="keyword">const</span> genTypeU& d);
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00053"></a>00053 <span class="keyword">template</span><<span class="keyword">typename</span> genTypeT, <span class="keyword">typename</span> genTypeU>
|
||||
<a name="l00054"></a>00054 genTypeU <a class="code" href="a00249.html#ga3b1c8d7070874427d0a0fd84885ce473" title="Max comparison between 2 variables.">associatedMax</a>(
|
||||
<a name="l00055"></a>00055 <span class="keyword">const</span> genTypeT& x, <span class="keyword">const</span> genTypeU& a,
|
||||
<a name="l00056"></a>00056 <span class="keyword">const</span> genTypeT& y, <span class="keyword">const</span> genTypeU& b);
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00059"></a>00059 <span class="keyword">template</span><<span class="keyword">typename</span> genTypeT, <span class="keyword">typename</span> genTypeU>
|
||||
<a name="l00060"></a>00060 genTypeU <a class="code" href="a00249.html#ga3b1c8d7070874427d0a0fd84885ce473" title="Max comparison between 2 variables.">associatedMax</a>(
|
||||
<a name="l00061"></a>00061 <span class="keyword">const</span> genTypeT& x, <span class="keyword">const</span> genTypeU& a,
|
||||
<a name="l00062"></a>00062 <span class="keyword">const</span> genTypeT& y, <span class="keyword">const</span> genTypeU& b,
|
||||
<a name="l00063"></a>00063 <span class="keyword">const</span> genTypeT& z, <span class="keyword">const</span> genTypeU& c);
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00066"></a>00066 <span class="keyword">template</span><<span class="keyword">typename</span> genTypeT, <span class="keyword">typename</span> genTypeU>
|
||||
<a name="l00067"></a>00067 genTypeU <a class="code" href="a00249.html#ga3b1c8d7070874427d0a0fd84885ce473" title="Max comparison between 2 variables.">associatedMax</a>(
|
||||
<a name="l00068"></a>00068 <span class="keyword">const</span> genTypeT& x, <span class="keyword">const</span> genTypeU& a,
|
||||
<a name="l00069"></a>00069 <span class="keyword">const</span> genTypeT& y, <span class="keyword">const</span> genTypeU& b,
|
||||
<a name="l00070"></a>00070 <span class="keyword">const</span> genTypeT& z, <span class="keyword">const</span> genTypeU& c,
|
||||
<a name="l00071"></a>00071 <span class="keyword">const</span> genTypeT& w, <span class="keyword">const</span> genTypeU& d);
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00074"></a>00074 } <span class="comment">//namespace associated_min_max</span>
|
||||
<a name="l00075"></a>00075 } <span class="comment">//namespace gtx</span>
|
||||
<a name="l00076"></a>00076 } <span class="comment">//namespace glm</span>
|
||||
<a name="l00077"></a>00077
|
||||
<a name="l00078"></a>00078 <span class="preprocessor">#include "associated_min_max.inl"</span>
|
||||
<a name="l00079"></a>00079
|
||||
<a name="l00080"></a>00080 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::associated_min_max;}
|
||||
<a name="l00081"></a>00081
|
||||
<a name="l00082"></a>00082 <span class="preprocessor">#endif//glm_gtx_associated_min_max</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,122 +0,0 @@
|
||||
<!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>bit.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">bit.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2007-03-14</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-11-14</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/bit.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTC_half_float</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_bit</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_bit</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "../gtc/half_float.hpp"</span>
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_bit extension included")</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span>
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00026"></a>00026 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00027"></a><a class="code" href="a00170.html">00027</a> <span class="keyword">namespace </span>bit
|
||||
<a name="l00028"></a>00028 {
|
||||
<a name="l00029"></a>00029 <span class="keyword">using namespace </span>gtc::half_float;
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00033"></a>00033
|
||||
<a name="l00036"></a>00036 <span class="keyword">template</span> <<span class="keyword">typename</span> genIType>
|
||||
<a name="l00037"></a>00037 genIType <a class="code" href="a00250.html#ga31dbf05c851060984e107afb39dde5fe" title="Build a mask of 'count' bits From GLM_GTX_bit extension.">mask</a>(genIType <span class="keyword">const</span> & count);
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00042"></a>00042 <span class="keyword">template</span> <<span class="keyword">typename</span> genIUType, <span class="keyword">typename</span> sizeType>
|
||||
<a name="l00043"></a>00043 genIUType <a class="code" href="a00250.html#ga244734bb54e4648970c38b032258035a" title="Component wise extraction of bit fields.">extractField</a>(
|
||||
<a name="l00044"></a>00044 genIUType <span class="keyword">const</span> & v,
|
||||
<a name="l00045"></a>00045 sizeType <span class="keyword">const</span> & first,
|
||||
<a name="l00046"></a>00046 sizeType <span class="keyword">const</span> & count);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00051"></a>00051 <span class="keywordtype">int</span> <a class="code" href="a00250.html#gace8029d9e9090f2aaa0248e320b3f24c" title="Find the lowest bit set to 1 in a integer variable.">lowestBit</a>(genType <span class="keyword">const</span> & value);
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00055"></a>00055 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00056"></a>00056 <span class="keywordtype">int</span> <a class="code" href="a00250.html#ga55e17a1e9347ca10d206f62ffe294608" title="Find the highest bit set to 1 in a integer variable.">highestBit</a>(genType <span class="keyword">const</span> & value);
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00060"></a>00060 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00061"></a>00061 genType <a class="code" href="a00250.html#ga2e2ba1398ef471e40e6a07cbab9a75fe" title="Find the highest bit set to 1 in a integer variable and return its value.">highestBitValue</a>(genType <span class="keyword">const</span> & value);
|
||||
<a name="l00062"></a>00062
|
||||
<a name="l00065"></a>00065 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00066"></a>00066 <span class="keywordtype">bool</span> <a class="code" href="a00250.html#gadddfcaa01efe60218e52323707331415" title="Return true if the value is a power of two number.">isPowerOfTwo</a>(genType <span class="keyword">const</span> & value);
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00070"></a>00070 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00071"></a>00071 genType <a class="code" href="a00250.html#ga0a1683dffc58011a161c0b3cb867c93c" title="Return the power of two number which value is just higher the input value.">powerOfTwoAbove</a>(genType <span class="keyword">const</span> & value);
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00075"></a>00075 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00076"></a>00076 genType <a class="code" href="a00250.html#ga9adeb3bc22e67933665600e0dc2e1f8d" title="Return the power of two number which value is just lower the input value.">powerOfTwoBelow</a>(genType <span class="keyword">const</span> & value);
|
||||
<a name="l00077"></a>00077
|
||||
<a name="l00080"></a>00080 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00081"></a>00081 genType <a class="code" href="a00250.html#ga12d57451c94950bafe2e1fb57346f082" title="Return the power of two number which value is the closet to the input value.">powerOfTwoNearest</a>(genType <span class="keyword">const</span> & value);
|
||||
<a name="l00082"></a>00082
|
||||
<a name="l00085"></a>00085 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00086"></a>00086 genType <a class="code" href="a00250.html#ga2f145f264c334caba22e6949e015d208" title="Revert all bits of any integer based type.">bitRevert</a>(genType <span class="keyword">const</span> & value);
|
||||
<a name="l00087"></a>00087
|
||||
<a name="l00090"></a>00090 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00091"></a>00091 genType <a class="code" href="a00250.html#gaeec0d4179d7a092056e2201fff385ef6" title="Rotate all bits to the right.">bitRotateRight</a>(genType <span class="keyword">const</span> & In, std::size_t Shift);
|
||||
<a name="l00092"></a>00092
|
||||
<a name="l00095"></a>00095 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00096"></a>00096 genType <a class="code" href="a00250.html#gaa8de15434b73178fd1d2ea7ee16b59bd" title="Rotate all bits to the left.">bitRotateLeft</a>(genType <span class="keyword">const</span> & In, std::size_t Shift);
|
||||
<a name="l00097"></a>00097
|
||||
<a name="l00099"></a>00099 }<span class="comment">//namespace bit</span>
|
||||
<a name="l00100"></a>00100 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00101"></a>00101 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00102"></a>00102
|
||||
<a name="l00103"></a>00103 <span class="preprocessor">#include "bit.inl"</span>
|
||||
<a name="l00104"></a>00104
|
||||
<a name="l00105"></a>00105 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::bit;}
|
||||
<a name="l00106"></a>00106
|
||||
<a name="l00107"></a>00107 <span class="preprocessor">#endif//glm_gtx_bit</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,85 +0,0 @@
|
||||
<!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>closest_point.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">closest_point.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-30</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-10-05</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/closest_point.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_closest_point</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_closest_point</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_closest_point extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00171.html">00025</a> <span class="keyword">namespace </span>closest_point
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00033"></a>00033 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00251.html#ga14a814a7834db281ef0167947c8f9516" title="Find the point on a straight line which is the closet of a point.">closestPointOnLine</a>(
|
||||
<a name="l00034"></a>00034 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & point,
|
||||
<a name="l00035"></a>00035 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & a,
|
||||
<a name="l00036"></a>00036 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & b);
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00039"></a>00039 }<span class="comment">// namespace closest_point</span>
|
||||
<a name="l00040"></a>00040 }<span class="comment">// namespace gtx</span>
|
||||
<a name="l00041"></a>00041 }<span class="comment">// namespace glm</span>
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00043"></a>00043 <span class="preprocessor">#include "closest_point.inl"</span>
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::closest_point;}
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a>00047 <span class="preprocessor">#endif//glm_gtx_closest_point</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,143 +0,0 @@
|
||||
<!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>color_cast.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">color_cast.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2007-06-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-06-05</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/color_cast.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTX_number_precision</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_color_cast</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_color_cast</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "../gtx/number_precision.hpp"</span>
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_color_cast extension included")</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span>
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00026"></a>00026 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00027"></a><a class="code" href="a00172.html">00027</a> <span class="keyword">namespace </span>color_cast
|
||||
<a name="l00028"></a>00028 {
|
||||
<a name="l00029"></a>00029 <span class="keyword">using namespace </span>gtx::number_precision;
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00033"></a>00033
|
||||
<a name="l00036"></a>00036 <span class="keyword">template</span> <<span class="keyword">typename</span> valType> <a class="code" href="a00246.html#ga36475e31b1992cfde54c1a6f5a148865" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint8</a> <a class="code" href="a00252.html#gab11ba0a450ba9a2b3885fa6a631df6f5" title="Conversion of a floating value into a 8bit unsigned int value.">u8channel_cast</a>(valType a);
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00040"></a>00040 <span class="keyword">template</span> <<span class="keyword">typename</span> valType> <a class="code" href="a00246.html#ga13471cbbe74e4303a57f3743d007b74d" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint16</a> <a class="code" href="a00252.html#gab1c15b0a63939cf8b73704b3ee0531bf" title="Conversion of a floating value into a 16bit unsigned int value.">u16channel_cast</a>(valType a);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00042"></a>00042 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00252.html#ga76304a49860f623238edd96c9a181963" title="Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extensi...">u32_rgbx_cast</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& c);
|
||||
<a name="l00043"></a>00043 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00252.html#gaeeb39141498fdaceb0eb7badd03b3111" title="Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extensi...">u32_xrgb_cast</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& c);
|
||||
<a name="l00044"></a>00044 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00252.html#ga4343a2cc949e6a62e3195a50e03b328a" title="Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extensi...">u32_bgrx_cast</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& c);
|
||||
<a name="l00045"></a>00045 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00252.html#gae24be431c89259065ba614b12e130740" title="Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extensi...">u32_xbgr_cast</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& c);
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a>00047 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00252.html#ga3251915cd4e12f9c74f80949dda11751" title="Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extensi...">u32_rgba_cast</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& c);
|
||||
<a name="l00048"></a>00048 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00252.html#ga54d650e121ffa7dd5df995f45eacbe7c" title="Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extensi...">u32_argb_cast</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& c);
|
||||
<a name="l00049"></a>00049 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00252.html#ga994311f638751fbd6c18cbc6e7cc40a2" title="Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extensi...">u32_bgra_cast</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& c);
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00252.html#ga7419ad7d2b6280021d2e6fe61f959593" title="Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extensi...">u32_abgr_cast</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& c);
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00252.html#gac6f16d71adbccd604cffae1c83961bba" title="Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extensi...">u64_rgbx_cast</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& c);
|
||||
<a name="l00053"></a>00053 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00252.html#ga4b860d9689ce434bef7ecdbb8cdbc4b4" title="Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extensi...">u64_xrgb_cast</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& c);
|
||||
<a name="l00054"></a>00054 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00252.html#gae19e40c22424904d922e22525a0bb455" title="Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extensi...">u64_bgrx_cast</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& c);
|
||||
<a name="l00055"></a>00055 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00252.html#gac3327797af9858e7716cb02b9f8452bc" title="Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extensi...">u64_xbgr_cast</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& c);
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00057"></a>00057 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00252.html#gafd8e66f86f3c42fe17637ca0db751d40" title="Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extensi...">u64_rgba_cast</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& c);
|
||||
<a name="l00058"></a>00058 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00252.html#gadbf0e161e934b6dc7fda389481764f4e" title="Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extensi...">u64_argb_cast</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& c);
|
||||
<a name="l00059"></a>00059 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00252.html#ga36cc78b5052b31b83c2f9562088dc66f" title="Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extensi...">u64_bgra_cast</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& c);
|
||||
<a name="l00060"></a>00060 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00252.html#ga4f050b0db28ca10c503188070330a8c5" title="Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extensi...">u64_abgr_cast</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& c);
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00062"></a>00062 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00009.html" title="16-bit floating point type.">gtx::number_precision::f16vec1</a> <a class="code" href="a00252.html#gae735900f14bcc64ebaf42bb812500964" title="Conversion of a u8 or u16 value to a single channel floating value. (From GLM_GTX_color_cast extensio...">f16_channel_cast</a>(T a);
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">gtc::type_precision::f16vec3</a> <a class="code" href="a00252.html#ga82f8510eb3275299aee11f7a6a0761c0" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension...">f16_rgbx_cast</a>(T c);
|
||||
<a name="l00065"></a>00065 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">gtc::type_precision::f16vec3</a> <a class="code" href="a00252.html#ga54f72266de72a0834da07337b2512c78" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension...">f16_xrgb_cast</a>(T c);
|
||||
<a name="l00066"></a>00066 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">gtc::type_precision::f16vec3</a> <a class="code" href="a00252.html#gaed8b82a32ac9f6e8024a6880461496ba" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension...">f16_bgrx_cast</a>(T c);
|
||||
<a name="l00067"></a>00067 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">gtc::type_precision::f16vec3</a> <a class="code" href="a00252.html#ga6a18355f6ce1b531a8d879774ba43179" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension...">f16_xbgr_cast</a>(T c);
|
||||
<a name="l00068"></a>00068
|
||||
<a name="l00069"></a>00069 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">gtc::type_precision::f16vec4</a> <a class="code" href="a00252.html#ga417f7a9c2bc66229dbeb714308ff45ba" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension...">f16_rgba_cast</a>(T c);
|
||||
<a name="l00070"></a>00070 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">gtc::type_precision::f16vec4</a> <a class="code" href="a00252.html#gaf58e7f656ffad74fe4ed093250c444c8" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension...">f16_argb_cast</a>(T c);
|
||||
<a name="l00071"></a>00071 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">gtc::type_precision::f16vec4</a> <a class="code" href="a00252.html#gadbd908bc29dd87b7222dad33a6b0a6ad" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension...">f16_bgra_cast</a>(T c);
|
||||
<a name="l00072"></a>00072 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">gtc::type_precision::f16vec4</a> <a class="code" href="a00252.html#ga3cd01da9b10cf61cf556fc8e7992f2ea" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension...">f16_abgr_cast</a>(T c);
|
||||
<a name="l00073"></a>00073
|
||||
<a name="l00074"></a>00074 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00279.html#ga07f8d7348eb7ae059a84c118fdfeb943" title="Single-precision floating-point scalar. (from GLM_GTX_number_precision extension)">gtx::number_precision::f32vec1</a> <a class="code" href="a00252.html#ga44006c7374476ad1ee285f28e9c416bb" title="Conversion of a u8 or u16 value to a single channel floating value. (From GLM_GTX_color_cast extensio...">f32_channel_cast</a>(T a);
|
||||
<a name="l00075"></a>00075
|
||||
<a name="l00076"></a>00076 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">gtc::type_precision::f32vec3</a> <a class="code" href="a00252.html#ga4ef58cdad0a076db6b9f6f67d918087b" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension...">f32_rgbx_cast</a>(T c);
|
||||
<a name="l00077"></a>00077 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">gtc::type_precision::f32vec3</a> <a class="code" href="a00252.html#gaf4c3d60e3f865187ab8dc7e1e53b061b" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension...">f32_xrgb_cast</a>(T c);
|
||||
<a name="l00078"></a>00078 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">gtc::type_precision::f32vec3</a> <a class="code" href="a00252.html#ga78abdd7116c8c25e29219b32c4bb937e" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension...">f32_bgrx_cast</a>(T c);
|
||||
<a name="l00079"></a>00079 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">gtc::type_precision::f32vec3</a> <a class="code" href="a00252.html#ga46e9df97410a559a816737a331db62dd" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension...">f32_xbgr_cast</a>(T c);
|
||||
<a name="l00080"></a>00080
|
||||
<a name="l00081"></a>00081 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">gtc::type_precision::f32vec4</a> <a class="code" href="a00252.html#ga84d5bcccb37c9788bfb0fa00bea4b0fe" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension...">f32_rgba_cast</a>(T c);
|
||||
<a name="l00082"></a>00082 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">gtc::type_precision::f32vec4</a> <a class="code" href="a00252.html#gaee24a081d5b7c84ffffdd66d12963c4c" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension...">f32_argb_cast</a>(T c);
|
||||
<a name="l00083"></a>00083 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">gtc::type_precision::f32vec4</a> <a class="code" href="a00252.html#gadb328d5e9fff54f6b23dc29e1ce8591e" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension...">f32_bgra_cast</a>(T c);
|
||||
<a name="l00084"></a>00084 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">gtc::type_precision::f32vec4</a> <a class="code" href="a00252.html#ga95a33ffb1476bf675e9629301ec180b1" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension...">f32_abgr_cast</a>(T c);
|
||||
<a name="l00085"></a>00085
|
||||
<a name="l00086"></a>00086 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00279.html#gae5987a61b8c03d5c432a9e62f0b3efe1" title="Single-precision floating-point scalar. (from GLM_GTX_number_precision extension)">gtx::number_precision::f64vec1</a> <a class="code" href="a00252.html#gad2b4dbd955443cb15c731e4564f575e0" title="Conversion of a u8 or u16 value to a single channel floating value. (From GLM_GTX_color_cast extensio...">f64_channel_cast</a>(T a);
|
||||
<a name="l00087"></a>00087
|
||||
<a name="l00088"></a>00088 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">gtc::type_precision::f64vec3</a> <a class="code" href="a00252.html#ga16520961abfe743f698b2e80cc0dc33a" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension...">f64_rgbx_cast</a>(T c);
|
||||
<a name="l00089"></a>00089 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">gtc::type_precision::f64vec3</a> <a class="code" href="a00252.html#ga35d1e8fedde05c4b0bd6b26312fe3677" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension...">f64_xrgb_cast</a>(T c);
|
||||
<a name="l00090"></a>00090 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">gtc::type_precision::f64vec3</a> <a class="code" href="a00252.html#gabb6a7bcbd66735a86da1dedf7ea3d530" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension...">f64_bgrx_cast</a>(T c);
|
||||
<a name="l00091"></a>00091 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">gtc::type_precision::f64vec3</a> <a class="code" href="a00252.html#gaa2c0dd06608625935b2d940a8155a6ff" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension...">f64_xbgr_cast</a>(T c);
|
||||
<a name="l00092"></a>00092
|
||||
<a name="l00093"></a>00093 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">gtc::type_precision::f64vec4</a> <a class="code" href="a00252.html#gae915ae64c81df6ceacb793f9cd6eac40" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension...">f64_rgba_cast</a>(T c);
|
||||
<a name="l00094"></a>00094 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">gtc::type_precision::f64vec4</a> <a class="code" href="a00252.html#gab917debabb647fd4144b2d4cf3359737" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension...">f64_argb_cast</a>(T c);
|
||||
<a name="l00095"></a>00095 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">gtc::type_precision::f64vec4</a> <a class="code" href="a00252.html#gac954d9636b86e6a10e19ede77d4f387e" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension...">f64_bgra_cast</a>(T c);
|
||||
<a name="l00096"></a>00096 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">gtc::type_precision::f64vec4</a> <a class="code" href="a00252.html#ga42c1cf7dedeaa76629046e8abea5d698" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension...">f64_abgr_cast</a>(T c);
|
||||
<a name="l00097"></a>00097
|
||||
<a name="l00099"></a>00099 }<span class="comment">//namespace color_space</span>
|
||||
<a name="l00100"></a>00100 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00101"></a>00101 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00102"></a>00102
|
||||
<a name="l00103"></a>00103 <span class="preprocessor">#include "color_cast.inl"</span>
|
||||
<a name="l00104"></a>00104
|
||||
<a name="l00105"></a>00105 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::color_cast;}
|
||||
<a name="l00106"></a>00106
|
||||
<a name="l00107"></a>00107 <span class="preprocessor">#endif//glm_gtx_color_cast</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,105 +0,0 @@
|
||||
<!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>color_space.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">color_space.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2007-02-22</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/color_space.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_color_space</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_color_space</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_color_space extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00173.html">00025</a> <span class="keyword">namespace </span>color_space
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00033"></a>00033 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <a class="code" href="a00253.html#gaa84fde704746ed36b80df7bf521510c5" title="Converts a color from HSV color space to its color in RGB color space.">rgbColor</a>(
|
||||
<a name="l00034"></a>00034 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & hsvValue);
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00038"></a>00038 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00039"></a>00039 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <a class="code" href="a00253.html#ga20b1d59474b6588da10e72764711cf71" title="Converts a color from RGB color space to its color in HSV color space.">hsvColor</a>(
|
||||
<a name="l00040"></a>00040 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & rgbValue);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00044"></a>00044 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00045"></a>00045 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00253.html#gade937a20e420b352d33cce2e92c6fe10" title="Build a saturation matrix.">saturation</a>(
|
||||
<a name="l00046"></a>00046 valType <span class="keyword">const</span> s);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00051"></a>00051 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <a class="code" href="a00253.html#gade937a20e420b352d33cce2e92c6fe10" title="Build a saturation matrix.">saturation</a>(
|
||||
<a name="l00052"></a>00052 valType <span class="keyword">const</span> s,
|
||||
<a name="l00053"></a>00053 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & color);
|
||||
<a name="l00054"></a>00054
|
||||
<a name="l00057"></a>00057 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00058"></a>00058 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<valType></a> <a class="code" href="a00253.html#gade937a20e420b352d33cce2e92c6fe10" title="Build a saturation matrix.">saturation</a>(
|
||||
<a name="l00059"></a>00059 valType <span class="keyword">const</span> s,
|
||||
<a name="l00060"></a>00060 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<valType></a> <span class="keyword">const</span> & color);
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00064"></a>00064 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00065"></a>00065 valType <a class="code" href="a00253.html#ga205ff9aab7e86a3e434f1c49f0a2b234" title="Compute color luminosity associating ratios (0.33, 0.59, 0.11) to RGB canals.">luminosity</a>(
|
||||
<a name="l00066"></a>00066 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & color);
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00069"></a>00069 }<span class="comment">//namespace color_space</span>
|
||||
<a name="l00070"></a>00070 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00071"></a>00071 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00073"></a>00073 <span class="preprocessor">#include "color_space.inl"</span>
|
||||
<a name="l00074"></a>00074
|
||||
<a name="l00075"></a>00075 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::color_space;}
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00077"></a>00077 <span class="preprocessor">#endif//glm_gtx_color_space</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,95 +0,0 @@
|
||||
<!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>color_space_YCoCg.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">color_space_YCoCg.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-10-28</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-10-28</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/color_space_YCoCg.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_color_space_YCoCg</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_color_space_YCoCg</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_color_space_YCoCg extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00174.html">00025</a> <span class="keyword">namespace </span>color_space_YCoCg
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00033"></a>00033 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <a class="code" href="a00254.html#ga41820be771f6edb66eec3d3376bae693" title="Convert a color from RGB color space to YCoCg color space.">rgb2YCoCg</a>(
|
||||
<a name="l00034"></a>00034 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & <a class="code" href="a00253.html#gaa84fde704746ed36b80df7bf521510c5" title="Converts a color from HSV color space to its color in RGB color space.">rgbColor</a>);
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00038"></a>00038 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00039"></a>00039 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <a class="code" href="a00254.html#ga638451b1492ea464bcda5d1abb0db614" title="Convert a color from YCoCg color space to RGB color space.">YCoCg2rgb</a>(
|
||||
<a name="l00040"></a>00040 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & YCoCgColor);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00045"></a>00045 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00046"></a>00046 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <a class="code" href="a00254.html#ga3c8d61f4ce259ce76b44fe70f472c766" title="Convert a color from RGB color space to YCoCgR color space.">rgb2YCoCgR</a>(
|
||||
<a name="l00047"></a>00047 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & rgbColor);
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00052"></a>00052 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00053"></a>00053 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <a class="code" href="a00254.html#ga75497f0965bd4834d39a88c10dee12c4" title="Convert a color from YCoCgR color space to RGB color space.">YCoCgR2rgb</a>(
|
||||
<a name="l00054"></a>00054 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & YCoCgColor);
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00057"></a>00057 }<span class="comment">//namespace color_space_YCoCg</span>
|
||||
<a name="l00058"></a>00058 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00059"></a>00059 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00060"></a>00060
|
||||
<a name="l00061"></a>00061 <span class="preprocessor">#include "color_space_YCoCg.inl"</span>
|
||||
<a name="l00062"></a>00062
|
||||
<a name="l00063"></a>00063 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::color_space_YCoCg;}
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00065"></a>00065 <span class="preprocessor">#endif//glm_gtx_color_space_YCoCg</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,210 +0,0 @@
|
||||
<!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>compatibility.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">compatibility.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2007-01-24</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-10-24</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/compatibility.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTC_half_float</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_compatibility</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_compatibility</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "../gtc/half_float.hpp"</span>
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_compatibility extension included")</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor">#if(GLM_COMPILER & GLM_COMPILER_VC)</span>
|
||||
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#include <cfloat></span>
|
||||
<a name="l00027"></a>00027 <span class="preprocessor">#elif(GLM_COMPILER & GLM_COMPILER_GCC)</span>
|
||||
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#include <cmath></span>
|
||||
<a name="l00029"></a>00029 <span class="preprocessor">#endif//GLM_COMPILER</span>
|
||||
<a name="l00030"></a>00030 <span class="preprocessor"></span>
|
||||
<a name="l00031"></a>00031 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00032"></a>00032 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00033"></a><a class="code" href="a00175.html">00033</a> <span class="keyword">namespace </span>compatibility
|
||||
<a name="l00034"></a>00034 {
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a><a class="code" href="a00255.html#ga56463ea9166068ab33107e1cea942023">00038</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER T <a class="code" href="a00255.html#ga56463ea9166068ab33107e1cea942023" title="Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a...">lerp</a>(T x, T y, T a){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga11288dc43a2a1833766728a3eb81ac63">mix</a>(x, y, a);}
|
||||
<a name="l00039"></a><a class="code" href="a00255.html#ga5f7bfd8f1e917fd897a738177492c59a">00039</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00255.html#ga56463ea9166068ab33107e1cea942023" title="Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a...">lerp</a>(<span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& x, <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& y, T a){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga11288dc43a2a1833766728a3eb81ac63">mix</a>(x, y, a);}
|
||||
<a name="l00040"></a><a class="code" href="a00255.html#gae7298450eb0c1489eda07ccdfdcbf205">00040</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00255.html#ga56463ea9166068ab33107e1cea942023" title="Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a...">lerp</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& x, <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& y, T a){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga11288dc43a2a1833766728a3eb81ac63">mix</a>(x, y, a);}
|
||||
<a name="l00041"></a><a class="code" href="a00255.html#gafe1e12ad09189be637164559d225db78">00041</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00255.html#ga56463ea9166068ab33107e1cea942023" title="Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a...">lerp</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& x, <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& y, T a){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga11288dc43a2a1833766728a3eb81ac63">mix</a>(x, y, a);}
|
||||
<a name="l00042"></a><a class="code" href="a00255.html#ga221f6378c8c9f710edaceccb748f5b18">00042</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00255.html#ga56463ea9166068ab33107e1cea942023" title="Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a...">lerp</a>(<span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& x, <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& y, <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& a){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga11288dc43a2a1833766728a3eb81ac63">mix</a>(x, y, a);}
|
||||
<a name="l00043"></a><a class="code" href="a00255.html#gac6fa04956f007fbb8b4c51ba93d3a13a">00043</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00255.html#ga56463ea9166068ab33107e1cea942023" title="Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a...">lerp</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& x, <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& y, <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& a){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga11288dc43a2a1833766728a3eb81ac63">mix</a>(x, y, a);}
|
||||
<a name="l00044"></a><a class="code" href="a00255.html#ga466cc6c042c517982f69db928fd697cf">00044</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00255.html#ga56463ea9166068ab33107e1cea942023" title="Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a...">lerp</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& x, <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& y, <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& a){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga11288dc43a2a1833766728a3eb81ac63">mix</a>(x, y, a);}
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00046"></a><a class="code" href="a00255.html#gaa2afedf17ac7da10d95f383ea6be3124">00046</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER T <a class="code" href="a00255.html#gaa2afedf17ac7da10d95f383ea6be3124" title="Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)">saturate</a>(T x){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga8d9331a9bd3aa06e1d10eb7fa0dbb9e5" title="Returns min(max(x, minVal), maxVal) for each component in x.">clamp</a>(x, T(0), T(1));}
|
||||
<a name="l00047"></a><a class="code" href="a00255.html#gadcd5e59d930f0e9b26a78740b403412b">00047</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00255.html#gaa2afedf17ac7da10d95f383ea6be3124" title="Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)">saturate</a>(<span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& x){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga8d9331a9bd3aa06e1d10eb7fa0dbb9e5" title="Returns min(max(x, minVal), maxVal) for each component in x.">clamp</a>(x, T(0), T(1));}
|
||||
<a name="l00048"></a><a class="code" href="a00255.html#ga30791379500c2646301973bc133cb240">00048</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00255.html#gaa2afedf17ac7da10d95f383ea6be3124" title="Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)">saturate</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& x){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga8d9331a9bd3aa06e1d10eb7fa0dbb9e5" title="Returns min(max(x, minVal), maxVal) for each component in x.">clamp</a>(x, T(0), T(1));}
|
||||
<a name="l00049"></a><a class="code" href="a00255.html#ga10a1c2401e1051008c551c3a0eadf6e4">00049</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00255.html#gaa2afedf17ac7da10d95f383ea6be3124" title="Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)">saturate</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& x){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga8d9331a9bd3aa06e1d10eb7fa0dbb9e5" title="Returns min(max(x, minVal), maxVal) for each component in x.">clamp</a>(x, T(0), T(1));}
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00051"></a><a class="code" href="a00255.html#gacea44c6ab8e09b0616c58a514b1a9a81">00051</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER T <a class="code" href="a00255.html#gacea44c6ab8e09b0616c58a514b1a9a81" title="Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what q...">atan2</a>(T x, T y){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga32dbceedb2910e519860a225ae7f7450" title="Arc tangent.">atan</a>(x, y);}
|
||||
<a name="l00052"></a><a class="code" href="a00255.html#ga7aa5d9aae622970abb85b946ded2c64e">00052</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00255.html#gacea44c6ab8e09b0616c58a514b1a9a81" title="Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what q...">atan2</a>(<span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& x, <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& y){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga32dbceedb2910e519860a225ae7f7450" title="Arc tangent.">atan</a>(x, y);}
|
||||
<a name="l00053"></a><a class="code" href="a00255.html#ga4af7333865c906a5199342ec99ab6002">00053</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00255.html#gacea44c6ab8e09b0616c58a514b1a9a81" title="Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what q...">atan2</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& x, <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& y){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga32dbceedb2910e519860a225ae7f7450" title="Arc tangent.">atan</a>(x, y);}
|
||||
<a name="l00054"></a><a class="code" href="a00255.html#ga83dab39f1f74ed90e9511a5f88805a08">00054</a> <span class="keyword">template</span> <<span class="keyword">typename</span> T> GLM_FUNC_QUALIFIER <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00255.html#gacea44c6ab8e09b0616c58a514b1a9a81" title="Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what q...">atan2</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& x, <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& y){<span class="keywordflow">return</span> <a class="code" href="a00238.html#ga32dbceedb2910e519860a225ae7f7450" title="Arc tangent.">atan</a>(x, y);}
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056 <span class="keyword">template</span> <<span class="keyword">typename</span> genType> <span class="keywordtype">bool</span> <a class="code" href="a00255.html#ga048f613527d6146d30bd45cfb9593ba4" title="Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)...">isfinite</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00057"></a>00057 <span class="keyword">template</span> <<span class="keyword">typename</span> valType> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<bool></a> <a class="code" href="a00255.html#ga048f613527d6146d30bd45cfb9593ba4" title="Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)...">isfinite</a>(<span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<valType></a>& x);
|
||||
<a name="l00058"></a>00058 <span class="keyword">template</span> <<span class="keyword">typename</span> valType> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<bool></a> <a class="code" href="a00255.html#ga048f613527d6146d30bd45cfb9593ba4" title="Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)...">isfinite</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a>& x);
|
||||
<a name="l00059"></a>00059 <span class="keyword">template</span> <<span class="keyword">typename</span> valType> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<bool></a> <a class="code" href="a00255.html#ga048f613527d6146d30bd45cfb9593ba4" title="Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)...">isfinite</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<valType></a>& x);
|
||||
<a name="l00060"></a>00060
|
||||
<a name="l00061"></a>00061 <span class="keyword">template</span> <<span class="keyword">typename</span> genType> <span class="keywordtype">bool</span> <a class="code" href="a00255.html#gab262f10a801ed389ab19f064f7dee84d" title="Determines whether the given floating-point value is infinite. (From GLM_GTX_compatibility extension)...">isinf</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00062"></a>00062 <span class="keyword">template</span> <<span class="keyword">typename</span> genType> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<bool></a> <a class="code" href="a00255.html#gab262f10a801ed389ab19f064f7dee84d" title="Determines whether the given floating-point value is infinite. (From GLM_GTX_compatibility extension)...">isinf</a>(<span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<genType></a>& x);
|
||||
<a name="l00063"></a>00063 <span class="keyword">template</span> <<span class="keyword">typename</span> genType> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<bool></a> <a class="code" href="a00255.html#gab262f10a801ed389ab19f064f7dee84d" title="Determines whether the given floating-point value is infinite. (From GLM_GTX_compatibility extension)...">isinf</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<genType></a>& x);
|
||||
<a name="l00064"></a>00064 <span class="keyword">template</span> <<span class="keyword">typename</span> genType> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<bool></a> <a class="code" href="a00255.html#gab262f10a801ed389ab19f064f7dee84d" title="Determines whether the given floating-point value is infinite. (From GLM_GTX_compatibility extension)...">isinf</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<genType></a>& x);
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00066"></a>00066 <span class="keyword">template</span> <<span class="keyword">typename</span> genType> <span class="keywordtype">bool</span> <a class="code" href="a00255.html#gab221b862baf158dabffa0b6b5d3bee6d" title="Checks given floating-point value for not a number (NAN) (From GLM_GTX_compatibility extension)...">isnan</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00067"></a>00067 <span class="keyword">template</span> <<span class="keyword">typename</span> genType> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<bool></a> <a class="code" href="a00255.html#gab221b862baf158dabffa0b6b5d3bee6d" title="Checks given floating-point value for not a number (NAN) (From GLM_GTX_compatibility extension)...">isnan</a>(<span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<genType></a>& x);
|
||||
<a name="l00068"></a>00068 <span class="keyword">template</span> <<span class="keyword">typename</span> genType> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<bool></a> <a class="code" href="a00255.html#gab221b862baf158dabffa0b6b5d3bee6d" title="Checks given floating-point value for not a number (NAN) (From GLM_GTX_compatibility extension)...">isnan</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<genType></a>& x);
|
||||
<a name="l00069"></a>00069 <span class="keyword">template</span> <<span class="keyword">typename</span> genType> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<bool></a> <a class="code" href="a00255.html#gab221b862baf158dabffa0b6b5d3bee6d" title="Checks given floating-point value for not a number (NAN) (From GLM_GTX_compatibility extension)...">isnan</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<genType></a>& x);
|
||||
<a name="l00070"></a>00070
|
||||
<a name="l00071"></a><a class="code" href="a00255.html#gaddcd7aa2e30e61af5b38660613d3979e">00071</a> <span class="keyword">typedef</span> <span class="keywordtype">bool</span> <a class="code" href="a00255.html#gaddcd7aa2e30e61af5b38660613d3979e" title="boolean type with 1 component. (From GLM_GTX_compatibility extension)">bool1</a>;
|
||||
<a name="l00072"></a><a class="code" href="a00255.html#ga88cfb6bf63a7fd1f03fe5abeae2aec1d">00072</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<bool></a> <a class="code" href="a00255.html#ga88cfb6bf63a7fd1f03fe5abeae2aec1d" title="boolean type with 2 components. (From GLM_GTX_compatibility extension)">bool2</a>;
|
||||
<a name="l00073"></a><a class="code" href="a00255.html#gade36f151806e985eec29fdf96ae6a2bb">00073</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<bool></a> <a class="code" href="a00255.html#gade36f151806e985eec29fdf96ae6a2bb" title="boolean type with 3 components. (From GLM_GTX_compatibility extension)">bool3</a>;
|
||||
<a name="l00074"></a><a class="code" href="a00255.html#ga1ee8c362caed549a5a83fdd9db6ec6c2">00074</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<bool></a> <a class="code" href="a00255.html#ga1ee8c362caed549a5a83fdd9db6ec6c2" title="boolean type with 4 components. (From GLM_GTX_compatibility extension)">bool4</a>;
|
||||
<a name="l00075"></a>00075
|
||||
<a name="l00076"></a><a class="code" href="a00255.html#ga7f895c936f0c29c8729afbbf22806090">00076</a> <span class="keyword">typedef</span> <span class="keywordtype">bool</span> <a class="code" href="a00255.html#ga7f895c936f0c29c8729afbbf22806090" title="boolean matrix with 1 x 1 component. (From GLM_GTX_compatibility extension)">bool1x1</a>;
|
||||
<a name="l00077"></a><a class="code" href="a00255.html#ga51dfdd84c191d9433ebf5e626af2c1f9">00077</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<bool></a> <a class="code" href="a00255.html#ga51dfdd84c191d9433ebf5e626af2c1f9" title="boolean matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)">bool2x2</a>;
|
||||
<a name="l00078"></a><a class="code" href="a00255.html#ga3982a05435c6c2d492b747f8adf6b9e0">00078</a> <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3<bool></a> <a class="code" href="a00255.html#ga3982a05435c6c2d492b747f8adf6b9e0" title="boolean matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)">bool2x3</a>;
|
||||
<a name="l00079"></a><a class="code" href="a00255.html#ga78a505943e47244f4495d07e4884c318">00079</a> <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4<bool></a> <a class="code" href="a00255.html#ga78a505943e47244f4495d07e4884c318" title="boolean matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)">bool2x4</a>;
|
||||
<a name="l00080"></a><a class="code" href="a00255.html#gaf4e8c9209cfd75ac029f8d95e9520e2d">00080</a> <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2<bool></a> <a class="code" href="a00255.html#gaf4e8c9209cfd75ac029f8d95e9520e2d" title="boolean matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)">bool3x2</a>;
|
||||
<a name="l00081"></a><a class="code" href="a00255.html#ga977c0274e9364b129774aedb65b3dcbd">00081</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<bool></a> <a class="code" href="a00255.html#ga977c0274e9364b129774aedb65b3dcbd" title="boolean matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)">bool3x3</a>;
|
||||
<a name="l00082"></a><a class="code" href="a00255.html#ga5174a0758ee4bc91a51b1eb7b100a416">00082</a> <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4<bool></a> <a class="code" href="a00255.html#ga5174a0758ee4bc91a51b1eb7b100a416" title="boolean matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)">bool3x4</a>;
|
||||
<a name="l00083"></a><a class="code" href="a00255.html#ga590198580792550bff2a6bd7f811c8d9">00083</a> <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2<bool></a> <a class="code" href="a00255.html#ga590198580792550bff2a6bd7f811c8d9" title="boolean matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)">bool4x2</a>;
|
||||
<a name="l00084"></a><a class="code" href="a00255.html#gac8ac5c2c5db2f164ae2e25d1b9898a6b">00084</a> <span class="keyword">typedef</span> <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">detail::tmat4x3<bool></a> <a class="code" href="a00255.html#gac8ac5c2c5db2f164ae2e25d1b9898a6b" title="boolean matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)">bool4x3</a>;
|
||||
<a name="l00085"></a><a class="code" href="a00255.html#gac437f71eba4fabf6d7551f1889af2ea5">00085</a> <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<bool></a> <a class="code" href="a00255.html#gac437f71eba4fabf6d7551f1889af2ea5" title="boolean matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)">bool4x4</a>;
|
||||
<a name="l00086"></a>00086
|
||||
<a name="l00087"></a><a class="code" href="a00255.html#ga0670a2111b5e4a6410bd027fa0232fc3">00087</a> <span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="a00255.html#ga0670a2111b5e4a6410bd027fa0232fc3" title="integer vector with 1 component. (From GLM_GTX_compatibility extension)">int1</a>;
|
||||
<a name="l00088"></a><a class="code" href="a00255.html#ga96b72b048dd3d9eb7caa93f9589b46a0">00088</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<int></a> <a class="code" href="a00255.html#ga96b72b048dd3d9eb7caa93f9589b46a0" title="integer vector with 2 components. (From GLM_GTX_compatibility extension)">int2</a>;
|
||||
<a name="l00089"></a><a class="code" href="a00255.html#ga0e57fa71b1be1f6501d3985b7b7d4dac">00089</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<int></a> <a class="code" href="a00255.html#ga0e57fa71b1be1f6501d3985b7b7d4dac" title="integer vector with 3 components. (From GLM_GTX_compatibility extension)">int3</a>;
|
||||
<a name="l00090"></a><a class="code" href="a00255.html#ga827bb0abe63248b0ae292a83ff55097a">00090</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<int></a> <a class="code" href="a00255.html#ga827bb0abe63248b0ae292a83ff55097a" title="integer vector with 4 components. (From GLM_GTX_compatibility extension)">int4</a>;
|
||||
<a name="l00091"></a>00091
|
||||
<a name="l00092"></a><a class="code" href="a00255.html#ga056ffe02d3a45af626f8e62221881c7a">00092</a> <span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="a00255.html#ga056ffe02d3a45af626f8e62221881c7a" title="integer matrix with 1 component. (From GLM_GTX_compatibility extension)">int1x1</a>;
|
||||
<a name="l00093"></a><a class="code" href="a00255.html#gab7644293a70c1e329624f556b779edde">00093</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<int></a> <a class="code" href="a00255.html#gab7644293a70c1e329624f556b779edde" title="integer matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)">int2x2</a>;
|
||||
<a name="l00094"></a><a class="code" href="a00255.html#gaf2c5ace70f19d3916b43f25ab7ffbc95">00094</a> <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3<int></a> <a class="code" href="a00255.html#gaf2c5ace70f19d3916b43f25ab7ffbc95" title="integer matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)">int2x3</a>;
|
||||
<a name="l00095"></a><a class="code" href="a00255.html#ga20ba14d42f3856221a0eb5194184bcf9">00095</a> <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4<int></a> <a class="code" href="a00255.html#ga20ba14d42f3856221a0eb5194184bcf9" title="integer matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)">int2x4</a>;
|
||||
<a name="l00096"></a><a class="code" href="a00255.html#ga75bc457489f7d23f5ea56445c0b3fa3f">00096</a> <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2<int></a> <a class="code" href="a00255.html#ga75bc457489f7d23f5ea56445c0b3fa3f" title="integer matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)">int3x2</a>;
|
||||
<a name="l00097"></a><a class="code" href="a00255.html#ga90d6b84bdde0d8247774aac30909ed03">00097</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<int></a> <a class="code" href="a00255.html#ga90d6b84bdde0d8247774aac30909ed03" title="integer matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)">int3x3</a>;
|
||||
<a name="l00098"></a><a class="code" href="a00255.html#ga91da3b288518f40c78ee1d0e1fb1cdb3">00098</a> <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4<int></a> <a class="code" href="a00255.html#ga91da3b288518f40c78ee1d0e1fb1cdb3" title="integer matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)">int3x4</a>;
|
||||
<a name="l00099"></a><a class="code" href="a00255.html#ga9101cda6ad27c3d5aa596ef9baeca75d">00099</a> <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2<int></a> <a class="code" href="a00255.html#ga9101cda6ad27c3d5aa596ef9baeca75d" title="integer matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)">int4x2</a>;
|
||||
<a name="l00100"></a><a class="code" href="a00255.html#ga5f93d57c0c99fd11c353e952b107b036">00100</a> <span class="keyword">typedef</span> <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">detail::tmat4x3<int></a> <a class="code" href="a00255.html#ga5f93d57c0c99fd11c353e952b107b036" title="integer matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)">int4x3</a>;
|
||||
<a name="l00101"></a><a class="code" href="a00255.html#gacd4827b69f52f6486625bf65d23fe53f">00101</a> <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<int></a> <a class="code" href="a00255.html#gacd4827b69f52f6486625bf65d23fe53f" title="integer matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)">int4x4</a>;
|
||||
<a name="l00102"></a>00102
|
||||
<a name="l00103"></a><a class="code" href="a00255.html#gac92f2c2693fb34285be07e772fcf0a53">00103</a> <span class="keyword">typedef</span> <a class="code" href="a00009.html" title="16-bit floating point type.">gtc::half_float::half</a> <a class="code" href="a00255.html#gac92f2c2693fb34285be07e772fcf0a53" title="half-precision floating-point vector with 1 component. (From GLM_GTX_compatibility extension)...">half1</a>;
|
||||
<a name="l00104"></a><a class="code" href="a00255.html#gaf768e8598259bc50119150ebea01fdbb">00104</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<gtc::half_float::half></a> <a class="code" href="a00255.html#gaf768e8598259bc50119150ebea01fdbb" title="half-precision floating-point vector with 2 components. (From GLM_GTX_compatibility extension)...">half2</a>;
|
||||
<a name="l00105"></a><a class="code" href="a00255.html#gadb391aad07ab3f0a00d53a0a322fe52e">00105</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<gtc::half_float::half></a> <a class="code" href="a00255.html#gadb391aad07ab3f0a00d53a0a322fe52e" title="half-precision floating-point vector with 2 components. (From GLM_GTX_compatibility extension)...">half3</a>;
|
||||
<a name="l00106"></a><a class="code" href="a00255.html#gaa4906c782e978976545039046ed3d629">00106</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<gtc::half_float::half></a> <a class="code" href="a00255.html#gaa4906c782e978976545039046ed3d629" title="half-precision floating-point vector with 2 components. (From GLM_GTX_compatibility extension)...">half4</a>;
|
||||
<a name="l00107"></a>00107
|
||||
<a name="l00108"></a><a class="code" href="a00255.html#ga9117ea66da761db845b445c4e7e1c745">00108</a> <span class="keyword">typedef</span> <a class="code" href="a00009.html" title="16-bit floating point type.">gtc::half_float::half</a> <a class="code" href="a00255.html#ga9117ea66da761db845b445c4e7e1c745" title="half-precision floating-point matrix with 1 component. (From GLM_GTX_compatibility extension)...">half1x1</a>;
|
||||
<a name="l00109"></a><a class="code" href="a00255.html#gae04667191899a90d334e7585f341c523">00109</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<gtc::half_float::half></a> <a class="code" href="a00255.html#gae04667191899a90d334e7585f341c523" title="half-precision floating-point matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)...">half2x2</a>;
|
||||
<a name="l00110"></a><a class="code" href="a00255.html#ga44334615025353ffd16946ee83c96ebe">00110</a> <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3<gtc::half_float::half></a> <a class="code" href="a00255.html#ga44334615025353ffd16946ee83c96ebe" title="half-precision floating-point matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)...">half2x3</a>;
|
||||
<a name="l00111"></a><a class="code" href="a00255.html#gae0b63041228648f9223a421429c5a243">00111</a> <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4<gtc::half_float::half></a> <a class="code" href="a00255.html#gae0b63041228648f9223a421429c5a243" title="half-precision floating-point matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)...">half2x4</a>;
|
||||
<a name="l00112"></a><a class="code" href="a00255.html#gabb94c5e2a5c5091b7c65e132a02b2e55">00112</a> <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2<gtc::half_float::half></a> <a class="code" href="a00255.html#gabb94c5e2a5c5091b7c65e132a02b2e55" title="half-precision floating-point matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)...">half3x2</a>;
|
||||
<a name="l00113"></a><a class="code" href="a00255.html#ga2a4cf36c30efcd3358d617840ed8a3f2">00113</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<gtc::half_float::half></a> <a class="code" href="a00255.html#ga2a4cf36c30efcd3358d617840ed8a3f2" title="half-precision floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)...">half3x3</a>;
|
||||
<a name="l00114"></a><a class="code" href="a00255.html#gadecf6b2be379805949e6e74a24e2bdbd">00114</a> <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4<gtc::half_float::half></a> <a class="code" href="a00255.html#gadecf6b2be379805949e6e74a24e2bdbd" title="half-precision floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)...">half3x4</a>;
|
||||
<a name="l00115"></a><a class="code" href="a00255.html#ga34877ae24fd35deb8001cc358366e47f">00115</a> <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2<gtc::half_float::half></a> <a class="code" href="a00255.html#ga34877ae24fd35deb8001cc358366e47f" title="half-precision floating-point matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)...">half4x2</a>;
|
||||
<a name="l00116"></a><a class="code" href="a00255.html#gaae1ce7ae382a802a08180c21bfb2d863">00116</a> <span class="keyword">typedef</span> <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">detail::tmat4x3<gtc::half_float::half></a> <a class="code" href="a00255.html#gaae1ce7ae382a802a08180c21bfb2d863" title="half-precision floating-point matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)...">half4x3</a>;
|
||||
<a name="l00117"></a><a class="code" href="a00255.html#gad5c6e0603afbcd8ccf217fe2dca50cc1">00117</a> <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<gtc::half_float::half></a> <a class="code" href="a00255.html#gad5c6e0603afbcd8ccf217fe2dca50cc1" title="half-precision floating-point matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)...">half4x4</a>;
|
||||
<a name="l00118"></a>00118
|
||||
<a name="l00119"></a><a class="code" href="a00255.html#gaf5208d01f6c6fbcb7bb55d610b9c0ead">00119</a> <span class="keyword">typedef</span> <span class="keywordtype">float</span> <a class="code" href="a00255.html#gaf5208d01f6c6fbcb7bb55d610b9c0ead" title="single-precision floating-point vector with 1 component. (From GLM_GTX_compatibility extension)...">float1</a>;
|
||||
<a name="l00120"></a><a class="code" href="a00255.html#ga36aed7f41ff3a1be99f215754f43376f">00120</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<float></a> <a class="code" href="a00255.html#ga36aed7f41ff3a1be99f215754f43376f" title="single-precision floating-point vector with 2 components. (From GLM_GTX_compatibility extension)...">float2</a>;
|
||||
<a name="l00121"></a><a class="code" href="a00255.html#ga1fe9cc8caced9aa000c36ca3c0a046ab">00121</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<float></a> <a class="code" href="a00255.html#ga1fe9cc8caced9aa000c36ca3c0a046ab" title="single-precision floating-point vector with 3 components. (From GLM_GTX_compatibility extension)...">float3</a>;
|
||||
<a name="l00122"></a><a class="code" href="a00255.html#ga1b1ca9850faf4c3ffddf95093a17b49c">00122</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<float></a> <a class="code" href="a00255.html#ga1b1ca9850faf4c3ffddf95093a17b49c" title="single-precision floating-point vector with 4 components. (From GLM_GTX_compatibility extension)...">float4</a>;
|
||||
<a name="l00123"></a>00123
|
||||
<a name="l00124"></a><a class="code" href="a00255.html#ga73720b8dc4620835b17f74d428f98c0c">00124</a> <span class="keyword">typedef</span> <span class="keywordtype">float</span> <a class="code" href="a00255.html#ga73720b8dc4620835b17f74d428f98c0c" title="single-precision floating-point matrix with 1 component. (From GLM_GTX_compatibility extension)...">float1x1</a>;
|
||||
<a name="l00125"></a><a class="code" href="a00255.html#gaf8d19b6f81f5cb8151f37c66c15691fa">00125</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<float></a> <a class="code" href="a00255.html#gaf8d19b6f81f5cb8151f37c66c15691fa" title="single-precision floating-point matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)...">float2x2</a>;
|
||||
<a name="l00126"></a><a class="code" href="a00255.html#gaafc2b478b36de8b9da6fe1e0f88f68d4">00126</a> <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3<float></a> <a class="code" href="a00255.html#gaafc2b478b36de8b9da6fe1e0f88f68d4" title="single-precision floating-point matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)...">float2x3</a>;
|
||||
<a name="l00127"></a><a class="code" href="a00255.html#ga77d14ba22d90b0af72a1572ee1bd9458">00127</a> <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4<float></a> <a class="code" href="a00255.html#ga77d14ba22d90b0af72a1572ee1bd9458" title="single-precision floating-point matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)...">float2x4</a>;
|
||||
<a name="l00128"></a><a class="code" href="a00255.html#ga46c62307ff5e8418d27be225c1187e25">00128</a> <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2<float></a> <a class="code" href="a00255.html#ga46c62307ff5e8418d27be225c1187e25" title="single-precision floating-point matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)...">float3x2</a>;
|
||||
<a name="l00129"></a><a class="code" href="a00255.html#ga5e6e08a42341c82268a4a94a02f7b016">00129</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<float></a> <a class="code" href="a00255.html#ga5e6e08a42341c82268a4a94a02f7b016" title="single-precision floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)...">float3x3</a>;
|
||||
<a name="l00130"></a><a class="code" href="a00255.html#ga14a4142cbea2f8ade68c6c4ca0bca2e6">00130</a> <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4<float></a> <a class="code" href="a00255.html#ga14a4142cbea2f8ade68c6c4ca0bca2e6" title="single-precision floating-point matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)...">float3x4</a>;
|
||||
<a name="l00131"></a><a class="code" href="a00255.html#ga7d53a0bdb8ce3ea6f26483d03a93309c">00131</a> <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2<float></a> <a class="code" href="a00255.html#ga7d53a0bdb8ce3ea6f26483d03a93309c" title="single-precision floating-point matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)...">float4x2</a>;
|
||||
<a name="l00132"></a><a class="code" href="a00255.html#ga90ec9566c9961638c70e2ba2e3fd94fc">00132</a> <span class="keyword">typedef</span> <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">detail::tmat4x3<float></a> <a class="code" href="a00255.html#ga90ec9566c9961638c70e2ba2e3fd94fc" title="single-precision floating-point matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)...">float4x3</a>;
|
||||
<a name="l00133"></a><a class="code" href="a00255.html#ga1ab661a1b315e963ce81a7ebfb110aa7">00133</a> <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<float></a> <a class="code" href="a00255.html#ga1ab661a1b315e963ce81a7ebfb110aa7" title="single-precision floating-point matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)...">float4x4</a>;
|
||||
<a name="l00134"></a>00134
|
||||
<a name="l00135"></a><a class="code" href="a00255.html#ga20b861a9b6e2a300323671c57a02525b">00135</a> <span class="keyword">typedef</span> <span class="keywordtype">double</span> <a class="code" href="a00255.html#ga20b861a9b6e2a300323671c57a02525b" title="double-precision floating-point vector with 1 component. (From GLM_GTX_compatibility extension)...">double1</a>;
|
||||
<a name="l00136"></a><a class="code" href="a00255.html#ga7a2bed57d1cc7209ee6d027010bc96b6">00136</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<double></a> <a class="code" href="a00255.html#ga7a2bed57d1cc7209ee6d027010bc96b6" title="double-precision floating-point vector with 2 components. (From GLM_GTX_compatibility extension)...">double2</a>;
|
||||
<a name="l00137"></a><a class="code" href="a00255.html#gaed0358fe1eb696b655a13eac4ececb2a">00137</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<double></a> <a class="code" href="a00255.html#gaed0358fe1eb696b655a13eac4ececb2a" title="double-precision floating-point vector with 3 components. (From GLM_GTX_compatibility extension)...">double3</a>;
|
||||
<a name="l00138"></a><a class="code" href="a00255.html#gace0ba846c7443d0d56abb0ca3e61469d">00138</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<double></a> <a class="code" href="a00255.html#gace0ba846c7443d0d56abb0ca3e61469d" title="double-precision floating-point vector with 4 components. (From GLM_GTX_compatibility extension)...">double4</a>;
|
||||
<a name="l00139"></a>00139
|
||||
<a name="l00140"></a><a class="code" href="a00255.html#ga45f16a4dd0db1f199afaed9fd12fe9a8">00140</a> <span class="keyword">typedef</span> <span class="keywordtype">double</span> <a class="code" href="a00255.html#ga45f16a4dd0db1f199afaed9fd12fe9a8" title="double-precision floating-point matrix with 1 component. (From GLM_GTX_compatibility extension)...">double1x1</a>;
|
||||
<a name="l00141"></a><a class="code" href="a00255.html#ga96772f5981821b9e80c572481e37f220">00141</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<double></a> <a class="code" href="a00255.html#ga96772f5981821b9e80c572481e37f220" title="double-precision floating-point matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)...">double2x2</a>;
|
||||
<a name="l00142"></a><a class="code" href="a00255.html#ga07bbc143dfea7838be68d63c114317f4">00142</a> <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3<double></a> <a class="code" href="a00255.html#ga07bbc143dfea7838be68d63c114317f4" title="double-precision floating-point matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)...">double2x3</a>;
|
||||
<a name="l00143"></a><a class="code" href="a00255.html#ga1e68c0a16e5684f44d86faac2a7d6810">00143</a> <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4<double></a> <a class="code" href="a00255.html#ga1e68c0a16e5684f44d86faac2a7d6810" title="double-precision floating-point matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)...">double2x4</a>;
|
||||
<a name="l00144"></a><a class="code" href="a00255.html#ga6e8dd2531703ce00b253ddd3c0c6eaca">00144</a> <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2<double></a> <a class="code" href="a00255.html#ga6e8dd2531703ce00b253ddd3c0c6eaca" title="double-precision floating-point matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)...">double3x2</a>;
|
||||
<a name="l00145"></a><a class="code" href="a00255.html#ga5dfb1357edcef48fcfdf9908906ae086">00145</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<double></a> <a class="code" href="a00255.html#ga5dfb1357edcef48fcfdf9908906ae086" title="double-precision floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)...">double3x3</a>;
|
||||
<a name="l00146"></a><a class="code" href="a00255.html#ga3b83eafbc284acce070855469c39b991">00146</a> <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4<double></a> <a class="code" href="a00255.html#ga3b83eafbc284acce070855469c39b991" title="double-precision floating-point matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)...">double3x4</a>;
|
||||
<a name="l00147"></a><a class="code" href="a00255.html#ga19c9ec02aa62b78e9709c4b2e2ae6f35">00147</a> <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2<double></a> <a class="code" href="a00255.html#ga19c9ec02aa62b78e9709c4b2e2ae6f35" title="double-precision floating-point matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)...">double4x2</a>;
|
||||
<a name="l00148"></a><a class="code" href="a00255.html#ga53c7dc9532c324aefb75a5f08033cd12">00148</a> <span class="keyword">typedef</span> <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">detail::tmat4x3<double></a> <a class="code" href="a00255.html#ga53c7dc9532c324aefb75a5f08033cd12" title="double-precision floating-point matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)...">double4x3</a>;
|
||||
<a name="l00149"></a><a class="code" href="a00255.html#ga2cc8e4fa772bfc5c1cada72ee5cadaf8">00149</a> <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<double></a> <a class="code" href="a00255.html#ga2cc8e4fa772bfc5c1cada72ee5cadaf8" title="double-precision floating-point matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)...">double4x4</a>;
|
||||
<a name="l00150"></a>00150
|
||||
<a name="l00152"></a>00152 }<span class="comment">//namespace compatibility</span>
|
||||
<a name="l00153"></a>00153 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00154"></a>00154 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00155"></a>00155
|
||||
<a name="l00156"></a>00156 <span class="preprocessor">#include "compatibility.inl"</span>
|
||||
<a name="l00157"></a>00157
|
||||
<a name="l00158"></a>00158 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::compatibility;}
|
||||
<a name="l00159"></a>00159
|
||||
<a name="l00160"></a>00160 <span class="preprocessor">#endif//glm_gtx_compatibility</span>
|
||||
<a name="l00161"></a>00161 <span class="preprocessor"></span>
|
||||
<a name="l00162"></a>00162
|
||||
<a name="l00163"></a>00163
|
||||
<a name="l00164"></a>00164
|
||||
<a name="l00165"></a>00165
|
||||
<a name="l00166"></a>00166
|
||||
<a name="l00167"></a>00167
|
||||
<a name="l00168"></a>00168
|
||||
<a name="l00169"></a>00169
|
||||
<a name="l00170"></a>00170
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,95 +0,0 @@
|
||||
<!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>component_wise.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">component_wise.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2007-05-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2007-05-21</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/component_wise.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_component_wise</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_component_wise</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_component_wise extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00176.html">00025</a> <span class="keyword">namespace </span>component_wise
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00033"></a>00033 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00256.html#ga67c4614f0fc500f0d0f9db9b2d7f8c00" title="Add all vector components together.">compAdd</a>(
|
||||
<a name="l00034"></a>00034 genType <span class="keyword">const</span> & v);
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00038"></a>00038 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00039"></a>00039 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00256.html#ga5a504b61c83eb400b0b253b9984af52f" title="Multiply all vector components together.">compMul</a>(
|
||||
<a name="l00040"></a>00040 genType <span class="keyword">const</span> & v);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00044"></a>00044 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00045"></a>00045 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00256.html#ga62000aa6f70f216f84b771caeb64ea1d" title="Find the minimum value between single vector components.">compMin</a>(
|
||||
<a name="l00046"></a>00046 genType <span class="keyword">const</span> & v);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00051"></a>00051 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00256.html#gaf5600944ec0e04504a9577a483f05a50" title="Find the maximum value between single vector components.">compMax</a>(
|
||||
<a name="l00052"></a>00052 genType <span class="keyword">const</span> & v);
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00055"></a>00055 }<span class="comment">//namespace component_wise</span>
|
||||
<a name="l00056"></a>00056 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00057"></a>00057 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00058"></a>00058
|
||||
<a name="l00059"></a>00059 <span class="preprocessor">#include "component_wise.inl"</span>
|
||||
<a name="l00060"></a>00060
|
||||
<a name="l00061"></a>00061 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::component_wise;}
|
||||
<a name="l00062"></a>00062
|
||||
<a name="l00063"></a>00063 <span class="preprocessor">#endif//glm_gtx_component_wise</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,95 +0,0 @@
|
||||
<!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>epsilon.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">epsilon.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2006-11-13</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/epsilon.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTC_half_float</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">// - GLM_GTC_quaternion</span>
|
||||
<a name="l00014"></a>00014 <span class="comment"></span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor">#ifndef glm_gtx_epsilon</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_epsilon</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span>
|
||||
<a name="l00018"></a>00018 <span class="comment">// Dependency:</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#include "../gtc/half_float.hpp"</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#include "../gtc/quaternion.hpp"</span>
|
||||
<a name="l00022"></a>00022
|
||||
<a name="l00023"></a>00023 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_epsilon extension included")</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00026"></a>00026 <span class="preprocessor"></span>
|
||||
<a name="l00027"></a>00027 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00028"></a>00028 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00029"></a><a class="code" href="a00177.html">00029</a> <span class="keyword">namespace </span>epsilon
|
||||
<a name="l00030"></a>00030 {
|
||||
<a name="l00033"></a>00033
|
||||
<a name="l00036"></a>00036 <span class="keyword">template</span> <<span class="keyword">typename</span> genTypeT, <span class="keyword">typename</span> genTypeU>
|
||||
<a name="l00037"></a>00037 <span class="keywordtype">bool</span> <a class="code" href="a00257.html#gae56f18f757e2d08bae0d5ce0d8e59980" title="Returns the component-wise compare of |x - y| < epsilon.">equalEpsilon</a>(
|
||||
<a name="l00038"></a>00038 genTypeT <span class="keyword">const</span> & x,
|
||||
<a name="l00039"></a>00039 genTypeT <span class="keyword">const</span> & y,
|
||||
<a name="l00040"></a>00040 genTypeU <span class="keyword">const</span> & epsilon);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00044"></a>00044 <span class="keyword">template</span> <<span class="keyword">typename</span> genTypeT, <span class="keyword">typename</span> genTypeU>
|
||||
<a name="l00045"></a>00045 <span class="keywordtype">bool</span> <a class="code" href="a00257.html#ga2f60f387fd69452ec68d5b38682d87b8" title="Returns the component-wise compare of |x - y| >= epsilon.">notEqualEpsilon</a>(
|
||||
<a name="l00046"></a>00046 genTypeT <span class="keyword">const</span> & x,
|
||||
<a name="l00047"></a>00047 genTypeT <span class="keyword">const</span> & y,
|
||||
<a name="l00048"></a>00048 genTypeU <span class="keyword">const</span> & epsilon);
|
||||
<a name="l00049"></a>00049
|
||||
<a name="l00051"></a>00051 }<span class="comment">//namespace epsilon</span>
|
||||
<a name="l00052"></a>00052 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00053"></a>00053 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00054"></a>00054
|
||||
<a name="l00055"></a>00055 <span class="preprocessor">#include "epsilon.inl"</span>
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00057"></a>00057 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::epsilon;}
|
||||
<a name="l00058"></a>00058
|
||||
<a name="l00059"></a>00059 <span class="preprocessor">#endif//glm_gtx_epsilon</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,150 +0,0 @@
|
||||
<!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>euler_angles.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">euler_angles.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2007-08-14</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/euler_angles.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTC_half_float</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span><span class="comment">// ToDo:</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">// - mat2 mat2GTX(const vec2& angles) undefined</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">// - mat3 mat3GTX(const vec2& angles) undefined</span>
|
||||
<a name="l00017"></a>00017 <span class="comment"></span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef glm_gtx_euler_angles</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_euler_angles</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span>
|
||||
<a name="l00021"></a>00021 <span class="comment">// Dependency:</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor">#include "../gtc/half_float.hpp"</span>
|
||||
<a name="l00024"></a>00024
|
||||
<a name="l00025"></a>00025 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_euler_angles extension included")</span>
|
||||
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00028"></a>00028 <span class="preprocessor"></span>
|
||||
<a name="l00029"></a>00029 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00030"></a>00030 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00031"></a><a class="code" href="a00178.html">00031</a> <span class="keyword">namespace </span>euler_angles
|
||||
<a name="l00032"></a>00032 {
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00038"></a>00038 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00039"></a>00039 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00258.html#ga383b615b7c516d129d8a569caeb02e60" title="Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle X.">eulerAngleX</a>(
|
||||
<a name="l00040"></a>00040 valType <span class="keyword">const</span> & angleX);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00044"></a>00044 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00045"></a>00045 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00258.html#ga19efbeee8e1e51be3424fad187aada03" title="Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Y.">eulerAngleY</a>(
|
||||
<a name="l00046"></a>00046 valType <span class="keyword">const</span> & angleY);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00051"></a>00051 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00258.html#ga950aebf621ca275949b90845a1e76d79" title="Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Z.">eulerAngleZ</a>(
|
||||
<a name="l00052"></a>00052 valType <span class="keyword">const</span> & angleZ);
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00056"></a>00056 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00057"></a>00057 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00258.html#gab31953fcb1febf66c095f80928c11880" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y).">eulerAngleXY</a>(
|
||||
<a name="l00058"></a>00058 valType <span class="keyword">const</span> & angleX,
|
||||
<a name="l00059"></a>00059 valType <span class="keyword">const</span> & angleY);
|
||||
<a name="l00060"></a>00060
|
||||
<a name="l00063"></a>00063 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00064"></a>00064 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00258.html#gac7eb231dc5b6519dcd1e28f8662d0db6" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X).">eulerAngleYX</a>(
|
||||
<a name="l00065"></a>00065 valType <span class="keyword">const</span> & angleY,
|
||||
<a name="l00066"></a>00066 valType <span class="keyword">const</span> & angleX);
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00070"></a>00070 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00071"></a>00071 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00258.html#gaacdf1305fa3190de23ebff5f717d5b1a" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z).">eulerAngleXZ</a>(
|
||||
<a name="l00072"></a>00072 valType <span class="keyword">const</span> & angleX,
|
||||
<a name="l00073"></a>00073 valType <span class="keyword">const</span> & angleZ);
|
||||
<a name="l00074"></a>00074
|
||||
<a name="l00077"></a>00077 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00078"></a>00078 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00258.html#ga5afd9174575eab4105c9e3c07a9f68f7" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X).">eulerAngleZX</a>(
|
||||
<a name="l00079"></a>00079 valType <span class="keyword">const</span> & angleZ,
|
||||
<a name="l00080"></a>00080 valType <span class="keyword">const</span> & angleX);
|
||||
<a name="l00081"></a>00081
|
||||
<a name="l00084"></a>00084 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00085"></a>00085 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00258.html#gac528b349b40a8c1d1b34c4a17221bb48" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z).">eulerAngleYZ</a>(
|
||||
<a name="l00086"></a>00086 valType <span class="keyword">const</span> & angleY,
|
||||
<a name="l00087"></a>00087 valType <span class="keyword">const</span> & angleZ);
|
||||
<a name="l00088"></a>00088
|
||||
<a name="l00091"></a>00091 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00092"></a>00092 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00258.html#gade7193b3d889285671cdfafd62339a87" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y).">eulerAngleZY</a>(
|
||||
<a name="l00093"></a>00093 valType <span class="keyword">const</span> & angleZ,
|
||||
<a name="l00094"></a>00094 valType <span class="keyword">const</span> & angleY);
|
||||
<a name="l00095"></a>00095
|
||||
<a name="l00098"></a>00098 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00099"></a>00099 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00258.html#ga9a1c23259481176631e5910b8a294c0c" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z).">eulerAngleYXZ</a>(
|
||||
<a name="l00100"></a>00100 valType <span class="keyword">const</span> & <a class="code" href="a00286.html#ga4795f1cc522d82d672f7be9a405583c4" title="Returns yaw value of euler angles in degrees.">yaw</a>,
|
||||
<a name="l00101"></a>00101 valType <span class="keyword">const</span> & <a class="code" href="a00286.html#gafad23e37f1723bbbbd7f9498cd729126" title="Returns pitch value of euler angles in degrees.">pitch</a>,
|
||||
<a name="l00102"></a>00102 valType <span class="keyword">const</span> & <a class="code" href="a00286.html#ga60a4f955b2836d85f3d21ded84879926" title="Returns roll value of euler angles in degrees.">roll</a>);
|
||||
<a name="l00103"></a>00103
|
||||
<a name="l00106"></a>00106 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00107"></a>00107 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00258.html#gab21847188e03d21037f895642252dcc7" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z).">yawPitchRoll</a>(
|
||||
<a name="l00108"></a>00108 valType <span class="keyword">const</span> & yaw,
|
||||
<a name="l00109"></a>00109 valType <span class="keyword">const</span> & pitch,
|
||||
<a name="l00110"></a>00110 valType <span class="keyword">const</span> & roll);
|
||||
<a name="l00111"></a>00111
|
||||
<a name="l00114"></a>00114 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00115"></a>00115 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a> <a class="code" href="a00258.html#ga6b666a8d6dede8301520d023d0e96470" title="Creates a 2D 2 * 2 rotation matrix from an euler angle.">orientate2</a>(T <span class="keyword">const</span> & <a class="code" href="a00286.html#ga6a3387a7d60728f60d86546b2f4d4d30" title="Returns the quaternion rotation angle.">angle</a>);
|
||||
<a name="l00116"></a>00116
|
||||
<a name="l00119"></a>00119 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00120"></a>00120 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00258.html#gaabc9340ff9d773e8117f2bed0b1bcacd" title="Creates a 2D 4 * 4 homogeneous rotation matrix from an euler angle.">orientate3</a>(T <span class="keyword">const</span> & angle);
|
||||
<a name="l00121"></a>00121
|
||||
<a name="l00124"></a>00124 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00125"></a>00125 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00258.html#gaabc9340ff9d773e8117f2bed0b1bcacd" title="Creates a 2D 4 * 4 homogeneous rotation matrix from an euler angle.">orientate3</a>(<a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & angles);
|
||||
<a name="l00126"></a>00126
|
||||
<a name="l00129"></a>00129 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00130"></a>00130 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00258.html#gac9b9ee10382d273e6f2497f0c34ba125" title="Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z).">orientate4</a>(<a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & angles);
|
||||
<a name="l00131"></a>00131
|
||||
<a name="l00133"></a>00133 }<span class="comment">//namespace euler_angles</span>
|
||||
<a name="l00134"></a>00134 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00135"></a>00135 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00136"></a>00136
|
||||
<a name="l00137"></a>00137 <span class="preprocessor">#include "euler_angles.inl"</span>
|
||||
<a name="l00138"></a>00138
|
||||
<a name="l00139"></a>00139 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::euler_angles;}
|
||||
<a name="l00140"></a>00140
|
||||
<a name="l00141"></a>00141 <span class="preprocessor">#endif//glm_gtx_euler_angles</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,141 +0,0 @@
|
||||
<!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>ext.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">ext.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-05-01</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-12-13</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/ext.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_ext</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_ext</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_EXT_INCLUDED_DISPLAYED))</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor"># define GLM_MESSAGE_EXT_INCLUDED_DISPLAYED</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: All extensions included (not recommanded)")</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_MESSAGES</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "./gtc/half_float.hpp"</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "./gtc/matrix_access.hpp"</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#include "./gtc/matrix_integer.hpp"</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#include "./gtc/matrix_inverse.hpp"</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor">#include "./gtc/matrix_transform.hpp"</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor">#include "./gtc/quaternion.hpp"</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor">#include "./gtc/swizzle.hpp"</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor">#include "./gtc/type_precision.hpp"</span>
|
||||
<a name="l00026"></a>00026 <span class="preprocessor">#include "./gtc/type_ptr.hpp"</span>
|
||||
<a name="l00027"></a>00027
|
||||
<a name="l00028"></a>00028 <span class="preprocessor">#include "./gtx/associated_min_max.hpp"</span>
|
||||
<a name="l00029"></a>00029 <span class="preprocessor">#include "./gtx/bit.hpp"</span>
|
||||
<a name="l00030"></a>00030 <span class="preprocessor">#include "./gtx/closest_point.hpp"</span>
|
||||
<a name="l00031"></a>00031 <span class="preprocessor">#include "./gtx/color_cast.hpp"</span>
|
||||
<a name="l00032"></a>00032 <span class="preprocessor">#include "./gtx/color_space.hpp"</span>
|
||||
<a name="l00033"></a>00033 <span class="preprocessor">#include "./gtx/color_space_YCoCg.hpp"</span>
|
||||
<a name="l00034"></a>00034 <span class="preprocessor">#include "./gtx/compatibility.hpp"</span>
|
||||
<a name="l00035"></a>00035 <span class="preprocessor">#include "./gtx/component_wise.hpp"</span>
|
||||
<a name="l00036"></a>00036 <span class="preprocessor">#include "./gtx/epsilon.hpp"</span>
|
||||
<a name="l00037"></a>00037 <span class="preprocessor">#include "./gtx/euler_angles.hpp"</span>
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#include "./gtx/extend.hpp"</span>
|
||||
<a name="l00039"></a>00039 <span class="preprocessor">#include "./gtx/extented_min_max.hpp"</span>
|
||||
<a name="l00040"></a>00040 <span class="preprocessor">#include "./gtx/fast_exponential.hpp"</span>
|
||||
<a name="l00041"></a>00041 <span class="preprocessor">#include "./gtx/fast_square_root.hpp"</span>
|
||||
<a name="l00042"></a>00042 <span class="preprocessor">#include "./gtx/fast_trigonometry.hpp"</span>
|
||||
<a name="l00043"></a>00043 <span class="preprocessor">#include "./gtx/gradient_paint.hpp"</span>
|
||||
<a name="l00044"></a>00044 <span class="preprocessor">#include "./gtx/handed_coordinate_space.hpp"</span>
|
||||
<a name="l00045"></a>00045 <span class="preprocessor">#include "./gtx/inertia.hpp"</span>
|
||||
<a name="l00046"></a>00046 <span class="preprocessor">#include "./gtx/int_10_10_10_2.hpp"</span>
|
||||
<a name="l00047"></a>00047 <span class="preprocessor">#include "./gtx/integer.hpp"</span>
|
||||
<a name="l00048"></a>00048 <span class="preprocessor">#include "./gtx/intersect.hpp"</span>
|
||||
<a name="l00049"></a>00049 <span class="preprocessor">#include "./gtx/log_base.hpp"</span>
|
||||
<a name="l00050"></a>00050 <span class="preprocessor">#include "./gtx/matrix_cross_product.hpp"</span>
|
||||
<a name="l00051"></a>00051 <span class="preprocessor">#include "./gtx/matrix_interpolation.hpp"</span>
|
||||
<a name="l00052"></a>00052 <span class="preprocessor">#include "./gtx/matrix_major_storage.hpp"</span>
|
||||
<a name="l00053"></a>00053 <span class="preprocessor">#include "./gtx/matrix_operation.hpp"</span>
|
||||
<a name="l00054"></a>00054 <span class="preprocessor">#include "./gtx/matrix_query.hpp"</span>
|
||||
<a name="l00055"></a>00055 <span class="preprocessor">#include "./gtx/mixed_product.hpp"</span>
|
||||
<a name="l00056"></a>00056 <span class="preprocessor">#include "./gtx/multiple.hpp"</span>
|
||||
<a name="l00057"></a>00057 <span class="preprocessor">#include "./gtx/noise.hpp"</span>
|
||||
<a name="l00058"></a>00058 <span class="preprocessor">#include "./gtx/norm.hpp"</span>
|
||||
<a name="l00059"></a>00059 <span class="preprocessor">#include "./gtx/normal.hpp"</span>
|
||||
<a name="l00060"></a>00060 <span class="preprocessor">#include "./gtx/normalize_dot.hpp"</span>
|
||||
<a name="l00061"></a>00061 <span class="preprocessor">#include "./gtx/number_precision.hpp"</span>
|
||||
<a name="l00062"></a>00062 <span class="preprocessor">#include "./gtx/ocl_type.hpp"</span>
|
||||
<a name="l00063"></a>00063 <span class="preprocessor">#include "./gtx/optimum_pow.hpp"</span>
|
||||
<a name="l00064"></a>00064 <span class="preprocessor">#include "./gtx/orthonormalize.hpp"</span>
|
||||
<a name="l00065"></a>00065 <span class="preprocessor">#include "./gtx/perpendicular.hpp"</span>
|
||||
<a name="l00066"></a>00066 <span class="preprocessor">#include "./gtx/polar_coordinates.hpp"</span>
|
||||
<a name="l00067"></a>00067 <span class="preprocessor">#include "./gtx/projection.hpp"</span>
|
||||
<a name="l00068"></a>00068 <span class="preprocessor">#include "./gtx/quaternion.hpp"</span>
|
||||
<a name="l00069"></a>00069 <span class="preprocessor">#include "./gtx/random.hpp"</span>
|
||||
<a name="l00070"></a>00070 <span class="preprocessor">#include "./gtx/raw_data.hpp"</span>
|
||||
<a name="l00071"></a>00071 <span class="preprocessor">#include "./gtx/reciprocal.hpp"</span>
|
||||
<a name="l00072"></a>00072 <span class="preprocessor">#include "./gtx/rotate_vector.hpp"</span>
|
||||
<a name="l00073"></a>00073 <span class="preprocessor">#include "./gtx/spline.hpp"</span>
|
||||
<a name="l00074"></a>00074 <span class="preprocessor">#include "./gtx/std_based_type.hpp"</span>
|
||||
<a name="l00075"></a>00075 <span class="preprocessor">#include "./gtx/string_cast.hpp"</span>
|
||||
<a name="l00076"></a>00076 <span class="preprocessor">#include "./gtx/transform.hpp"</span>
|
||||
<a name="l00077"></a>00077 <span class="preprocessor">#include "./gtx/transform2.hpp"</span>
|
||||
<a name="l00078"></a>00078 <span class="preprocessor">#include "./gtx/ulp.hpp"</span>
|
||||
<a name="l00079"></a>00079 <span class="preprocessor">#include "./gtx/unsigned_int.hpp"</span>
|
||||
<a name="l00080"></a>00080 <span class="preprocessor">#include "./gtx/vec1.hpp"</span>
|
||||
<a name="l00081"></a>00081 <span class="preprocessor">#include "./gtx/vector_access.hpp"</span>
|
||||
<a name="l00082"></a>00082 <span class="preprocessor">#include "./gtx/vector_angle.hpp"</span>
|
||||
<a name="l00083"></a>00083 <span class="preprocessor">#include "./gtx/vector_query.hpp"</span>
|
||||
<a name="l00084"></a>00084 <span class="preprocessor">#include "./gtx/verbose_operator.hpp"</span>
|
||||
<a name="l00085"></a>00085 <span class="preprocessor">#include "./gtx/wrap.hpp"</span>
|
||||
<a name="l00086"></a>00086
|
||||
<a name="l00087"></a>00087 <span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_SSE2)</span>
|
||||
<a name="l00088"></a>00088 <span class="preprocessor"></span><span class="preprocessor"># include "./gtx/simd_vec4.hpp"</span>
|
||||
<a name="l00089"></a>00089 <span class="preprocessor"># include "./gtx/simd_mat4.hpp"</span>
|
||||
<a name="l00090"></a>00090 <span class="preprocessor">#endif</span>
|
||||
<a name="l00091"></a>00091 <span class="preprocessor"></span>
|
||||
<a name="l00092"></a>00092 <span class="preprocessor">#include "./virtrev/xstream.hpp"</span>
|
||||
<a name="l00093"></a>00093
|
||||
<a name="l00094"></a>00094 <span class="comment">//const float goldenRatio = 1.618033988749894848f;</span>
|
||||
<a name="l00095"></a>00095 <span class="comment">//const float pi = 3.141592653589793238f;</span>
|
||||
<a name="l00096"></a>00096
|
||||
<a name="l00097"></a>00097 <span class="preprocessor">#endif //glm_ext</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,85 +0,0 @@
|
||||
<!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>extend.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">extend.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2006-01-07</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2006-11-13</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/extend.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_extend</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_extend</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_extend extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00179.html">00025</a> <span class="keyword">namespace </span><a class="code" href="a00259.html#ga9fe82185d36e8136fb2656bacf3d4a86" title="Extends of Length the Origin position using the (Source - Origin) direction.">extend</a>
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00033"></a>00033 genType <a class="code" href="a00259.html#ga9fe82185d36e8136fb2656bacf3d4a86" title="Extends of Length the Origin position using the (Source - Origin) direction.">extend</a>(
|
||||
<a name="l00034"></a>00034 genType <span class="keyword">const</span> & Origin,
|
||||
<a name="l00035"></a>00035 genType <span class="keyword">const</span> & Source,
|
||||
<a name="l00036"></a>00036 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> Length);
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00039"></a>00039 }<span class="comment">//namespace extend</span>
|
||||
<a name="l00040"></a>00040 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00041"></a>00041 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00043"></a>00043 <span class="preprocessor">#include "extend.inl"</span>
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span><a class="code" href="a00259.html#ga9fe82185d36e8136fb2656bacf3d4a86" title="Extends of Length the Origin position using the (Source - Origin) direction.">gtx::extend</a>;}
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a>00047 <span class="preprocessor">#endif//glm_gtx_extend</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,215 +0,0 @@
|
||||
<!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>extented_min_max.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">extented_min_max.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2007-03-14</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-19</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : gtx_extented_min_max.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTX_half_float</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_extented_min_max</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_extented_min_max</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "../gtc/half_float.hpp"</span>
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_extented_min_max extension included")</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span>
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00026"></a>00026 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00027"></a><a class="code" href="a00180.html">00027</a> <span class="keyword">namespace </span>extented_min_max
|
||||
<a name="l00028"></a>00028 {
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00032"></a>00032 <span class="comment">//< Return the minimum component-wise values of 3 inputs </span>
|
||||
<a name="l00033"></a>00033 <span class="comment">//< From GLM_GTX_extented_min_max extension</span>
|
||||
<a name="l00034"></a>00034 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00035"></a>00035 T <a class="code" href="a00238.html#gacbc721d96bff24d97ed7989d35f27067" title="Returns y if y < x; otherwise, it returns x.">min</a>(
|
||||
<a name="l00036"></a>00036 T <span class="keyword">const</span> & x,
|
||||
<a name="l00037"></a>00037 T <span class="keyword">const</span> & y,
|
||||
<a name="l00038"></a>00038 T <span class="keyword">const</span> & z);
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 <span class="comment">//< Return the minimum component-wise values of 3 inputs</span>
|
||||
<a name="l00041"></a>00041 <span class="comment">//< From GLM_GTX_extented_min_max extension</span>
|
||||
<a name="l00042"></a>00042 <span class="keyword">template</span>
|
||||
<a name="l00043"></a>00043 <
|
||||
<a name="l00044"></a>00044 <span class="keyword">typename</span> T,
|
||||
<a name="l00045"></a>00045 <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>C
|
||||
<a name="l00046"></a>00046 >
|
||||
<a name="l00047"></a>00047 C<T> min(
|
||||
<a name="l00048"></a>00048 C<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00049"></a>00049 <span class="keyword">typename</span> C<T>::value_type <span class="keyword">const</span> & y,
|
||||
<a name="l00050"></a>00050 <span class="keyword">typename</span> C<T>::value_type <span class="keyword">const</span> & z);
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="comment">//< Return the minimum component-wise values of 3 inputs </span>
|
||||
<a name="l00053"></a>00053 <span class="comment">//< From GLM_GTX_extented_min_max extension</span>
|
||||
<a name="l00054"></a>00054 <span class="keyword">template</span>
|
||||
<a name="l00055"></a>00055 <
|
||||
<a name="l00056"></a>00056 <span class="keyword">typename</span> T,
|
||||
<a name="l00057"></a>00057 <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>C
|
||||
<a name="l00058"></a>00058 >
|
||||
<a name="l00059"></a>00059 C<T> min(
|
||||
<a name="l00060"></a>00060 C<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00061"></a>00061 C<T> <span class="keyword">const</span> & y,
|
||||
<a name="l00062"></a>00062 C<T> <span class="keyword">const</span> & z);
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064 <span class="comment">//< Return the minimum component-wise values of 4 inputs </span>
|
||||
<a name="l00065"></a>00065 <span class="comment">//< From GLM_GTX_extented_min_max extension</span>
|
||||
<a name="l00066"></a>00066 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00067"></a>00067 T min(
|
||||
<a name="l00068"></a>00068 T <span class="keyword">const</span> & x,
|
||||
<a name="l00069"></a>00069 T <span class="keyword">const</span> & y,
|
||||
<a name="l00070"></a>00070 T <span class="keyword">const</span> & z,
|
||||
<a name="l00071"></a>00071 T <span class="keyword">const</span> & w);
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00073"></a>00073 <span class="comment">//< Return the minimum component-wise values of 4 inputs </span>
|
||||
<a name="l00074"></a>00074 <span class="comment">//< From GLM_GTX_extented_min_max extension</span>
|
||||
<a name="l00075"></a>00075 <span class="keyword">template</span>
|
||||
<a name="l00076"></a>00076 <
|
||||
<a name="l00077"></a>00077 <span class="keyword">typename</span> T,
|
||||
<a name="l00078"></a>00078 <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>C
|
||||
<a name="l00079"></a>00079 >
|
||||
<a name="l00080"></a>00080 C<T> min(
|
||||
<a name="l00081"></a>00081 C<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00082"></a>00082 <span class="keyword">typename</span> C<T>::value_type <span class="keyword">const</span> & y,
|
||||
<a name="l00083"></a>00083 <span class="keyword">typename</span> C<T>::value_type <span class="keyword">const</span> & z,
|
||||
<a name="l00084"></a>00084 <span class="keyword">typename</span> C<T>::value_type <span class="keyword">const</span> & w);
|
||||
<a name="l00085"></a>00085
|
||||
<a name="l00086"></a>00086 <span class="comment">//< Return the minimum component-wise values of 4 inputs</span>
|
||||
<a name="l00087"></a>00087 <span class="comment">//< From GLM_GTX_extented_min_max extension</span>
|
||||
<a name="l00088"></a>00088 <span class="keyword">template</span>
|
||||
<a name="l00089"></a>00089 <
|
||||
<a name="l00090"></a>00090 <span class="keyword">typename</span> T,
|
||||
<a name="l00091"></a>00091 <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>C
|
||||
<a name="l00092"></a>00092 >
|
||||
<a name="l00093"></a>00093 C<T> min(
|
||||
<a name="l00094"></a>00094 C<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00095"></a>00095 C<T> <span class="keyword">const</span> & y,
|
||||
<a name="l00096"></a>00096 C<T> <span class="keyword">const</span> & z,
|
||||
<a name="l00097"></a>00097 C<T> <span class="keyword">const</span> & w);
|
||||
<a name="l00098"></a>00098
|
||||
<a name="l00099"></a>00099 <span class="comment">//< Return the maximum component-wise values of 3 inputs </span>
|
||||
<a name="l00100"></a>00100 <span class="comment">//< From GLM_GTX_extented_min_max extension</span>
|
||||
<a name="l00101"></a>00101 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00102"></a>00102 T <a class="code" href="a00238.html#ga33a594380eeb7ac803c747298563d084" title="Returns y if x < y; otherwise, it returns x.">max</a>(
|
||||
<a name="l00103"></a>00103 T <span class="keyword">const</span> & x,
|
||||
<a name="l00104"></a>00104 T <span class="keyword">const</span> & y,
|
||||
<a name="l00105"></a>00105 T <span class="keyword">const</span> & z);
|
||||
<a name="l00106"></a>00106
|
||||
<a name="l00107"></a>00107 <span class="comment">//< Return the maximum component-wise values of 3 inputs</span>
|
||||
<a name="l00108"></a>00108 <span class="comment">//< From GLM_GTX_extented_min_max extension</span>
|
||||
<a name="l00109"></a>00109 <span class="keyword">template</span>
|
||||
<a name="l00110"></a>00110 <
|
||||
<a name="l00111"></a>00111 <span class="keyword">typename</span> T,
|
||||
<a name="l00112"></a>00112 <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>C
|
||||
<a name="l00113"></a>00113 >
|
||||
<a name="l00114"></a>00114 C<T> max(
|
||||
<a name="l00115"></a>00115 C<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00116"></a>00116 <span class="keyword">typename</span> C<T>::value_type <span class="keyword">const</span> & y,
|
||||
<a name="l00117"></a>00117 <span class="keyword">typename</span> C<T>::value_type <span class="keyword">const</span> & z);
|
||||
<a name="l00118"></a>00118
|
||||
<a name="l00119"></a>00119 <span class="comment">//< Return the maximum component-wise values of 3 inputs </span>
|
||||
<a name="l00120"></a>00120 <span class="comment">//< From GLM_GTX_extented_min_max extension</span>
|
||||
<a name="l00121"></a>00121 <span class="keyword">template</span>
|
||||
<a name="l00122"></a>00122 <
|
||||
<a name="l00123"></a>00123 <span class="keyword">typename</span> T,
|
||||
<a name="l00124"></a>00124 <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>C
|
||||
<a name="l00125"></a>00125 >
|
||||
<a name="l00126"></a>00126 C<T> max(
|
||||
<a name="l00127"></a>00127 C<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00128"></a>00128 C<T> <span class="keyword">const</span> & y,
|
||||
<a name="l00129"></a>00129 C<T> <span class="keyword">const</span> & z);
|
||||
<a name="l00130"></a>00130
|
||||
<a name="l00131"></a>00131 <span class="comment">//< Return the maximum component-wise values of 4 inputs</span>
|
||||
<a name="l00132"></a>00132 <span class="comment">//< From GLM_GTX_extented_min_max extension</span>
|
||||
<a name="l00133"></a>00133 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00134"></a>00134 T max(
|
||||
<a name="l00135"></a>00135 T <span class="keyword">const</span> & x,
|
||||
<a name="l00136"></a>00136 T <span class="keyword">const</span> & y,
|
||||
<a name="l00137"></a>00137 T <span class="keyword">const</span> & z,
|
||||
<a name="l00138"></a>00138 T <span class="keyword">const</span> & w);
|
||||
<a name="l00139"></a>00139
|
||||
<a name="l00140"></a>00140 <span class="comment">//< Return the maximum component-wise values of 4 inputs </span>
|
||||
<a name="l00141"></a>00141 <span class="comment">//< From GLM_GTX_extented_min_max extension</span>
|
||||
<a name="l00142"></a>00142 <span class="keyword">template</span>
|
||||
<a name="l00143"></a>00143 <
|
||||
<a name="l00144"></a>00144 <span class="keyword">typename</span> T,
|
||||
<a name="l00145"></a>00145 <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>C
|
||||
<a name="l00146"></a>00146 >
|
||||
<a name="l00147"></a>00147 C<T> max(
|
||||
<a name="l00148"></a>00148 C<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00149"></a>00149 <span class="keyword">typename</span> C<T>::value_type <span class="keyword">const</span> & y,
|
||||
<a name="l00150"></a>00150 <span class="keyword">typename</span> C<T>::value_type <span class="keyword">const</span> & z,
|
||||
<a name="l00151"></a>00151 <span class="keyword">typename</span> C<T>::value_type <span class="keyword">const</span> & w);
|
||||
<a name="l00152"></a>00152
|
||||
<a name="l00153"></a>00153 <span class="comment">//< Return the maximum component-wise values of 4 inputs </span>
|
||||
<a name="l00154"></a>00154 <span class="comment">//< From GLM_GTX_extented_min_max extension</span>
|
||||
<a name="l00155"></a>00155 <span class="keyword">template</span>
|
||||
<a name="l00156"></a>00156 <
|
||||
<a name="l00157"></a>00157 <span class="keyword">typename</span> T,
|
||||
<a name="l00158"></a>00158 <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>C
|
||||
<a name="l00159"></a>00159 >
|
||||
<a name="l00160"></a>00160 C<T> max(
|
||||
<a name="l00161"></a>00161 C<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00162"></a>00162 C<T> <span class="keyword">const</span> & y,
|
||||
<a name="l00163"></a>00163 C<T> <span class="keyword">const</span> & z,
|
||||
<a name="l00164"></a>00164 C<T> <span class="keyword">const</span> & w);
|
||||
<a name="l00165"></a>00165
|
||||
<a name="l00167"></a>00167 }<span class="comment">//namespace extented_min_max</span>
|
||||
<a name="l00168"></a>00168 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00169"></a>00169 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00170"></a>00170
|
||||
<a name="l00171"></a>00171 <span class="preprocessor">#include "extented_min_max.inl"</span>
|
||||
<a name="l00172"></a>00172
|
||||
<a name="l00173"></a>00173 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::extented_min_max;}
|
||||
<a name="l00174"></a>00174
|
||||
<a name="l00175"></a>00175 <span class="preprocessor">#endif//glm_gtx_extented_min_max</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,107 +0,0 @@
|
||||
<!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>fast_exponential.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">fast_exponential.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2006-01-09</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2006-11-13</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/fast_exponential.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTC_half_float</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_fast_exponential</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_fast_exponential</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "../gtc/half_float.hpp"</span>
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_fast_exponential extension included")</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span>
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00026"></a>00026 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00027"></a><a class="code" href="a00181.html">00027</a> <span class="keyword">namespace </span>fast_exponential
|
||||
<a name="l00028"></a>00028 {
|
||||
<a name="l00029"></a>00029 <span class="keyword">using namespace </span>gtc::half_float;
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00035"></a>00035 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00036"></a>00036 valType <a class="code" href="a00261.html#gaaf77117ea021fa1ece715d0b94dd8a2b" title="Faster than the common pow function but less accurate.">fastPow</a>(
|
||||
<a name="l00037"></a>00037 valType <span class="keyword">const</span> & x,
|
||||
<a name="l00038"></a>00038 valType <span class="keyword">const</span> & y);
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00042"></a>00042 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U>
|
||||
<a name="l00043"></a>00043 T <a class="code" href="a00261.html#gaaf77117ea021fa1ece715d0b94dd8a2b" title="Faster than the common pow function but less accurate.">fastPow</a>(
|
||||
<a name="l00044"></a>00044 <span class="keyword">const</span> T& x,
|
||||
<a name="l00045"></a>00045 <span class="keyword">const</span> U& y);
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00049"></a>00049 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00050"></a>00050 T <a class="code" href="a00261.html#ga10df16993c31fda159ebe8fc0d95167f" title="Faster than the common exp function but less accurate.">fastExp</a>(<span class="keyword">const</span> T& x);
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00054"></a>00054 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00055"></a>00055 T <a class="code" href="a00261.html#gaf0c2539c6843c1e0e514445bd4c4a72b" title="Faster than the common log function but less accurate.">fastLog</a>(<span class="keyword">const</span> T& x);
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00059"></a>00059 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00060"></a>00060 T <a class="code" href="a00261.html#ga12669721e13e183233ed5c6025dce5e4" title="Faster than the common exp2 function but less accurate.">fastExp2</a>(<span class="keyword">const</span> T& x);
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00064"></a>00064 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00065"></a>00065 T <a class="code" href="a00261.html#gaef27f6ec081ab71024019faa178d4506" title="Faster than the common log2 function but less accurate.">fastLog2</a>(<span class="keyword">const</span> T& x);
|
||||
<a name="l00066"></a>00066
|
||||
<a name="l00069"></a>00069 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00070"></a>00070 T <a class="code" href="a00261.html#ga23893e648b441fb48f8c0ab504cf8aeb" title="Faster than the common ln function but less accurate.">fastLn</a>(<span class="keyword">const</span> T& x);
|
||||
<a name="l00071"></a>00071
|
||||
<a name="l00073"></a>00073 }<span class="comment">//namespace fast_exponential</span>
|
||||
<a name="l00074"></a>00074 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00075"></a>00075 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00077"></a>00077 <span class="preprocessor">#include "fast_exponential.inl"</span>
|
||||
<a name="l00078"></a>00078
|
||||
<a name="l00079"></a>00079 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::fast_exponential;}
|
||||
<a name="l00080"></a>00080
|
||||
<a name="l00081"></a>00081 <span class="preprocessor">#endif//glm_gtx_fast_exponential</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,97 +0,0 @@
|
||||
<!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>fast_square_root.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">fast_square_root.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2006-01-04</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-10-07</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/fast_square_root.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span><span class="comment">// Note:</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">// - Sqrt optimisation based on Newton's method, </span>
|
||||
<a name="l00014"></a>00014 <span class="comment">// www.gamedev.net/community/forums/topic.asp?topic id=139956</span>
|
||||
<a name="l00016"></a>00016 <span class="comment"></span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef glm_gtx_fast_square_root</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_fast_square_root</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor"></span>
|
||||
<a name="l00020"></a>00020 <span class="comment">// Dependency:</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00022"></a>00022
|
||||
<a name="l00023"></a>00023 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_fast_square_root extension included")</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00026"></a>00026 <span class="preprocessor"></span>
|
||||
<a name="l00027"></a>00027 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00028"></a>00028 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00029"></a><a class="code" href="a00182.html">00029</a> <span class="keyword">namespace </span>fast_square_root
|
||||
<a name="l00030"></a>00030 {
|
||||
<a name="l00033"></a>00033
|
||||
<a name="l00036"></a>00036 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00037"></a>00037 genType <a class="code" href="a00262.html#gaced2a1b7a161290e4d401967607d56db" title="Faster than the common sqrt function but less accurate.">fastSqrt</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00041"></a>00041 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00042"></a>00042 genType <a class="code" href="a00262.html#ga1858a37f06c79e17f287bbaa8f75b08e" title="Faster than the common inversesqrt function but less accurate.">fastInverseSqrt</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00046"></a>00046 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00047"></a>00047 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00262.html#gada4490e940c0c4e08beab6db793f8934" title="Faster than the common length function but less accurate.">fastLength</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00051"></a>00051 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00052"></a>00052 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00262.html#ga68162c92de0e592216be943345169da7" title="Faster than the common distance function but less accurate.">fastDistance</a>(genType <span class="keyword">const</span> & x, genType <span class="keyword">const</span> & y);
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00056"></a>00056 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00057"></a>00057 genType <a class="code" href="a00262.html#ga7e785d24d7bbac63f273baf9af1160da" title="Faster than the common normalize function but less accurate.">fastNormalize</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00058"></a>00058
|
||||
<a name="l00060"></a>00060 }<span class="comment">// namespace fast_square_root</span>
|
||||
<a name="l00061"></a>00061 }<span class="comment">// namespace gtx</span>
|
||||
<a name="l00062"></a>00062 }<span class="comment">// namespace glm</span>
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064 <span class="preprocessor">#include "fast_square_root.inl"</span>
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00066"></a>00066 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::fast_square_root;}
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00068"></a>00068 <span class="preprocessor">#endif//glm_gtx_fast_square_root</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,100 +0,0 @@
|
||||
<!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>fast_trigonometry.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">fast_trigonometry.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2006-01-08</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2006-11-13</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/fast_trigonometry.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_fast_trigonometry</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_fast_trigonometry</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_fast_trigonometry extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00183.html">00025</a> <span class="keyword">namespace </span>fast_trigonometry
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00033"></a>00033 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00034"></a>00034 T <a class="code" href="a00263.html#ga0844ea62ea81d215b56449f1b3b4968a" title="Faster than the common sin function but less accurate.">fastSin</a>(<span class="keyword">const</span> T& <a class="code" href="a00286.html#ga6a3387a7d60728f60d86546b2f4d4d30" title="Returns the quaternion rotation angle.">angle</a>);
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00039"></a>00039 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00040"></a>00040 T <a class="code" href="a00263.html#ga53a9033f33561a2b7133326d721a05cc" title="Faster than the common cos function but less accurate.">fastCos</a>(<span class="keyword">const</span> T& angle);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00045"></a>00045 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00046"></a>00046 T <a class="code" href="a00263.html#ga311fc8d0d067bf3d229566aae8f81a1a" title="Faster than the common tan function but less accurate.">fastTan</a>(<span class="keyword">const</span> T& angle);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00051"></a>00051 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00052"></a>00052 T <a class="code" href="a00263.html#ga73073afdd18dce08727f232c892c5dcd" title="Faster than the common asin function but less accurate.">fastAsin</a>(<span class="keyword">const</span> T& angle);
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00057"></a>00057 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00058"></a>00058 T <a class="code" href="a00263.html#ga4a704d388edfa3912257b69184d730ba" title="Faster than the common acos function but less accurate.">fastAcos</a>(<span class="keyword">const</span> T& angle);
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00063"></a>00063 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00064"></a>00064 T <a class="code" href="a00263.html#gafae71c7958e50cf435f9e73ee4e579f7" title="Faster than the common atan function but less accurate.">fastAtan</a>(<span class="keyword">const</span> T& y, <span class="keyword">const</span> T& x);
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00069"></a>00069 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00070"></a>00070 T <a class="code" href="a00263.html#gafae71c7958e50cf435f9e73ee4e579f7" title="Faster than the common atan function but less accurate.">fastAtan</a>(<span class="keyword">const</span> T& angle);
|
||||
<a name="l00071"></a>00071
|
||||
<a name="l00073"></a>00073 }<span class="comment">//namespace fast_trigonometry</span>
|
||||
<a name="l00074"></a>00074 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00075"></a>00075 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00077"></a>00077 <span class="preprocessor">#include "fast_trigonometry.inl"</span>
|
||||
<a name="l00078"></a>00078
|
||||
<a name="l00079"></a>00079 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::fast_trigonometry;}
|
||||
<a name="l00080"></a>00080
|
||||
<a name="l00081"></a>00081 <span class="preprocessor">#endif//glm_gtx_fast_trigonometry</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,199 +0,0 @@
|
||||
<!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>func_common.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">func_common.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-03-08</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-01-26</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/func_common.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_func_common</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_func_common</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "_fixes.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>glm
|
||||
<a name="l00016"></a>00016 {
|
||||
<a name="l00017"></a><a class="code" href="a00144.html">00017</a> <span class="keyword">namespace </span>core{
|
||||
<a name="l00018"></a><a class="code" href="a00145.html">00018</a> <span class="keyword">namespace </span>function{
|
||||
<a name="l00019"></a>00019 <span class="keyword">namespace </span>common{
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00023"></a>00023
|
||||
<a name="l00028"></a>00028 <span class="keyword">template</span> <<span class="keyword">typename</span> genFIType>
|
||||
<a name="l00029"></a>00029 genFIType <a class="code" href="a00238.html#ga5206aa60ce61ad1d7d1b53d5028c7a2a" title="Returns x if x >= 0; otherwise, it returns -x.">abs</a>(genFIType <span class="keyword">const</span> & x);
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00035"></a>00035 <span class="keyword">template</span> <<span class="keyword">typename</span> genFIType>
|
||||
<a name="l00036"></a>00036 genFIType <a class="code" href="a00238.html#ga992a45e46af5dc123e688808d1bae48f" title="Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0.">sign</a>(genFIType <span class="keyword">const</span> & x);
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00042"></a>00042 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00043"></a>00043 genType <a class="code" href="a00238.html#ga4206a98e812c2bd4801e4d299c83f6c7" title="Returns a value equal to the nearest integer that is less then or equal to x.">floor</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00051"></a>00051 genType <a class="code" href="a00238.html#ga2303d814e83b34ee2d5f34fcff7fa275" title="Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolut...">trunc</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00061"></a>00061 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00062"></a>00062 genType <a class="code" href="a00238.html#gaa4cb0836cd9457ac6cedd3366333b16f" title="Returns a value equal to the nearest integer to x.">round</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00070"></a>00070 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00071"></a>00071 genType <a class="code" href="a00238.html#ga656ce625ba1dc1d137bfc7cc7b2ab50b" title="Returns a value equal to the nearest integer to x.">roundEven</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00078"></a>00078 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00079"></a>00079 genType <a class="code" href="a00238.html#ga828376ee58b02d80d91eee97c50323f8" title="Returns a value equal to the nearest integer that is greater than or equal to x.">ceil</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00080"></a>00080
|
||||
<a name="l00085"></a>00085 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00086"></a>00086 genType <a class="code" href="a00238.html#ga67dda5fd839bc489827be9e225847a45" title="Return x - floor(x).">fract</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00087"></a>00087
|
||||
<a name="l00093"></a>00093 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00094"></a>00094 genType <a class="code" href="a00238.html#ga73fa91f6041b135083b0dea6e88c7aba" title="Modulus.">mod</a>(
|
||||
<a name="l00095"></a>00095 genType <span class="keyword">const</span> & x,
|
||||
<a name="l00096"></a>00096 genType <span class="keyword">const</span> & y);
|
||||
<a name="l00097"></a>00097
|
||||
<a name="l00103"></a>00103 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00104"></a>00104 genType <a class="code" href="a00238.html#ga73fa91f6041b135083b0dea6e88c7aba" title="Modulus.">mod</a>(
|
||||
<a name="l00105"></a>00105 genType <span class="keyword">const</span> & x,
|
||||
<a name="l00106"></a>00106 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & y);
|
||||
<a name="l00107"></a>00107
|
||||
<a name="l00115"></a>00115 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00116"></a>00116 genType <a class="code" href="a00238.html#ga3f3cec79cc1542950cd4cddb7ab67584" title="Returns the fractional part of x and sets i to the integer part (as a whole number floating point val...">modf</a>(
|
||||
<a name="l00117"></a>00117 genType <span class="keyword">const</span> & x,
|
||||
<a name="l00118"></a>00118 genType & i);
|
||||
<a name="l00119"></a>00119
|
||||
<a name="l00124"></a>00124 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00125"></a>00125 genType <a class="code" href="a00238.html#gacbc721d96bff24d97ed7989d35f27067" title="Returns y if y < x; otherwise, it returns x.">min</a>(
|
||||
<a name="l00126"></a>00126 genType <span class="keyword">const</span> & x,
|
||||
<a name="l00127"></a>00127 genType <span class="keyword">const</span> & y);
|
||||
<a name="l00128"></a>00128
|
||||
<a name="l00129"></a>00129 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00130"></a>00130 genType <a class="code" href="a00238.html#gacbc721d96bff24d97ed7989d35f27067" title="Returns y if y < x; otherwise, it returns x.">min</a>(
|
||||
<a name="l00131"></a>00131 genType <span class="keyword">const</span> & x,
|
||||
<a name="l00132"></a>00132 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & y);
|
||||
<a name="l00133"></a>00133
|
||||
<a name="l00138"></a>00138 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00139"></a>00139 genType <a class="code" href="a00238.html#ga33a594380eeb7ac803c747298563d084" title="Returns y if x < y; otherwise, it returns x.">max</a>(
|
||||
<a name="l00140"></a>00140 genType <span class="keyword">const</span> & x,
|
||||
<a name="l00141"></a>00141 genType <span class="keyword">const</span> & y);
|
||||
<a name="l00142"></a>00142
|
||||
<a name="l00143"></a>00143 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00144"></a>00144 genType <a class="code" href="a00238.html#ga33a594380eeb7ac803c747298563d084" title="Returns y if x < y; otherwise, it returns x.">max</a>(
|
||||
<a name="l00145"></a>00145 genType <span class="keyword">const</span> & x,
|
||||
<a name="l00146"></a>00146 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & y);
|
||||
<a name="l00147"></a>00147
|
||||
<a name="l00153"></a>00153 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00154"></a>00154 genType <a class="code" href="a00238.html#ga8d9331a9bd3aa06e1d10eb7fa0dbb9e5" title="Returns min(max(x, minVal), maxVal) for each component in x.">clamp</a>(
|
||||
<a name="l00155"></a>00155 genType <span class="keyword">const</span> & x,
|
||||
<a name="l00156"></a>00156 genType <span class="keyword">const</span> & minVal,
|
||||
<a name="l00157"></a>00157 genType <span class="keyword">const</span> & maxVal);
|
||||
<a name="l00158"></a>00158
|
||||
<a name="l00159"></a>00159 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00160"></a>00160 genType <a class="code" href="a00238.html#ga8d9331a9bd3aa06e1d10eb7fa0dbb9e5" title="Returns min(max(x, minVal), maxVal) for each component in x.">clamp</a>(
|
||||
<a name="l00161"></a>00161 genType <span class="keyword">const</span> & x,
|
||||
<a name="l00162"></a>00162 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & minVal,
|
||||
<a name="l00163"></a>00163 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & maxVal);
|
||||
<a name="l00164"></a>00164
|
||||
<a name="l00189"></a>00189 <span class="comment">// \todo Test when 'a' is a boolean.</span>
|
||||
<a name="l00190"></a>00190 <span class="keyword">template</span> <<span class="keyword">typename</span> genTypeT, <span class="keyword">typename</span> genTypeU>
|
||||
<a name="l00191"></a>00191 genTypeT <a class="code" href="a00238.html#ga11288dc43a2a1833766728a3eb81ac63">mix</a>(genTypeT <span class="keyword">const</span> & x, genTypeT <span class="keyword">const</span> & y, genTypeU <span class="keyword">const</span> & a);
|
||||
<a name="l00192"></a>00192
|
||||
<a name="l00197"></a>00197 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00198"></a>00198 genType <a class="code" href="a00238.html#gaf1c0aac0585f62db8db44e407478c434" title="Returns 0.0 if x < edge, otherwise it returns 1.0.">step</a>(
|
||||
<a name="l00199"></a>00199 genType <span class="keyword">const</span> & edge,
|
||||
<a name="l00200"></a>00200 genType <span class="keyword">const</span> & x);
|
||||
<a name="l00201"></a>00201
|
||||
<a name="l00202"></a>00202 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00203"></a>00203 genType <a class="code" href="a00238.html#gaf1c0aac0585f62db8db44e407478c434" title="Returns 0.0 if x < edge, otherwise it returns 1.0.">step</a>(
|
||||
<a name="l00204"></a>00204 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & edge,
|
||||
<a name="l00205"></a>00205 genType <span class="keyword">const</span> & x);
|
||||
<a name="l00206"></a>00206
|
||||
<a name="l00219"></a>00219 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00220"></a>00220 genType <a class="code" href="a00238.html#gaec459c912160fa6d9c18acd52976bb4d" title="Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 a...">smoothstep</a>(
|
||||
<a name="l00221"></a>00221 genType <span class="keyword">const</span> & edge0,
|
||||
<a name="l00222"></a>00222 genType <span class="keyword">const</span> & edge1,
|
||||
<a name="l00223"></a>00223 genType <span class="keyword">const</span> & x);
|
||||
<a name="l00224"></a>00224
|
||||
<a name="l00225"></a>00225 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00226"></a>00226 genType <a class="code" href="a00238.html#gaec459c912160fa6d9c18acd52976bb4d" title="Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 a...">smoothstep</a>(
|
||||
<a name="l00227"></a>00227 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & edge0,
|
||||
<a name="l00228"></a>00228 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & edge1,
|
||||
<a name="l00229"></a>00229 genType <span class="keyword">const</span> & x);
|
||||
<a name="l00230"></a>00230
|
||||
<a name="l00239"></a>00239 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00240"></a>00240 <span class="keyword">typename</span> genType::bool_type <a class="code" href="a00238.html#ga873db92807cc955cf98030c94a342d5a" title="Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of...">isnan</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00241"></a>00241
|
||||
<a name="l00250"></a>00250 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00251"></a>00251 <span class="keyword">typename</span> genType::bool_type <a class="code" href="a00238.html#ga7194c89cf656614f231e11c46d906465" title="Returns true if x holds a positive infinity or negative infinity representation in the underlying imp...">isinf</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00252"></a>00252
|
||||
<a name="l00259"></a>00259 <span class="keyword">template</span> <<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType>
|
||||
<a name="l00260"></a>00260 genIType <a class="code" href="a00238.html#ga2508259e7d3093603f4c6d3c132a704c" title="Returns a signed integer value representing the encoding of a floating-point value.">floatBitsToInt</a>(genType <span class="keyword">const</span> & value);
|
||||
<a name="l00261"></a>00261
|
||||
<a name="l00268"></a>00268 <span class="keyword">template</span> <<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genUType>
|
||||
<a name="l00269"></a>00269 genUType <a class="code" href="a00238.html#ga17f59f3a2dd5b93e32ff1057be188681" title="Returns a unsigned integer value representing the encoding of a floating-point value.">floatBitsToUint</a>(genType <span class="keyword">const</span> & value);
|
||||
<a name="l00270"></a>00270
|
||||
<a name="l00279"></a>00279 <span class="keyword">template</span> <<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType>
|
||||
<a name="l00280"></a>00280 genType <a class="code" href="a00238.html#ga3b76eab7091983e936c894b1976e90be" title="Returns a floating-point value corresponding to a signed integer encoding of a floating-point value...">intBitsToFloat</a>(genIType <span class="keyword">const</span> & value);
|
||||
<a name="l00281"></a>00281
|
||||
<a name="l00290"></a>00290 <span class="keyword">template</span> <<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genUType>
|
||||
<a name="l00291"></a>00291 genType <a class="code" href="a00238.html#ga1a38039b00f182b6b22e909ea5a87bab" title="Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value...">uintBitsToFloat</a>(genUType <span class="keyword">const</span> & value);
|
||||
<a name="l00292"></a>00292
|
||||
<a name="l00297"></a>00297 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00298"></a>00298 genType <a class="code" href="a00238.html#gad0278428ad872e7be378c3b2ad66b0ba" title="Computes and returns a * b + c.">fma</a>(genType <span class="keyword">const</span> & a, genType <span class="keyword">const</span> & b, genType <span class="keyword">const</span> & c);
|
||||
<a name="l00299"></a>00299
|
||||
<a name="l00312"></a>00312 <span class="keyword">template</span> <<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType>
|
||||
<a name="l00313"></a>00313 genType <a class="code" href="a00238.html#ga51135c18fa3b70b67478e546258caa64" title="Splits x into a floating-point significand in the range [0.5, 1.0) and an integral exponent of two...">frexp</a>(genType <span class="keyword">const</span> & x, genIType & <a class="code" href="a00238.html#gac96b81360552e233031fd06390576ebf" title="Returns the natural exponentiation of x, i.e., e^x.">exp</a>);
|
||||
<a name="l00314"></a>00314
|
||||
<a name="l00324"></a>00324 <span class="keyword">template</span> <<span class="keyword">typename</span> genType, <span class="keyword">typename</span> genIType>
|
||||
<a name="l00325"></a>00325 genType <a class="code" href="a00238.html#gaa99c16ada9e61cca03a8a00938a3c330" title="Builds a floating-point number from x and the corresponding integral exponent of two in exp...">ldexp</a>(genType <span class="keyword">const</span> & x, genIType <span class="keyword">const</span> & exp);
|
||||
<a name="l00326"></a>00326
|
||||
<a name="l00328"></a>00328 }<span class="comment">//namespace common</span>
|
||||
<a name="l00329"></a>00329 }<span class="comment">//namespace function</span>
|
||||
<a name="l00330"></a>00330 }<span class="comment">//namespace core</span>
|
||||
<a name="l00331"></a>00331
|
||||
<a name="l00332"></a>00332 <span class="keyword">using namespace </span>core::function::common;
|
||||
<a name="l00333"></a>00333 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00334"></a>00334
|
||||
<a name="l00335"></a>00335 <span class="preprocessor">#include "func_common.inl"</span>
|
||||
<a name="l00336"></a>00336
|
||||
<a name="l00337"></a>00337 <span class="preprocessor">#endif//glm_core_func_common</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,95 +0,0 @@
|
||||
<!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>func_exponential.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">func_exponential.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-08-08</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-04</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/func_exponential.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_func_exponential</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_func_exponential</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="keyword">namespace </span>glm
|
||||
<a name="l00014"></a>00014 {
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>core{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>function{
|
||||
<a name="l00018"></a><a class="code" href="a00147.html">00018</a> <span class="keyword">namespace </span>exponential{
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00022"></a>00022
|
||||
<a name="l00027"></a>00027 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00028"></a>00028 genType <a class="code" href="a00238.html#ga8eb76dfbf0fed3397c0327915279f06f" title="Returns x raised to the y power.">pow</a>(genType <span class="keyword">const</span> & x, genType <span class="keyword">const</span> & y);
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00034"></a>00034 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00035"></a>00035 genType <a class="code" href="a00238.html#gac96b81360552e233031fd06390576ebf" title="Returns the natural exponentiation of x, i.e., e^x.">exp</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00043"></a>00043 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00044"></a>00044 genType <a class="code" href="a00238.html#ga50b7859bfe87c2f075fe7a04e4c68cc3" title="Returns the natural logarithm of x, i.e., returns the value y which satisfies the equation x = e^y...">log</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00051"></a>00051 genType <a class="code" href="a00238.html#ga79adbdfa6f2e6ce59816c9b0bd1aebe3" title="Returns 2 raised to the x power.">exp2</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00058"></a>00058 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00059"></a>00059 genType <a class="code" href="a00238.html#ga956c24e59912196d4b3714789e57c077" title="Returns the base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2 ^ y...">log2</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00060"></a>00060
|
||||
<a name="l00065"></a>00065 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00066"></a>00066 genType <a class="code" href="a00238.html#ga29d9d4ccbca8f2168ac6534fbb65cbad" title="Returns the positive square root of x.">sqrt</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00072"></a>00072 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00073"></a>00073 genType <a class="code" href="a00238.html#gadce520af7df2c97aea9f689ad620fabe" title="Returns the reciprocal of the positive square root of x.">inversesqrt</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00074"></a>00074
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00077"></a>00077 }<span class="comment">//namespace exponential</span>
|
||||
<a name="l00078"></a>00078 }<span class="comment">//namespace function</span>
|
||||
<a name="l00079"></a>00079 }<span class="comment">//namespace core</span>
|
||||
<a name="l00080"></a>00080
|
||||
<a name="l00081"></a>00081 <span class="keyword">using namespace </span>core::function::exponential;
|
||||
<a name="l00082"></a>00082 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00083"></a>00083
|
||||
<a name="l00084"></a>00084 <span class="preprocessor">#include "func_exponential.inl"</span>
|
||||
<a name="l00085"></a>00085
|
||||
<a name="l00086"></a>00086 <span class="preprocessor">#endif//glm_core_func_exponential</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,114 +0,0 @@
|
||||
<!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>func_geometric.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">func_geometric.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-08-03</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-04</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/func_geometric.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_func_geometric</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_func_geometric</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="keyword">namespace </span>glm
|
||||
<a name="l00014"></a>00014 {
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>core{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>function{
|
||||
<a name="l00017"></a>00017 <span class="keyword">namespace </span>geometric{
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00021"></a>00021
|
||||
<a name="l00026"></a>00026 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00027"></a>00027 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00238.html#ga10ee9a1d18c6da61cab61d8637d23847" title="Returns the length of x, i.e., sqrt(x * x).">length</a>(
|
||||
<a name="l00028"></a>00028 genType <span class="keyword">const</span> & x);
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00034"></a>00034 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00035"></a>00035 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00238.html#gaa7cb6dbe9b8224c25345f1fd6fc09e77" title="Returns the distance betwwen p0 and p1, i.e., length(p0 - p1).">distance</a>(
|
||||
<a name="l00036"></a>00036 genType <span class="keyword">const</span> & p0,
|
||||
<a name="l00037"></a>00037 genType <span class="keyword">const</span> & p1);
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00043"></a>00043 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00044"></a>00044 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00238.html#ga38e1f1538ac0fedc9d6ac14910105421" title="Returns the dot product of x and y, i.e., result = x * y.">dot</a>(
|
||||
<a name="l00045"></a>00045 genType <span class="keyword">const</span> & x,
|
||||
<a name="l00046"></a>00046 genType <span class="keyword">const</span> & y);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00052"></a>00052 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00053"></a>00053 detail::tvec3<T> <a class="code" href="a00238.html#ga63272179a066d755953bcfbe38666257" title="Returns the cross product of x and y.">cross</a>(
|
||||
<a name="l00054"></a>00054 detail::tvec3<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00055"></a>00055 detail::tvec3<T> <span class="keyword">const</span> & y);
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00061"></a>00061 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00062"></a>00062 genType <a class="code" href="a00238.html#ga07ff16965f11fa17122ac874ed492276" title="Returns a vector in the same direction as x but with length of 1.">normalize</a>(
|
||||
<a name="l00063"></a>00063 genType <span class="keyword">const</span> & x);
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00069"></a>00069 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00070"></a>00070 genType <a class="code" href="a00238.html#gad591e8f7b1a5e311d3439dda2bb82aea" title="If dot(Nref, I) < 0.0, return N, otherwise, return -N.">faceforward</a>(
|
||||
<a name="l00071"></a>00071 genType <span class="keyword">const</span> & N,
|
||||
<a name="l00072"></a>00072 genType <span class="keyword">const</span> & I,
|
||||
<a name="l00073"></a>00073 genType <span class="keyword">const</span> & Nref);
|
||||
<a name="l00074"></a>00074
|
||||
<a name="l00080"></a>00080 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00081"></a>00081 genType <a class="code" href="a00238.html#ga2863d2331eb3752a5a17244c604c1d07" title="For the incident vector I and surface orientation N, returns the reflection direction : result = I - ...">reflect</a>(
|
||||
<a name="l00082"></a>00082 genType <span class="keyword">const</span> & I,
|
||||
<a name="l00083"></a>00083 genType <span class="keyword">const</span> & N);
|
||||
<a name="l00084"></a>00084
|
||||
<a name="l00091"></a>00091 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00092"></a>00092 genType <a class="code" href="a00238.html#ga895392ad98499a450e2cc8579d76a84d" title="For the incident vector I and surface normal N, and the ratio of indices of refraction eta...">refract</a>(
|
||||
<a name="l00093"></a>00093 genType <span class="keyword">const</span> & I,
|
||||
<a name="l00094"></a>00094 genType <span class="keyword">const</span> & N,
|
||||
<a name="l00095"></a>00095 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & eta);
|
||||
<a name="l00096"></a>00096
|
||||
<a name="l00098"></a>00098
|
||||
<a name="l00099"></a>00099 }<span class="comment">//namespace geometric</span>
|
||||
<a name="l00100"></a>00100 }<span class="comment">//namespace function</span>
|
||||
<a name="l00101"></a>00101 }<span class="comment">//namespace core</span>
|
||||
<a name="l00102"></a>00102
|
||||
<a name="l00103"></a>00103 <span class="keyword">using namespace </span>core::function::geometric;
|
||||
<a name="l00104"></a>00104 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00105"></a>00105
|
||||
<a name="l00106"></a>00106 <span class="preprocessor">#include "func_geometric.inl"</span>
|
||||
<a name="l00107"></a>00107
|
||||
<a name="l00108"></a>00108 <span class="preprocessor">#endif//glm_core_func_geometric</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,126 +0,0 @@
|
||||
<!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>func_integer.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">func_integer.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2010-03-17</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-03-31</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/func_integer.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_func_integer</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_func_integer</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="keyword">namespace </span>glm
|
||||
<a name="l00014"></a>00014 {
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>core{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>function{
|
||||
<a name="l00018"></a><a class="code" href="a00149.html">00018</a> <span class="keyword">namespace </span>integer{
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00022"></a>00022
|
||||
<a name="l00029"></a>00029 <span class="keyword">template</span> <<span class="keyword">typename</span> genUType>
|
||||
<a name="l00030"></a>00030 genUType <a class="code" href="a00238.html#ga8d63fd56743cc93286f09742baed4002" title="Adds 32-bit unsigned integer x and y, returning the sum modulo pow(2, 32).">uaddCarry</a>(
|
||||
<a name="l00031"></a>00031 genUType <span class="keyword">const</span> & x,
|
||||
<a name="l00032"></a>00032 genUType <span class="keyword">const</span> & y,
|
||||
<a name="l00033"></a>00033 genUType & carry);
|
||||
<a name="l00034"></a>00034
|
||||
<a name="l00041"></a>00041 <span class="keyword">template</span> <<span class="keyword">typename</span> genUType>
|
||||
<a name="l00042"></a>00042 genUType <a class="code" href="a00238.html#ga5ea2ea51e7cf73056069ce7583d61560" title="Subtracts the 32-bit unsigned integer y from x, returning the difference if non-negative, or pow(2, 32) plus the difference otherwise.">usubBorrow</a>(
|
||||
<a name="l00043"></a>00043 genUType <span class="keyword">const</span> & x,
|
||||
<a name="l00044"></a>00044 genUType <span class="keyword">const</span> & y,
|
||||
<a name="l00045"></a>00045 genUType & borrow);
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00053"></a>00053 <span class="keyword">template</span> <<span class="keyword">typename</span> genUType>
|
||||
<a name="l00054"></a>00054 <span class="keywordtype">void</span> <a class="code" href="a00238.html#gad9b60d1c7e161b78682b7f8b071e213e" title="Multiplies 32-bit integers x and y, producing a 64-bit result.">umulExtended</a>(
|
||||
<a name="l00055"></a>00055 genUType <span class="keyword">const</span> & x,
|
||||
<a name="l00056"></a>00056 genUType <span class="keyword">const</span> & y,
|
||||
<a name="l00057"></a>00057 genUType & msb,
|
||||
<a name="l00058"></a>00058 genUType & lsb);
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00066"></a>00066 <span class="keyword">template</span> <<span class="keyword">typename</span> genIType>
|
||||
<a name="l00067"></a>00067 <span class="keywordtype">void</span> <a class="code" href="a00238.html#gac01a66145ce9472afb6a3bee837c0bd6" title="Multiplies 32-bit integers x and y, producing a 64-bit result.">imulExtended</a>(
|
||||
<a name="l00068"></a>00068 genIType <span class="keyword">const</span> & x,
|
||||
<a name="l00069"></a>00069 genIType <span class="keyword">const</span> & y,
|
||||
<a name="l00070"></a>00070 genIType & msb,
|
||||
<a name="l00071"></a>00071 genIType & lsb);
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00086"></a>00086 <span class="keyword">template</span> <<span class="keyword">typename</span> genIUType>
|
||||
<a name="l00087"></a>00087 genIUType <a class="code" href="a00238.html#ga3b4804e700ade895189ea8bde142c822" title="Extracts bits [offset, offset + bits - 1] from value, returning them in the least significant bits of...">bitfieldExtract</a>(
|
||||
<a name="l00088"></a>00088 genIUType <span class="keyword">const</span> & Value,
|
||||
<a name="l00089"></a>00089 <span class="keywordtype">int</span> <span class="keyword">const</span> & Offset,
|
||||
<a name="l00090"></a>00090 <span class="keywordtype">int</span> <span class="keyword">const</span> & Bits);
|
||||
<a name="l00091"></a>00091
|
||||
<a name="l00104"></a>00104 <span class="keyword">template</span> <<span class="keyword">typename</span> genIUType>
|
||||
<a name="l00105"></a>00105 genIUType <a class="code" href="a00238.html#ga90d0bc8e79f637da58b8fad2fc8f3275" title="Returns the insertion the bits least-significant bits of insert into base.">bitfieldInsert</a>(
|
||||
<a name="l00106"></a>00106 genIUType <span class="keyword">const</span> & Base,
|
||||
<a name="l00107"></a>00107 genIUType <span class="keyword">const</span> & Insert,
|
||||
<a name="l00108"></a>00108 <span class="keywordtype">int</span> <span class="keyword">const</span> & Offset,
|
||||
<a name="l00109"></a>00109 <span class="keywordtype">int</span> <span class="keyword">const</span> & Bits);
|
||||
<a name="l00110"></a>00110
|
||||
<a name="l00117"></a>00117 <span class="keyword">template</span> <<span class="keyword">typename</span> genIUType>
|
||||
<a name="l00118"></a>00118 genIUType <a class="code" href="a00238.html#ga68bdb2c3debc414d5567935b4cbca62f" title="Returns the reversal of the bits of value.">bitfieldReverse</a>(genIUType <span class="keyword">const</span> & value);
|
||||
<a name="l00119"></a>00119
|
||||
<a name="l00124"></a>00124 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>C>
|
||||
<a name="l00125"></a>00125 <span class="keyword">typename</span> C<T>::signed_type <a class="code" href="a00238.html#ga29cfb04fafbaa1939955f11fef28ff38" title="Returns the number of bits set to 1 in the binary representation of value.">bitCount</a>(C<T> <span class="keyword">const</span> & Value);
|
||||
<a name="l00126"></a>00126
|
||||
<a name="l00133"></a>00133 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>C>
|
||||
<a name="l00134"></a>00134 <span class="keyword">typename</span> C<T>::signed_type <a class="code" href="a00238.html#ga9890456d065156a3c3c9786b14638486" title="Returns the bit number of the least significant bit set to 1 in the binary representation of value...">findLSB</a>(C<T> <span class="keyword">const</span> & Value);
|
||||
<a name="l00135"></a>00135
|
||||
<a name="l00143"></a>00143 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>C>
|
||||
<a name="l00144"></a>00144 <span class="keyword">typename</span> C<T>::signed_type <a class="code" href="a00238.html#ga0f50b6fe121f170c3725a8abb53ff077" title="Returns the bit number of the most significant bit in the binary representation of value...">findMSB</a>(C<T> <span class="keyword">const</span> & Value);
|
||||
<a name="l00145"></a>00145
|
||||
<a name="l00147"></a>00147
|
||||
<a name="l00148"></a>00148 }<span class="comment">//namespace integer</span>
|
||||
<a name="l00149"></a>00149 }<span class="comment">//namespace function</span>
|
||||
<a name="l00150"></a>00150 }<span class="comment">//namespace core</span>
|
||||
<a name="l00151"></a>00151
|
||||
<a name="l00152"></a>00152 <span class="keyword">using namespace </span>core::function::integer;
|
||||
<a name="l00153"></a>00153 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00154"></a>00154
|
||||
<a name="l00155"></a>00155 <span class="preprocessor">#include "func_integer.inl"</span>
|
||||
<a name="l00156"></a>00156
|
||||
<a name="l00157"></a>00157 <span class="preprocessor">#endif//glm_core_func_integer</span>
|
||||
<a name="l00158"></a>00158 <span class="preprocessor"></span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,112 +0,0 @@
|
||||
<!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>func_matrix.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">func_matrix.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-08-03</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-04</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/func_matrix.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_func_matrix</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_func_matrix</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="keyword">namespace </span>glm
|
||||
<a name="l00014"></a>00014 {
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>core{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>function{
|
||||
<a name="l00018"></a><a class="code" href="a00150.html">00018</a> <span class="keyword">namespace </span>matrix{
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00022"></a>00022
|
||||
<a name="l00028"></a>00028 <span class="keyword">template</span> <<span class="keyword">typename</span> matType>
|
||||
<a name="l00029"></a>00029 matType <a class="code" href="a00238.html#gad27896f9d5be202b8d39552eeb352c87" title="Multiply matrix x by matrix y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and...">matrixCompMult</a>(
|
||||
<a name="l00030"></a>00030 matType <span class="keyword">const</span> & x,
|
||||
<a name="l00031"></a>00031 matType <span class="keyword">const</span> & y);
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00039"></a>00039 <span class="keyword">template</span> <<span class="keyword">typename</span> vecType, <span class="keyword">typename</span> matType>
|
||||
<a name="l00040"></a>00040 matType <a class="code" href="a00238.html#ga04b83f76e97124e8e91d923dd7ba326c" title="Treats the first parameter c as a column vector and the second parameter r as a row vector and does a...">outerProduct</a>(
|
||||
<a name="l00041"></a>00041 vecType <span class="keyword">const</span> & c,
|
||||
<a name="l00042"></a>00042 vecType <span class="keyword">const</span> & r);
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00048"></a>00048 <span class="keyword">template</span> <<span class="keyword">typename</span> matType>
|
||||
<a name="l00049"></a>00049 <span class="keyword">typename</span> matType::transpose_type <a class="code" href="a00238.html#ga8b1a22512f73b0176ad062d3d480e906" title="Returns the transposed matrix of x.">transpose</a>(
|
||||
<a name="l00050"></a>00050 matType <span class="keyword">const</span> & x);
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00056"></a>00056 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00057"></a>00057 <span class="keyword">typename</span> detail::tmat2x2<T>::value_type <a class="code" href="a00238.html#ga0159ae2542b5bba80743694122247c15" title="Return the determinant of a mat2 matrix.">determinant</a>(
|
||||
<a name="l00058"></a>00058 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00064"></a>00064 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00065"></a>00065 <span class="keyword">typename</span> detail::tmat3x3<T>::value_type <a class="code" href="a00238.html#ga0159ae2542b5bba80743694122247c15" title="Return the determinant of a mat2 matrix.">determinant</a>(
|
||||
<a name="l00066"></a>00066 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00072"></a>00072 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00073"></a>00073 <span class="keyword">typename</span> detail::tmat4x4<T>::value_type <a class="code" href="a00238.html#ga0159ae2542b5bba80743694122247c15" title="Return the determinant of a mat2 matrix.">determinant</a>(
|
||||
<a name="l00074"></a>00074 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00075"></a>00075
|
||||
<a name="l00080"></a>00080 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00081"></a>00081 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a> <a class="code" href="a00238.html#ga21de0684ba52d03625b43eac0c2b866a" title="Return the inverse of a mat2 matrix.">inverse</a>(
|
||||
<a name="l00082"></a>00082 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00083"></a>00083
|
||||
<a name="l00088"></a>00088 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00089"></a>00089 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00238.html#ga21de0684ba52d03625b43eac0c2b866a" title="Return the inverse of a mat2 matrix.">inverse</a>(
|
||||
<a name="l00090"></a>00090 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00091"></a>00091
|
||||
<a name="l00096"></a>00096 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00097"></a>00097 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00238.html#ga21de0684ba52d03625b43eac0c2b866a" title="Return the inverse of a mat2 matrix.">inverse</a>(
|
||||
<a name="l00098"></a>00098 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00099"></a>00099
|
||||
<a name="l00101"></a>00101
|
||||
<a name="l00102"></a>00102 }<span class="comment">//namespace matrix</span>
|
||||
<a name="l00103"></a>00103 }<span class="comment">//namespace function</span>
|
||||
<a name="l00104"></a>00104 }<span class="comment">//namespace core</span>
|
||||
<a name="l00105"></a>00105
|
||||
<a name="l00106"></a>00106 <span class="keyword">using namespace </span>core::function::matrix;
|
||||
<a name="l00107"></a>00107 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00108"></a>00108
|
||||
<a name="l00109"></a>00109 <span class="preprocessor">#include "func_matrix.inl"</span>
|
||||
<a name="l00110"></a>00110
|
||||
<a name="l00111"></a>00111 <span class="preprocessor">#endif//glm_core_func_matrix</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,87 +0,0 @@
|
||||
<!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>func_noise.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">func_noise.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-08-01</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-09-10</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/func_noise.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_func_noise</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_func_noise</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="keyword">namespace </span>glm
|
||||
<a name="l00014"></a>00014 {
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>core{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>function{
|
||||
<a name="l00017"></a>00017 <span class="comment">// Define all noise functions from Section 8.9 of GLSL 1.30.8 specification. Included in glm namespace.</span>
|
||||
<a name="l00018"></a>00018 <span class="keyword">namespace </span>noise{
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00022"></a>00022
|
||||
<a name="l00027"></a>00027 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00028"></a>00028 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00238.html#ga9a5b6e92c055c5d401b2a7c56b4b8da3" title="Returns a 1D noise value based on the input value x.">noise1</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00034"></a>00034 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00035"></a>00035 detail::tvec2<typename genType::value_type> <a class="code" href="a00238.html#gaad98694033fa19168b99205f5ab33a0e" title="Returns a 2D noise value based on the input value x.">noise2</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00041"></a>00041 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00042"></a>00042 detail::tvec3<typename genType::value_type> <a class="code" href="a00238.html#ga8759756672debb0894c0bb18f5add8a6" title="Returns a 3D noise value based on the input value x.">noise3</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00048"></a>00048 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00049"></a>00049 detail::tvec4<typename genType::value_type> <a class="code" href="a00238.html#gac744c79c4ab6cffafbd197fc5276e62d" title="Returns a 4D noise value based on the input value x.">noise4</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00053"></a>00053 }<span class="comment">//namespace noise</span>
|
||||
<a name="l00054"></a>00054 }<span class="comment">//namespace function</span>
|
||||
<a name="l00055"></a>00055 }<span class="comment">//namespace core</span>
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00057"></a>00057 <span class="keyword">using namespace </span>core::function::noise;
|
||||
<a name="l00058"></a>00058 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00060"></a>00060 <span class="preprocessor">#include "func_noise.inl"</span>
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00062"></a>00062 <span class="preprocessor">#endif//glm_core_func_noise</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,91 +0,0 @@
|
||||
<!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>func_packing.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">func_packing.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2010-03-17</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-03-17</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/func_packing.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_func_packing</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_func_packing</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="keyword">namespace </span>glm
|
||||
<a name="l00014"></a>00014 {
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>core{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>function{
|
||||
<a name="l00018"></a><a class="code" href="a00152.html">00018</a> <span class="keyword">namespace </span>packing
|
||||
<a name="l00019"></a>00019 {
|
||||
<a name="l00022"></a>00022
|
||||
<a name="l00034"></a>00034 detail::uint32 <a class="code" href="a00238.html#ga7fc17302ae69881bb792842d472e7a30" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packUnorm2x16</a>(<a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::float32></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00047"></a>00047 detail::uint32 <a class="code" href="a00238.html#gaf440e4e6c6be271327c5e2538e9c8b5f" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packUnorm4x8</a>(<a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::float32></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00060"></a>00060 detail::uint32 <a class="code" href="a00238.html#ga3f82e6b12495d9751eee53facba475da" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packSnorm4x8</a>(<a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::float32></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00073"></a>00073 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::float32></a> <a class="code" href="a00238.html#gab3745178db4024212c4d7cb3df9a6f39" title="First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.">unpackUnorm2x16</a>(detail::uint32 <span class="keyword">const</span> & p);
|
||||
<a name="l00074"></a>00074
|
||||
<a name="l00086"></a>00086 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::float32></a> <a class="code" href="a00238.html#ga11630d2b293d96452c412639ec3c942e" title="First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.">unpackUnorm4x8</a>(detail::uint32 <span class="keyword">const</span> & p);
|
||||
<a name="l00087"></a>00087
|
||||
<a name="l00099"></a>00099 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::float32></a> <a class="code" href="a00238.html#ga03dafa00be8359e3a028aed81ae6007e" title="First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.">unpackSnorm4x8</a>(detail::uint32 <span class="keyword">const</span> & p);
|
||||
<a name="l00100"></a>00100
|
||||
<a name="l00109"></a>00109 <span class="keywordtype">double</span> <a class="code" href="a00238.html#ga816867ca2fdb1bfb5d80d7a4f18a9e97" title="Returns a double-precision value obtained by packing the components of v into a 64-bit value...">packDouble2x32</a>(<a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::uint32></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00110"></a>00110
|
||||
<a name="l00118"></a>00118 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::uint32></a> <a class="code" href="a00238.html#ga4e80ba8eaef0b878ecb43053a4df9ff7" title="Returns a two-component unsigned integer vector representation of v.">unpackDouble2x32</a>(<span class="keywordtype">double</span> <span class="keyword">const</span> & v);
|
||||
<a name="l00119"></a>00119
|
||||
<a name="l00121"></a>00121
|
||||
<a name="l00122"></a>00122 }<span class="comment">//namespace packing</span>
|
||||
<a name="l00123"></a>00123 }<span class="comment">//namespace function</span>
|
||||
<a name="l00124"></a>00124 }<span class="comment">//namespace core</span>
|
||||
<a name="l00125"></a>00125
|
||||
<a name="l00126"></a>00126 <span class="keyword">using namespace </span>core::function::packing;
|
||||
<a name="l00127"></a>00127 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00128"></a>00128
|
||||
<a name="l00129"></a>00129 <span class="preprocessor">#include "func_packing.inl"</span>
|
||||
<a name="l00130"></a>00130
|
||||
<a name="l00131"></a>00131 <span class="preprocessor">#endif//glm_core_func_packing</span>
|
||||
<a name="l00132"></a>00132 <span class="preprocessor"></span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,121 +0,0 @@
|
||||
<!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>func_trigonometric.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">func_trigonometric.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-08-01</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-09-10</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/func_trigonometric.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_func_trigonometric</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_func_trigonometric</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="keyword">namespace </span>glm
|
||||
<a name="l00014"></a>00014 {
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>core{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>function{
|
||||
<a name="l00020"></a><a class="code" href="a00153.html">00020</a> <span class="keyword">namespace </span>trigonometric{
|
||||
<a name="l00021"></a>00021
|
||||
<a name="l00024"></a>00024
|
||||
<a name="l00029"></a>00029 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00030"></a>00030 genType <a class="code" href="a00238.html#ga40251a4a07049e7fdcbf155c3cc6d32a" title="Converts degrees to radians and returns the result.">radians</a>(genType <span class="keyword">const</span> & <a class="code" href="a00238.html#ga2dc092f93e998e01c1cfdaef817ca926" title="Converts radians to degrees and returns the result.">degrees</a>);
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00036"></a>00036 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00037"></a>00037 genType <a class="code" href="a00238.html#ga2dc092f93e998e01c1cfdaef817ca926" title="Converts radians to degrees and returns the result.">degrees</a>(genType <span class="keyword">const</span> & radians);
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00044"></a>00044 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00045"></a>00045 genType <a class="code" href="a00238.html#gad246389321f46f7cb1cc422f9fd64cf4" title="The standard trigonometric sine function.">sin</a>(genType <span class="keyword">const</span> & <a class="code" href="a00286.html#ga6a3387a7d60728f60d86546b2f4d4d30" title="Returns the quaternion rotation angle.">angle</a>);
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00052"></a>00052 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00053"></a>00053 genType <a class="code" href="a00238.html#ga4fbc8481a95bcc1c0c6931a34449b9a8" title="The standard trigonometric cosine function.">cos</a>(genType <span class="keyword">const</span> & angle);
|
||||
<a name="l00054"></a>00054
|
||||
<a name="l00059"></a>00059 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00060"></a>00060 genType <a class="code" href="a00238.html#ga1a556079a4fee8b5e12fcfe7551f6931" title="The standard trigonometric tangent function.">tan</a>(genType <span class="keyword">const</span> & angle);
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00068"></a>00068 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00069"></a>00069 genType <a class="code" href="a00238.html#ga3c625e34fc99b33829c28c6d580df7e2" title="Arc sine.">asin</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00070"></a>00070
|
||||
<a name="l00077"></a>00077 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00078"></a>00078 genType <a class="code" href="a00238.html#ga52a4b4cbe6d47f94d06ee1efd95786e6" title="Arc cosine.">acos</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00079"></a>00079
|
||||
<a name="l00088"></a>00088 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00089"></a>00089 genType <a class="code" href="a00238.html#ga32dbceedb2910e519860a225ae7f7450" title="Arc tangent.">atan</a>(genType <span class="keyword">const</span> & y, genType <span class="keyword">const</span> & x);
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00096"></a>00096 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00097"></a>00097 genType <a class="code" href="a00238.html#ga32dbceedb2910e519860a225ae7f7450" title="Arc tangent.">atan</a>(genType <span class="keyword">const</span> & y_over_x);
|
||||
<a name="l00098"></a>00098
|
||||
<a name="l00103"></a>00103 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00104"></a>00104 genType <a class="code" href="a00238.html#ga13a63bc67a160b1614ba3681f57fe480" title="Returns the hyperbolic sine function, (exp(x) - exp(-x)) / 2.">sinh</a>(genType <span class="keyword">const</span> & angle);
|
||||
<a name="l00105"></a>00105
|
||||
<a name="l00110"></a>00110 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00111"></a>00111 genType <a class="code" href="a00238.html#ga2cfdbcd7a269a114cbb4f19dcf1e3f8b" title="Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2.">cosh</a>(genType <span class="keyword">const</span> & angle);
|
||||
<a name="l00112"></a>00112
|
||||
<a name="l00117"></a>00117 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00118"></a>00118 genType <a class="code" href="a00238.html#gad93de1d635832bf722eb78a088bfbaa6" title="Returns the hyperbolic tangent function, sinh(angle) / cosh(angle)">tanh</a>(genType <span class="keyword">const</span> & angle);
|
||||
<a name="l00119"></a>00119
|
||||
<a name="l00124"></a>00124 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00125"></a>00125 genType <a class="code" href="a00238.html#ga7ba20fc7c7b3eeef601e73b130e63db5" title="Arc hyperbolic sine; returns the inverse of sinh.">asinh</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00126"></a>00126
|
||||
<a name="l00132"></a>00132 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00133"></a>00133 genType <a class="code" href="a00238.html#ga7c8d8ac539a43da0d41e656a38262ff0" title="Arc hyperbolic cosine; returns the non-negative inverse of cosh.">acosh</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00134"></a>00134
|
||||
<a name="l00140"></a>00140 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00141"></a>00141 genType <a class="code" href="a00238.html#ga4d896caf7b1a8e5b5e3b29394e8c0ecd" title="Arc hyperbolic tangent; returns the inverse of tanh.">atanh</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00142"></a>00142
|
||||
<a name="l00144"></a>00144
|
||||
<a name="l00145"></a>00145 }<span class="comment">//namespace trigonometric</span>
|
||||
<a name="l00146"></a>00146 }<span class="comment">//namespace function</span>
|
||||
<a name="l00147"></a>00147 }<span class="comment">//namespace core</span>
|
||||
<a name="l00148"></a>00148
|
||||
<a name="l00149"></a>00149 <span class="keyword">using namespace </span>core::function::trigonometric;
|
||||
<a name="l00150"></a>00150 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00151"></a>00151
|
||||
<a name="l00152"></a>00152 <span class="preprocessor">#include "func_trigonometric.inl"</span>
|
||||
<a name="l00153"></a>00153
|
||||
<a name="l00154"></a>00154 <span class="preprocessor">#endif//glm_core_func_trigonometric</span>
|
||||
<a name="l00155"></a>00155 <span class="preprocessor"></span>
|
||||
<a name="l00156"></a>00156
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,217 +0,0 @@
|
||||
<!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>func_vector_relational.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">func_vector_relational.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-08-03</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-09-09</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/func_vector_relational.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_func_vector_relational</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_func_vector_relational</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "_detail.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>glm
|
||||
<a name="l00016"></a>00016 {
|
||||
<a name="l00017"></a>00017 <span class="keyword">namespace </span>core{
|
||||
<a name="l00018"></a>00018 <span class="keyword">namespace </span>function{
|
||||
<a name="l00021"></a><a class="code" href="a00154.html">00021</a> <span class="keyword">namespace </span>vector_relational
|
||||
<a name="l00022"></a>00022 {
|
||||
<a name="l00025"></a>00025
|
||||
<a name="l00030"></a>00030 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00031"></a>00031 GLM_FUNC_QUALIFIER <span class="keyword">typename</span> vecType<T>::bool_type <a class="code" href="a00238.html#ga54e5b894f79b9c1b8f6d28fe6f986e80" title="Returns the component-wise comparison result of x < y.">lessThan</a>
|
||||
<a name="l00032"></a><a class="code" href="a00238.html#ga54e5b894f79b9c1b8f6d28fe6f986e80">00032</a> (
|
||||
<a name="l00033"></a>00033 vecType<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00034"></a>00034 vecType<T> <span class="keyword">const</span> & y
|
||||
<a name="l00035"></a>00035 )
|
||||
<a name="l00036"></a>00036 {
|
||||
<a name="l00037"></a>00037 GLM_STATIC_ASSERT(detail::is_vector<vecType<T> >::_YES,
|
||||
<a name="l00038"></a>00038 <span class="stringliteral">"Invalid template instantiation of 'lessThan', GLM vector types required"</span>);
|
||||
<a name="l00039"></a>00039 GLM_STATIC_ASSERT(detail::is_bool<T>::_NO,
|
||||
<a name="l00040"></a>00040 <span class="stringliteral">"Invalid template instantiation of 'lessThan', GLM vector types required floating-point or integer value types vectors"</span>);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00042"></a>00042 <span class="keyword">typename</span> vecType<bool>::bool_type Result(vecType<bool>::null);
|
||||
<a name="l00043"></a>00043 <span class="keywordflow">for</span>(<span class="keyword">typename</span> vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
||||
<a name="l00044"></a>00044 Result[i] = x[i] < y[i];
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00046"></a>00046 <span class="keywordflow">return</span> Result;
|
||||
<a name="l00047"></a>00047 }
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00053"></a>00053 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00054"></a>00054 GLM_FUNC_QUALIFIER <span class="keyword">typename</span> vecType<T>::bool_type <a class="code" href="a00238.html#ga190db45f1b40202ee0716751448b119d" title="Returns the component-wise comparison of result x <= y.">lessThanEqual</a>
|
||||
<a name="l00055"></a><a class="code" href="a00238.html#ga190db45f1b40202ee0716751448b119d">00055</a> (
|
||||
<a name="l00056"></a>00056 vecType<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00057"></a>00057 vecType<T> <span class="keyword">const</span> & y
|
||||
<a name="l00058"></a>00058 )
|
||||
<a name="l00059"></a>00059 {
|
||||
<a name="l00060"></a>00060 GLM_STATIC_ASSERT(detail::is_vector<vecType<T> >::_YES,
|
||||
<a name="l00061"></a>00061 <span class="stringliteral">"Invalid template instantiation of 'lessThanEqual', GLM vector types required"</span>);
|
||||
<a name="l00062"></a>00062 GLM_STATIC_ASSERT(detail::is_bool<T>::_NO,
|
||||
<a name="l00063"></a>00063 <span class="stringliteral">"Invalid template instantiation of 'lessThanEqual', GLM vector types required floating-point or integer value types vectors"</span>);
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00065"></a>00065 <span class="keyword">typename</span> vecType<bool>::bool_type Result(vecType<bool>::null);
|
||||
<a name="l00066"></a>00066 <span class="keywordflow">for</span>(<span class="keyword">typename</span> vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
||||
<a name="l00067"></a>00067 Result[i] = x[i] <= y[i];
|
||||
<a name="l00068"></a>00068 <span class="keywordflow">return</span> Result;
|
||||
<a name="l00069"></a>00069 }
|
||||
<a name="l00070"></a>00070
|
||||
<a name="l00075"></a>00075 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00076"></a>00076 GLM_FUNC_QUALIFIER <span class="keyword">typename</span> vecType<T>::bool_type <a class="code" href="a00238.html#gaef35061292f337c0d788f43a3b1a26c0" title="Returns the component-wise comparison of result x > y.">greaterThan</a>
|
||||
<a name="l00077"></a><a class="code" href="a00238.html#gaef35061292f337c0d788f43a3b1a26c0">00077</a> (
|
||||
<a name="l00078"></a>00078 vecType<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00079"></a>00079 vecType<T> <span class="keyword">const</span> & y
|
||||
<a name="l00080"></a>00080 )
|
||||
<a name="l00081"></a>00081 {
|
||||
<a name="l00082"></a>00082 GLM_STATIC_ASSERT(detail::is_vector<vecType<T> >::_YES,
|
||||
<a name="l00083"></a>00083 <span class="stringliteral">"Invalid template instantiation of 'greaterThan', GLM vector types required"</span>);
|
||||
<a name="l00084"></a>00084 GLM_STATIC_ASSERT(detail::is_bool<T>::_NO,
|
||||
<a name="l00085"></a>00085 <span class="stringliteral">"Invalid template instantiation of 'greaterThan', GLM vector types required floating-point or integer value types vectors"</span>);
|
||||
<a name="l00086"></a>00086
|
||||
<a name="l00087"></a>00087 <span class="keyword">typename</span> vecType<bool>::bool_type Result(vecType<bool>::null);
|
||||
<a name="l00088"></a>00088 <span class="keywordflow">for</span>(<span class="keyword">typename</span> vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
||||
<a name="l00089"></a>00089 Result[i] = x[i] > y[i];
|
||||
<a name="l00090"></a>00090 <span class="keywordflow">return</span> Result;
|
||||
<a name="l00091"></a>00091 }
|
||||
<a name="l00092"></a>00092
|
||||
<a name="l00097"></a>00097 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00098"></a>00098 GLM_FUNC_QUALIFIER <span class="keyword">typename</span> vecType<T>::bool_type <a class="code" href="a00238.html#ga39aa8024d619850c81a685a4905177df" title="Returns the component-wise comparison of result x >= y.">greaterThanEqual</a>
|
||||
<a name="l00099"></a><a class="code" href="a00238.html#ga39aa8024d619850c81a685a4905177df">00099</a> (
|
||||
<a name="l00100"></a>00100 vecType<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00101"></a>00101 vecType<T> <span class="keyword">const</span> & y
|
||||
<a name="l00102"></a>00102 )
|
||||
<a name="l00103"></a>00103 {
|
||||
<a name="l00104"></a>00104 GLM_STATIC_ASSERT(detail::is_vector<vecType<T> >::_YES,
|
||||
<a name="l00105"></a>00105 <span class="stringliteral">"Invalid template instantiation of 'greaterThanEqual', GLM vector types required"</span>);
|
||||
<a name="l00106"></a>00106 GLM_STATIC_ASSERT(detail::is_bool<T>::_NO,
|
||||
<a name="l00107"></a>00107 <span class="stringliteral">"Invalid template instantiation of 'greaterThanEqual', GLM vector types required floating-point or integer value types vectors"</span>);
|
||||
<a name="l00108"></a>00108
|
||||
<a name="l00109"></a>00109 <span class="keyword">typename</span> vecType<bool>::bool_type Result(vecType<bool>::null);
|
||||
<a name="l00110"></a>00110 <span class="keywordflow">for</span>(<span class="keyword">typename</span> vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
||||
<a name="l00111"></a>00111 Result[i] = x[i] >= y[i];
|
||||
<a name="l00112"></a>00112 <span class="keywordflow">return</span> Result;
|
||||
<a name="l00113"></a>00113 }
|
||||
<a name="l00114"></a>00114
|
||||
<a name="l00119"></a>00119 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00120"></a>00120 GLM_FUNC_QUALIFIER <span class="keyword">typename</span> vecType<T>::bool_type <a class="code" href="a00238.html#ga811015178de53f628610f2036946fbb9" title="Returns the component-wise comparison of result x == y.">equal</a>
|
||||
<a name="l00121"></a><a class="code" href="a00238.html#ga811015178de53f628610f2036946fbb9">00121</a> (
|
||||
<a name="l00122"></a>00122 vecType<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00123"></a>00123 vecType<T> <span class="keyword">const</span> & y
|
||||
<a name="l00124"></a>00124 )
|
||||
<a name="l00125"></a>00125 {
|
||||
<a name="l00126"></a>00126 GLM_STATIC_ASSERT(detail::is_vector<vecType<T> >::_YES,
|
||||
<a name="l00127"></a>00127 <span class="stringliteral">"Invalid template instantiation of 'equal', GLM vector types required"</span>);
|
||||
<a name="l00128"></a>00128
|
||||
<a name="l00129"></a>00129 <span class="keyword">typename</span> vecType<bool>::bool_type Result(vecType<bool>::null);
|
||||
<a name="l00130"></a>00130 <span class="keywordflow">for</span>(<span class="keyword">typename</span> vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
||||
<a name="l00131"></a>00131 Result[i] = x[i] == y[i];
|
||||
<a name="l00132"></a>00132 <span class="keywordflow">return</span> Result;
|
||||
<a name="l00133"></a>00133 }
|
||||
<a name="l00134"></a>00134
|
||||
<a name="l00139"></a>00139 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00140"></a>00140 GLM_FUNC_QUALIFIER <span class="keyword">typename</span> vecType<T>::bool_type <a class="code" href="a00238.html#ga62979ef5be1ad914f866074b900abdcd" title="Returns the component-wise comparison of result x != y.">notEqual</a>
|
||||
<a name="l00141"></a><a class="code" href="a00238.html#ga62979ef5be1ad914f866074b900abdcd">00141</a> (
|
||||
<a name="l00142"></a>00142 vecType<T> <span class="keyword">const</span> & x,
|
||||
<a name="l00143"></a>00143 vecType<T> <span class="keyword">const</span> & y
|
||||
<a name="l00144"></a>00144 )
|
||||
<a name="l00145"></a>00145 {
|
||||
<a name="l00146"></a>00146 GLM_STATIC_ASSERT(detail::is_vector<vecType<T> >::_YES,
|
||||
<a name="l00147"></a>00147 <span class="stringliteral">"Invalid template instantiation of 'notEqual', GLM vector types required"</span>);
|
||||
<a name="l00148"></a>00148
|
||||
<a name="l00149"></a>00149 <span class="keyword">typename</span> vecType<bool>::bool_type Result(vecType<bool>::null);
|
||||
<a name="l00150"></a>00150 <span class="keywordflow">for</span>(<span class="keyword">typename</span> vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
||||
<a name="l00151"></a>00151 Result[i] = x[i] != y[i];
|
||||
<a name="l00152"></a>00152 <span class="keywordflow">return</span> Result;
|
||||
<a name="l00153"></a>00153 }
|
||||
<a name="l00154"></a>00154
|
||||
<a name="l00159"></a>00159 <span class="keyword">template</span> <<span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00160"></a><a class="code" href="a00238.html#gaa478a7966a4e6550bf0ee58ea8271074">00160</a> GLM_FUNC_QUALIFIER <span class="keywordtype">bool</span> <a class="code" href="a00238.html#gaa478a7966a4e6550bf0ee58ea8271074" title="Returns true if any component of x is true.">any</a>(vecType<bool> <span class="keyword">const</span> & v)
|
||||
<a name="l00161"></a>00161 {
|
||||
<a name="l00162"></a>00162 GLM_STATIC_ASSERT(detail::is_vector<vecType<bool> >::_YES,
|
||||
<a name="l00163"></a>00163 <span class="stringliteral">"Invalid template instantiation of 'any', GLM boolean vector types required"</span>);
|
||||
<a name="l00164"></a>00164
|
||||
<a name="l00165"></a>00165 <span class="keywordtype">bool</span> Result = <span class="keyword">false</span>;
|
||||
<a name="l00166"></a>00166 <span class="keywordflow">for</span>(<span class="keyword">typename</span> vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
||||
<a name="l00167"></a>00167 Result = Result || v[i];
|
||||
<a name="l00168"></a>00168 <span class="keywordflow">return</span> Result;
|
||||
<a name="l00169"></a>00169 }
|
||||
<a name="l00170"></a>00170
|
||||
<a name="l00175"></a>00175 <span class="keyword">template</span> <<span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00176"></a><a class="code" href="a00238.html#ga07b92e9e7077f06fe26e417f320b0f0c">00176</a> GLM_FUNC_QUALIFIER <span class="keywordtype">bool</span> <a class="code" href="a00238.html#ga07b92e9e7077f06fe26e417f320b0f0c" title="Returns true if all components of x are true.">all</a>(vecType<bool> <span class="keyword">const</span> & v)
|
||||
<a name="l00177"></a>00177 {
|
||||
<a name="l00178"></a>00178 GLM_STATIC_ASSERT(detail::is_vector<vecType<bool> >::_YES,
|
||||
<a name="l00179"></a>00179 <span class="stringliteral">"Invalid template instantiation of 'all', GLM boolean vector types required"</span>);
|
||||
<a name="l00180"></a>00180
|
||||
<a name="l00181"></a>00181 <span class="keywordtype">bool</span> Result = <span class="keyword">true</span>;
|
||||
<a name="l00182"></a>00182 <span class="keywordflow">for</span>(<span class="keyword">typename</span> vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
||||
<a name="l00183"></a>00183 Result = Result && v[i];
|
||||
<a name="l00184"></a>00184 <span class="keywordflow">return</span> Result;
|
||||
<a name="l00185"></a>00185 }
|
||||
<a name="l00186"></a>00186
|
||||
<a name="l00192"></a>00192 <span class="keyword">template</span> <<span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00193"></a><a class="code" href="a00238.html#gadb3248006580ee79ebb1d358bce25ca0">00193</a> GLM_FUNC_QUALIFIER vecType<bool> <a class="code" href="a00238.html#gadb3248006580ee79ebb1d358bce25ca0" title="Returns the component-wise logical complement of x.">not_</a>(vecType<bool> <span class="keyword">const</span> & v)
|
||||
<a name="l00194"></a>00194 {
|
||||
<a name="l00195"></a>00195 GLM_STATIC_ASSERT(detail::is_vector<vecType<bool> >::_YES,
|
||||
<a name="l00196"></a>00196 <span class="stringliteral">"Invalid template instantiation of 'not_', GLM vector types required"</span>);
|
||||
<a name="l00197"></a>00197
|
||||
<a name="l00198"></a>00198 <span class="keyword">typename</span> vecType<bool>::bool_type Result(vecType<bool>::null);
|
||||
<a name="l00199"></a>00199 <span class="keywordflow">for</span>(<span class="keyword">typename</span> vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
||||
<a name="l00200"></a>00200 Result[i] = !v[i];
|
||||
<a name="l00201"></a>00201 <span class="keywordflow">return</span> Result;
|
||||
<a name="l00202"></a>00202 }
|
||||
<a name="l00203"></a>00203
|
||||
<a name="l00205"></a>00205
|
||||
<a name="l00206"></a>00206 }<span class="comment">//namespace vector_relational</span>
|
||||
<a name="l00207"></a>00207 }<span class="comment">//namespace function</span>
|
||||
<a name="l00208"></a>00208 }<span class="comment">//namespace core</span>
|
||||
<a name="l00209"></a>00209
|
||||
<a name="l00210"></a>00210 <span class="keyword">using namespace </span>core::function::vector_relational;
|
||||
<a name="l00211"></a>00211 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00212"></a>00212
|
||||
<a name="l00213"></a>00213 <span class="preprocessor">#include "func_vector_relational.inl"</span>
|
||||
<a name="l00214"></a>00214
|
||||
<a name="l00215"></a>00215 <span class="preprocessor">#endif//glm_core_func_vector_relational</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,124 +0,0 @@
|
||||
<!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.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">glm.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-01-14</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2011-01-19</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/glm.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#include "core/_fixes.hpp"</span>
|
||||
<a name="l00011"></a>00011
|
||||
<a name="l00012"></a>00012 <span class="preprocessor">#ifndef glm_glm</span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define glm_glm</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor">#include <cmath></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#include <climits></span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include <cfloat></span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include <limits></span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "core/setup.hpp"</span>
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_CORE_INCLUDED_DISPLAYED))</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor"># define GLM_MESSAGE_CORE_INCLUDED_DISPLAYED</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: Core library included")</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_MESSAGE</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor"></span>
|
||||
<a name="l00027"></a>00027 <span class="keyword">namespace </span>glm
|
||||
<a name="l00028"></a>00028 {
|
||||
<a name="l00030"></a>00030 <span class="keyword">namespace </span>core
|
||||
<a name="l00031"></a>00031 {
|
||||
<a name="l00036"></a>00036 <span class="keyword">namespace </span>type
|
||||
<a name="l00037"></a>00037 {
|
||||
<a name="l00038"></a>00038 <span class="keyword">namespace </span>precision{}
|
||||
<a name="l00039"></a>00039 }
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00043"></a>00043 <span class="keyword">namespace </span>function{}
|
||||
<a name="l00044"></a>00044 }<span class="comment">//namespace core</span>
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00047"></a><a class="code" href="a00158.html">00047</a> <span class="keyword">namespace </span>gtc{}
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00051"></a><a class="code" href="a00168.html">00051</a> <span class="keyword">namespace </span>gtx{}
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00054"></a><a class="code" href="a00230.html">00054</a> <span class="keyword">namespace </span>virtrev{}
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056 <span class="keyword">using namespace </span>core::type;
|
||||
<a name="l00057"></a>00057 <span class="keyword">using namespace </span>core::type::precision;
|
||||
<a name="l00058"></a>00058 <span class="keyword">using namespace </span>core::function;
|
||||
<a name="l00059"></a>00059 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00060"></a>00060
|
||||
<a name="l00061"></a>00061 <span class="preprocessor">#include "./core/_detail.hpp"</span>
|
||||
<a name="l00062"></a>00062 <span class="preprocessor">#include "./core/type.hpp"</span>
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064 <span class="preprocessor">#include "./core/func_trigonometric.hpp"</span>
|
||||
<a name="l00065"></a>00065 <span class="preprocessor">#include "./core/func_exponential.hpp"</span>
|
||||
<a name="l00066"></a>00066 <span class="preprocessor">#include "./core/func_common.hpp"</span>
|
||||
<a name="l00067"></a>00067 <span class="preprocessor">#include "./core/func_packing.hpp"</span>
|
||||
<a name="l00068"></a>00068 <span class="preprocessor">#include "./core/func_geometric.hpp"</span>
|
||||
<a name="l00069"></a>00069 <span class="preprocessor">#include "./core/func_matrix.hpp"</span>
|
||||
<a name="l00070"></a>00070 <span class="preprocessor">#include "./core/func_vector_relational.hpp"</span>
|
||||
<a name="l00071"></a>00071 <span class="preprocessor">#include "./core/func_integer.hpp"</span>
|
||||
<a name="l00072"></a>00072 <span class="preprocessor">#include "./core/func_noise.hpp"</span>
|
||||
<a name="l00073"></a>00073 <span class="preprocessor">#include "./core/_swizzle.hpp"</span>
|
||||
<a name="l00074"></a>00074
|
||||
<a name="l00076"></a>00076 <span class="comment">// check type sizes</span>
|
||||
<a name="l00077"></a>00077 <span class="preprocessor">#ifndef GLM_STATIC_ASSERT_NULL</span>
|
||||
<a name="l00078"></a>00078 <span class="preprocessor"></span> GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::int8) == 1, <span class="stringliteral">"int8 size isn't 1 byte on this platform"</span>);
|
||||
<a name="l00079"></a>00079 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::int16) == 2, <span class="stringliteral">"int16 size isn't 2 bytes on this platform"</span>);
|
||||
<a name="l00080"></a>00080 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::int32) == 4, <span class="stringliteral">"int32 size isn't 4 bytes on this platform"</span>);
|
||||
<a name="l00081"></a>00081 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::int64) == 8, <span class="stringliteral">"int64 size isn't 8 bytes on this platform"</span>);
|
||||
<a name="l00082"></a>00082
|
||||
<a name="l00083"></a>00083 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::uint8) == 1, <span class="stringliteral">"uint8 size isn't 1 byte on this platform"</span>);
|
||||
<a name="l00084"></a>00084 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::uint16) == 2, <span class="stringliteral">"uint16 size isn't 2 bytes on this platform"</span>);
|
||||
<a name="l00085"></a>00085 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::uint32) == 4, <span class="stringliteral">"uint32 size isn't 4 bytes on this platform"</span>);
|
||||
<a name="l00086"></a>00086 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::uint64) == 8, <span class="stringliteral">"uint64 size isn't 8 bytes on this platform"</span>);
|
||||
<a name="l00087"></a>00087
|
||||
<a name="l00088"></a>00088 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::detail::float16</a>) == 2, <span class="stringliteral">"float16 size isn't 2 bytes on this platform"</span>);
|
||||
<a name="l00089"></a>00089 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::float32) == 4, <span class="stringliteral">"float32 size isn't 4 bytes on this platform"</span>);
|
||||
<a name="l00090"></a>00090 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::float64) == 8, <span class="stringliteral">"float64 size isn't 8 bytes on this platform"</span>);
|
||||
<a name="l00091"></a>00091 <span class="preprocessor">#endif//GLM_STATIC_ASSERT_NULL</span>
|
||||
<a name="l00092"></a>00092 <span class="preprocessor"></span>
|
||||
<a name="l00093"></a>00093 <span class="preprocessor">#endif//glm_glm</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,95 +0,0 @@
|
||||
<!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>gradient_paint.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">gradient_paint.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-03-06</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-03-09</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/gradient_paint.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_gradient_paint</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_gradient_paint</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../gtx/optimum_pow.hpp"</span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_gradient_paint extension included")</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span>
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00026"></a><a class="code" href="a00184.html">00026</a> <span class="keyword">namespace </span>gradient_paint
|
||||
<a name="l00027"></a>00027 {
|
||||
<a name="l00028"></a>00028 <span class="keyword">using namespace </span>gtx::optimum_pow;
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00033"></a>00033 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00034"></a>00034 valType radialGradient(
|
||||
<a name="l00035"></a>00035 <a class="code" href="a00020.html" title="The basic 2D vector type.">glm::detail::tvec2<valType></a> <span class="keyword">const</span> & Center,
|
||||
<a name="l00036"></a>00036 valType <span class="keyword">const</span> & Radius,
|
||||
<a name="l00037"></a>00037 <a class="code" href="a00020.html" title="The basic 2D vector type.">glm::detail::tvec2<valType></a> <span class="keyword">const</span> & Focal,
|
||||
<a name="l00038"></a>00038 <a class="code" href="a00020.html" title="The basic 2D vector type.">glm::detail::tvec2<valType></a> <span class="keyword">const</span> & Position);
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00041"></a>00041 valType linearGradient(
|
||||
<a name="l00042"></a>00042 <a class="code" href="a00020.html" title="The basic 2D vector type.">glm::detail::tvec2<valType></a> <span class="keyword">const</span> & Point0,
|
||||
<a name="l00043"></a>00043 <a class="code" href="a00020.html" title="The basic 2D vector type.">glm::detail::tvec2<valType></a> <span class="keyword">const</span> & Point1,
|
||||
<a name="l00044"></a>00044 <a class="code" href="a00020.html" title="The basic 2D vector type.">glm::detail::tvec2<valType></a> <span class="keyword">const</span> & Position);
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00047"></a>00047 }<span class="comment">// namespace gradient_paint</span>
|
||||
<a name="l00048"></a>00048 }<span class="comment">// namespace gtx</span>
|
||||
<a name="l00049"></a>00049 }<span class="comment">// namespace glm</span>
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00051"></a>00051 <span class="preprocessor">#include "gradient_paint.inl"</span>
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00053"></a>00053 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::gradient_paint;}
|
||||
<a name="l00054"></a>00054
|
||||
<a name="l00055"></a>00055 <span class="preprocessor">#endif//glm_gtx_gradient_paint</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,47 +0,0 @@
|
||||
<!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>gtxModules.doxy Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">gtxModules.doxy</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,366 +0,0 @@
|
||||
<!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>half_float.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">half_float.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-04-29</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-07</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtc/half_float.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_gtc_half_float</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtc_half_float</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="comment">// Dependency:</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00015"></a>00015
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTC_half_float extension included")</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor"></span>
|
||||
<a name="l00020"></a>00020 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00021"></a>00021 <span class="keyword">namespace </span>detail
|
||||
<a name="l00022"></a>00022 {
|
||||
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef _MSC_EXTENSIONS</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span> <span class="keyword">template</span> <>
|
||||
<a name="l00025"></a>00025 <span class="keyword">struct </span>tvec2<thalf>
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00027"></a>00027 <span class="keyword">enum</span> ctor{null};
|
||||
<a name="l00028"></a>00028 <span class="keyword">typedef</span> thalf value_type;
|
||||
<a name="l00029"></a>00029 <span class="keyword">typedef</span> std::size_t size_type;
|
||||
<a name="l00030"></a>00030 <span class="keyword">static</span> size_type value_size();
|
||||
<a name="l00031"></a>00031 GLM_FUNC_DECL size_type length() <span class="keyword">const</span>;
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00033"></a>00033 <span class="keyword">typedef</span> tvec2<thalf> type;
|
||||
<a name="l00034"></a>00034 <span class="keyword">typedef</span> tvec2<bool> bool_type;
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00037"></a>00037 <span class="comment">// Data</span>
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00039"></a>00039 thalf x, y;
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00042"></a>00042 <span class="comment">// Accesses</span>
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00044"></a>00044 thalf & operator[](size_type i);
|
||||
<a name="l00045"></a>00045 thalf <span class="keyword">const</span> & operator[](size_type i) <span class="keyword">const</span>;
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00048"></a>00048 <span class="comment">// Implicit basic constructors</span>
|
||||
<a name="l00049"></a>00049
|
||||
<a name="l00050"></a>00050 tvec2();
|
||||
<a name="l00051"></a>00051 tvec2(tvec2<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00054"></a>00054 <span class="comment">// Explicit basic constructors</span>
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056 <span class="keyword">explicit</span> tvec2(ctor);
|
||||
<a name="l00057"></a>00057 <span class="keyword">explicit</span> tvec2(
|
||||
<a name="l00058"></a>00058 thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00059"></a>00059 <span class="keyword">explicit</span> tvec2(
|
||||
<a name="l00060"></a>00060 thalf <span class="keyword">const</span> & s1,
|
||||
<a name="l00061"></a>00061 thalf <span class="keyword">const</span> & s2);
|
||||
<a name="l00062"></a>00062
|
||||
<a name="l00064"></a>00064 <span class="comment">// Swizzle constructors</span>
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00066"></a>00066 tvec2(tref2<thalf> <span class="keyword">const</span> & r);
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00069"></a>00069 <span class="comment">// Convertion scalar constructors</span>
|
||||
<a name="l00070"></a>00070
|
||||
<a name="l00072"></a>00072 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00073"></a>00073 <span class="keyword">explicit</span> tvec2(U <span class="keyword">const</span> & x);
|
||||
<a name="l00075"></a>00075 <span class="keyword">template</span> <<span class="keyword">typename</span> U, <span class="keyword">typename</span> V>
|
||||
<a name="l00076"></a>00076 <span class="keyword">explicit</span> tvec2(U <span class="keyword">const</span> & x, V <span class="keyword">const</span> & y);
|
||||
<a name="l00077"></a>00077
|
||||
<a name="l00079"></a>00079 <span class="comment">// Convertion vector constructors</span>
|
||||
<a name="l00080"></a>00080
|
||||
<a name="l00082"></a>00082 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00083"></a>00083 <span class="keyword">explicit</span> tvec2(tvec2<U> <span class="keyword">const</span> & v);
|
||||
<a name="l00085"></a>00085 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00086"></a>00086 <span class="keyword">explicit</span> tvec2(tvec3<U> <span class="keyword">const</span> & v);
|
||||
<a name="l00088"></a>00088 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00089"></a>00089 <span class="keyword">explicit</span> tvec2(tvec4<U> <span class="keyword">const</span> & v);
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00092"></a>00092 <span class="comment">// Unary arithmetic operators</span>
|
||||
<a name="l00093"></a>00093
|
||||
<a name="l00094"></a>00094 tvec2<thalf>& operator= (tvec2<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00095"></a>00095
|
||||
<a name="l00096"></a>00096 tvec2<thalf>& operator+=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00097"></a>00097 tvec2<thalf>& operator+=(tvec2<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00098"></a>00098 tvec2<thalf>& operator-=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00099"></a>00099 tvec2<thalf>& operator-=(tvec2<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00100"></a>00100 tvec2<thalf>& operator*=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00101"></a>00101 tvec2<thalf>& operator*=(tvec2<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00102"></a>00102 tvec2<thalf>& operator/=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00103"></a>00103 tvec2<thalf>& operator/=(tvec2<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00104"></a>00104 tvec2<thalf>& operator++();
|
||||
<a name="l00105"></a>00105 tvec2<thalf>& operator--();
|
||||
<a name="l00106"></a>00106
|
||||
<a name="l00108"></a>00108 <span class="comment">// Swizzle operators</span>
|
||||
<a name="l00109"></a>00109
|
||||
<a name="l00110"></a>00110 thalf swizzle(comp X) <span class="keyword">const</span>;
|
||||
<a name="l00111"></a>00111 tvec2<thalf> swizzle(comp X, comp Y) <span class="keyword">const</span>;
|
||||
<a name="l00112"></a>00112 tvec3<thalf> swizzle(comp X, comp Y, comp Z) <span class="keyword">const</span>;
|
||||
<a name="l00113"></a>00113 tvec4<thalf> swizzle(comp X, comp Y, comp Z, comp W) <span class="keyword">const</span>;
|
||||
<a name="l00114"></a>00114 tref2<thalf> swizzle(comp X, comp Y);
|
||||
<a name="l00115"></a>00115 };
|
||||
<a name="l00116"></a>00116
|
||||
<a name="l00117"></a>00117 <span class="keyword">template</span> <>
|
||||
<a name="l00118"></a>00118 <span class="keyword">struct </span>tvec3<thalf>
|
||||
<a name="l00119"></a>00119 {
|
||||
<a name="l00120"></a>00120 <span class="keyword">enum</span> ctor{null};
|
||||
<a name="l00121"></a>00121 <span class="keyword">typedef</span> thalf value_type;
|
||||
<a name="l00122"></a>00122 <span class="keyword">typedef</span> std::size_t size_type;
|
||||
<a name="l00123"></a>00123 <span class="keyword">static</span> size_type value_size();
|
||||
<a name="l00124"></a>00124 GLM_FUNC_DECL size_type length() <span class="keyword">const</span>;
|
||||
<a name="l00125"></a>00125
|
||||
<a name="l00126"></a>00126 <span class="keyword">typedef</span> tvec3<thalf> type;
|
||||
<a name="l00127"></a>00127 <span class="keyword">typedef</span> tvec3<bool> bool_type;
|
||||
<a name="l00128"></a>00128
|
||||
<a name="l00130"></a>00130 <span class="comment">// Data</span>
|
||||
<a name="l00131"></a>00131
|
||||
<a name="l00132"></a>00132 thalf x, y, z;
|
||||
<a name="l00133"></a>00133
|
||||
<a name="l00135"></a>00135 <span class="comment">// Accesses</span>
|
||||
<a name="l00136"></a>00136
|
||||
<a name="l00137"></a>00137 thalf & operator[](size_type i);
|
||||
<a name="l00138"></a>00138 thalf <span class="keyword">const</span> & operator[](size_type i) <span class="keyword">const</span>;
|
||||
<a name="l00139"></a>00139
|
||||
<a name="l00141"></a>00141 <span class="comment">// Implicit basic constructors</span>
|
||||
<a name="l00142"></a>00142
|
||||
<a name="l00143"></a>00143 tvec3();
|
||||
<a name="l00144"></a>00144 tvec3(tvec3<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00145"></a>00145
|
||||
<a name="l00147"></a>00147 <span class="comment">// Explicit basic constructors</span>
|
||||
<a name="l00148"></a>00148
|
||||
<a name="l00149"></a>00149 <span class="keyword">explicit</span> tvec3(ctor);
|
||||
<a name="l00150"></a>00150 <span class="keyword">explicit</span> tvec3(
|
||||
<a name="l00151"></a>00151 thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00152"></a>00152 <span class="keyword">explicit</span> tvec3(
|
||||
<a name="l00153"></a>00153 thalf <span class="keyword">const</span> & s1,
|
||||
<a name="l00154"></a>00154 thalf <span class="keyword">const</span> & s2,
|
||||
<a name="l00155"></a>00155 thalf <span class="keyword">const</span> & s3);
|
||||
<a name="l00156"></a>00156
|
||||
<a name="l00158"></a>00158 <span class="comment">// Swizzle constructors</span>
|
||||
<a name="l00159"></a>00159
|
||||
<a name="l00160"></a>00160 tvec3(tref3<thalf> <span class="keyword">const</span> & r);
|
||||
<a name="l00161"></a>00161
|
||||
<a name="l00163"></a>00163 <span class="comment">// Convertion scalar constructors</span>
|
||||
<a name="l00164"></a>00164
|
||||
<a name="l00166"></a>00166 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00167"></a>00167 <span class="keyword">explicit</span> tvec3(U <span class="keyword">const</span> & x);
|
||||
<a name="l00169"></a>00169 <span class="keyword">template</span> <<span class="keyword">typename</span> U, <span class="keyword">typename</span> V, <span class="keyword">typename</span> W>
|
||||
<a name="l00170"></a>00170 <span class="keyword">explicit</span> tvec3(U <span class="keyword">const</span> & x, V <span class="keyword">const</span> & y, W <span class="keyword">const</span> & z);
|
||||
<a name="l00171"></a>00171
|
||||
<a name="l00173"></a>00173 <span class="comment">// Convertion vector constructors</span>
|
||||
<a name="l00174"></a>00174
|
||||
<a name="l00176"></a>00176 <span class="keyword">template</span> <<span class="keyword">typename</span> A, <span class="keyword">typename</span> B>
|
||||
<a name="l00177"></a>00177 <span class="keyword">explicit</span> tvec3(tvec2<A> <span class="keyword">const</span> & v, B <span class="keyword">const</span> & s);
|
||||
<a name="l00179"></a>00179 <span class="keyword">template</span> <<span class="keyword">typename</span> A, <span class="keyword">typename</span> B>
|
||||
<a name="l00180"></a>00180 <span class="keyword">explicit</span> tvec3(A <span class="keyword">const</span> & s, tvec2<B> <span class="keyword">const</span> & v);
|
||||
<a name="l00182"></a>00182 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00183"></a>00183 <span class="keyword">explicit</span> tvec3(tvec3<U> <span class="keyword">const</span> & v);
|
||||
<a name="l00185"></a>00185 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00186"></a>00186 <span class="keyword">explicit</span> tvec3(tvec4<U> <span class="keyword">const</span> & v);
|
||||
<a name="l00187"></a>00187
|
||||
<a name="l00189"></a>00189 <span class="comment">// Unary arithmetic operators</span>
|
||||
<a name="l00190"></a>00190
|
||||
<a name="l00191"></a>00191 tvec3<thalf>& operator= (tvec3<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00192"></a>00192
|
||||
<a name="l00193"></a>00193 tvec3<thalf>& operator+=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00194"></a>00194 tvec3<thalf>& operator+=(tvec3<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00195"></a>00195 tvec3<thalf>& operator-=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00196"></a>00196 tvec3<thalf>& operator-=(tvec3<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00197"></a>00197 tvec3<thalf>& operator*=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00198"></a>00198 tvec3<thalf>& operator*=(tvec3<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00199"></a>00199 tvec3<thalf>& operator/=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00200"></a>00200 tvec3<thalf>& operator/=(tvec3<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00201"></a>00201 tvec3<thalf>& operator++();
|
||||
<a name="l00202"></a>00202 tvec3<thalf>& operator--();
|
||||
<a name="l00203"></a>00203
|
||||
<a name="l00205"></a>00205 <span class="comment">// Swizzle operators</span>
|
||||
<a name="l00206"></a>00206
|
||||
<a name="l00207"></a>00207 thalf swizzle(comp X) <span class="keyword">const</span>;
|
||||
<a name="l00208"></a>00208 tvec2<thalf> swizzle(comp X, comp Y) <span class="keyword">const</span>;
|
||||
<a name="l00209"></a>00209 tvec3<thalf> swizzle(comp X, comp Y, comp Z) <span class="keyword">const</span>;
|
||||
<a name="l00210"></a>00210 tvec4<thalf> swizzle(comp X, comp Y, comp Z, comp W) <span class="keyword">const</span>;
|
||||
<a name="l00211"></a>00211 tref3<thalf> swizzle(comp X, comp Y, comp Z);
|
||||
<a name="l00212"></a>00212 };
|
||||
<a name="l00213"></a>00213
|
||||
<a name="l00214"></a>00214 <span class="keyword">template</span> <>
|
||||
<a name="l00215"></a>00215 <span class="keyword">struct </span>tvec4<thalf>
|
||||
<a name="l00216"></a>00216 {
|
||||
<a name="l00217"></a>00217 <span class="keyword">enum</span> ctor{null};
|
||||
<a name="l00218"></a>00218 <span class="keyword">typedef</span> thalf value_type;
|
||||
<a name="l00219"></a>00219 <span class="keyword">typedef</span> std::size_t size_type;
|
||||
<a name="l00220"></a>00220 <span class="keyword">static</span> size_type value_size();
|
||||
<a name="l00221"></a>00221 GLM_FUNC_DECL size_type length() <span class="keyword">const</span>;
|
||||
<a name="l00222"></a>00222
|
||||
<a name="l00223"></a>00223 <span class="keyword">typedef</span> tvec4<thalf> type;
|
||||
<a name="l00224"></a>00224 <span class="keyword">typedef</span> tvec4<bool> bool_type;
|
||||
<a name="l00225"></a>00225
|
||||
<a name="l00227"></a>00227 <span class="comment">// Data</span>
|
||||
<a name="l00228"></a>00228
|
||||
<a name="l00229"></a>00229 thalf x, y, z, w;
|
||||
<a name="l00230"></a>00230
|
||||
<a name="l00232"></a>00232 <span class="comment">// Accesses</span>
|
||||
<a name="l00233"></a>00233
|
||||
<a name="l00234"></a>00234 thalf & operator[](size_type i);
|
||||
<a name="l00235"></a>00235 thalf <span class="keyword">const</span> & operator[](size_type i) <span class="keyword">const</span>;
|
||||
<a name="l00236"></a>00236
|
||||
<a name="l00238"></a>00238 <span class="comment">// Implicit basic constructors</span>
|
||||
<a name="l00239"></a>00239
|
||||
<a name="l00240"></a>00240 tvec4();
|
||||
<a name="l00241"></a>00241 tvec4(tvec4<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00242"></a>00242
|
||||
<a name="l00244"></a>00244 <span class="comment">// Explicit basic constructors</span>
|
||||
<a name="l00245"></a>00245
|
||||
<a name="l00246"></a>00246 <span class="keyword">explicit</span> tvec4(ctor);
|
||||
<a name="l00247"></a>00247 <span class="keyword">explicit</span> tvec4(
|
||||
<a name="l00248"></a>00248 thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00249"></a>00249 <span class="keyword">explicit</span> tvec4(
|
||||
<a name="l00250"></a>00250 thalf <span class="keyword">const</span> & s0,
|
||||
<a name="l00251"></a>00251 thalf <span class="keyword">const</span> & s1,
|
||||
<a name="l00252"></a>00252 thalf <span class="keyword">const</span> & s2,
|
||||
<a name="l00253"></a>00253 thalf <span class="keyword">const</span> & s3);
|
||||
<a name="l00254"></a>00254
|
||||
<a name="l00256"></a>00256 <span class="comment">// Swizzle constructors</span>
|
||||
<a name="l00257"></a>00257
|
||||
<a name="l00258"></a>00258 tvec4(tref4<thalf> <span class="keyword">const</span> & r);
|
||||
<a name="l00259"></a>00259
|
||||
<a name="l00261"></a>00261 <span class="comment">// Convertion scalar constructors</span>
|
||||
<a name="l00262"></a>00262
|
||||
<a name="l00264"></a>00264 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00265"></a>00265 <span class="keyword">explicit</span> tvec4(U <span class="keyword">const</span> & x);
|
||||
<a name="l00267"></a>00267 <span class="keyword">template</span> <<span class="keyword">typename</span> A, <span class="keyword">typename</span> B, <span class="keyword">typename</span> C, <span class="keyword">typename</span> D>
|
||||
<a name="l00268"></a>00268 <span class="keyword">explicit</span> tvec4(A <span class="keyword">const</span> & x, B <span class="keyword">const</span> & y, C <span class="keyword">const</span> & z, D <span class="keyword">const</span> & w);
|
||||
<a name="l00269"></a>00269
|
||||
<a name="l00271"></a>00271 <span class="comment">// Convertion vector constructors</span>
|
||||
<a name="l00272"></a>00272
|
||||
<a name="l00274"></a>00274 <span class="keyword">template</span> <<span class="keyword">typename</span> A, <span class="keyword">typename</span> B, <span class="keyword">typename</span> C>
|
||||
<a name="l00275"></a>00275 <span class="keyword">explicit</span> tvec4(tvec2<A> <span class="keyword">const</span> & v, B <span class="keyword">const</span> & s1, C <span class="keyword">const</span> & s2);
|
||||
<a name="l00277"></a>00277 <span class="keyword">template</span> <<span class="keyword">typename</span> A, <span class="keyword">typename</span> B, <span class="keyword">typename</span> C>
|
||||
<a name="l00278"></a>00278 <span class="keyword">explicit</span> tvec4(A <span class="keyword">const</span> & s1, tvec2<B> <span class="keyword">const</span> & v, C <span class="keyword">const</span> & s2);
|
||||
<a name="l00280"></a>00280 <span class="keyword">template</span> <<span class="keyword">typename</span> A, <span class="keyword">typename</span> B, <span class="keyword">typename</span> C>
|
||||
<a name="l00281"></a>00281 <span class="keyword">explicit</span> tvec4(A <span class="keyword">const</span> & s1, B <span class="keyword">const</span> & s2, tvec2<C> <span class="keyword">const</span> & v);
|
||||
<a name="l00283"></a>00283 <span class="keyword">template</span> <<span class="keyword">typename</span> A, <span class="keyword">typename</span> B>
|
||||
<a name="l00284"></a>00284 <span class="keyword">explicit</span> tvec4(tvec3<A> <span class="keyword">const</span> & v, B <span class="keyword">const</span> & s);
|
||||
<a name="l00286"></a>00286 <span class="keyword">template</span> <<span class="keyword">typename</span> A, <span class="keyword">typename</span> B>
|
||||
<a name="l00287"></a>00287 <span class="keyword">explicit</span> tvec4(A <span class="keyword">const</span> & s, tvec3<B> <span class="keyword">const</span> & v);
|
||||
<a name="l00289"></a>00289 <span class="keyword">template</span> <<span class="keyword">typename</span> A, <span class="keyword">typename</span> B>
|
||||
<a name="l00290"></a>00290 <span class="keyword">explicit</span> tvec4(tvec2<A> <span class="keyword">const</span> & v1, tvec2<B> <span class="keyword">const</span> & v2);
|
||||
<a name="l00292"></a>00292 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00293"></a>00293 <span class="keyword">explicit</span> tvec4(tvec4<U> <span class="keyword">const</span> & v);
|
||||
<a name="l00294"></a>00294
|
||||
<a name="l00296"></a>00296 <span class="comment">// Unary arithmetic operators</span>
|
||||
<a name="l00297"></a>00297
|
||||
<a name="l00298"></a>00298 tvec4<thalf>& operator= (tvec4<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00299"></a>00299
|
||||
<a name="l00300"></a>00300 tvec4<thalf>& operator+=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00301"></a>00301 tvec4<thalf>& operator+=(tvec4<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00302"></a>00302 tvec4<thalf>& operator-=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00303"></a>00303 tvec4<thalf>& operator-=(tvec4<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00304"></a>00304 tvec4<thalf>& operator*=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00305"></a>00305 tvec4<thalf>& operator*=(tvec4<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00306"></a>00306 tvec4<thalf>& operator/=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00307"></a>00307 tvec4<thalf>& operator/=(tvec4<thalf> <span class="keyword">const</span> & v);
|
||||
<a name="l00308"></a>00308 tvec4<thalf>& operator++();
|
||||
<a name="l00309"></a>00309 tvec4<thalf>& operator--();
|
||||
<a name="l00310"></a>00310
|
||||
<a name="l00312"></a>00312 <span class="comment">// Swizzle operators</span>
|
||||
<a name="l00313"></a>00313
|
||||
<a name="l00314"></a>00314 thalf swizzle(comp X) <span class="keyword">const</span>;
|
||||
<a name="l00315"></a>00315 tvec2<thalf> swizzle(comp X, comp Y) <span class="keyword">const</span>;
|
||||
<a name="l00316"></a>00316 tvec3<thalf> swizzle(comp X, comp Y, comp Z) <span class="keyword">const</span>;
|
||||
<a name="l00317"></a>00317 tvec4<thalf> swizzle(comp X, comp Y, comp Z, comp W) <span class="keyword">const</span>;
|
||||
<a name="l00318"></a>00318 tref4<thalf> swizzle(comp X, comp Y, comp Z, comp W);
|
||||
<a name="l00319"></a>00319 };
|
||||
<a name="l00320"></a>00320 <span class="preprocessor">#endif//_MSC_EXTENSIONS</span>
|
||||
<a name="l00321"></a>00321 <span class="preprocessor"></span>}
|
||||
<a name="l00322"></a>00322 <span class="comment">//namespace detail</span>
|
||||
<a name="l00323"></a>00323
|
||||
<a name="l00324"></a>00324 <span class="keyword">namespace </span>gtc{
|
||||
<a name="l00325"></a><a class="code" href="a00159.html">00325</a> <span class="keyword">namespace </span>half_float
|
||||
<a name="l00326"></a>00326 {
|
||||
<a name="l00329"></a>00329
|
||||
<a name="l00332"></a><a class="code" href="a00240.html#ga256188598ace9135605a8ac8fc158654">00332</a> <span class="keyword">typedef</span> <a class="code" href="a00009.html" title="16-bit floating point type.">detail::thalf</a> <a class="code" href="a00240.html#ga256188598ace9135605a8ac8fc158654" title="Type for half-precision floating-point numbers.">half</a>;
|
||||
<a name="l00333"></a>00333
|
||||
<a name="l00336"></a><a class="code" href="a00240.html#ga2cd0b3fe113dc1aa2ee750a85f77c50a">00336</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::thalf></a> <a class="code" href="a00240.html#ga2cd0b3fe113dc1aa2ee750a85f77c50a" title="Vector of 2 half-precision floating-point numbers.">hvec2</a>;
|
||||
<a name="l00337"></a>00337
|
||||
<a name="l00340"></a><a class="code" href="a00240.html#gab708ed615526a03ec26e3b614bea2b7b">00340</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<detail::thalf></a> <a class="code" href="a00240.html#gab708ed615526a03ec26e3b614bea2b7b" title="Vector of 3 half-precision floating-point numbers.">hvec3</a>;
|
||||
<a name="l00341"></a>00341
|
||||
<a name="l00344"></a><a class="code" href="a00240.html#ga912913b034fea8952fcfc129a633c667">00344</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::thalf></a> <a class="code" href="a00240.html#ga912913b034fea8952fcfc129a633c667" title="Vector of 4 half-precision floating-point numbers.">hvec4</a>;
|
||||
<a name="l00345"></a>00345
|
||||
<a name="l00348"></a><a class="code" href="a00240.html#ga784f92f5a36fd8e23a69119eb6a80eb8">00348</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<detail::thalf></a> <a class="code" href="a00240.html#ga784f92f5a36fd8e23a69119eb6a80eb8" title="2 * 2 matrix of half-precision floating-point numbers.">hmat2</a>;
|
||||
<a name="l00349"></a>00349
|
||||
<a name="l00352"></a><a class="code" href="a00240.html#ga97a57670730ece7f6b904d6dcce5bd7a">00352</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<detail::thalf></a> <a class="code" href="a00240.html#ga97a57670730ece7f6b904d6dcce5bd7a" title="3 * 3 matrix of half-precision floating-point numbers.">hmat3</a>;
|
||||
<a name="l00353"></a>00353
|
||||
<a name="l00356"></a><a class="code" href="a00240.html#gaffa8b541819e978ede6129703be94285">00356</a> <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<detail::thalf></a> <a class="code" href="a00240.html#gaffa8b541819e978ede6129703be94285" title="4 * 4 matrix of half-precision floating-point numbers.">hmat4</a>;
|
||||
<a name="l00357"></a>00357
|
||||
<a name="l00360"></a><a class="code" href="a00240.html#gaef5a99a975d1df44e43f3662d84d24e2">00360</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<detail::thalf></a> <a class="code" href="a00240.html#gaef5a99a975d1df44e43f3662d84d24e2" title="2 * 2 matrix of half-precision floating-point numbers.">hmat2x2</a>;
|
||||
<a name="l00361"></a>00361
|
||||
<a name="l00364"></a><a class="code" href="a00240.html#ga55c96491b1d2508504b7fad8f31fdd47">00364</a> <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3<detail::thalf></a> <a class="code" href="a00240.html#ga55c96491b1d2508504b7fad8f31fdd47" title="2 * 3 matrix of half-precision floating-point numbers.">hmat2x3</a>;
|
||||
<a name="l00365"></a>00365
|
||||
<a name="l00368"></a><a class="code" href="a00240.html#ga43a7d1bfd8945398effa19eb66ce304a">00368</a> <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4<detail::thalf></a> <a class="code" href="a00240.html#ga43a7d1bfd8945398effa19eb66ce304a" title="2 * 4 matrix of half-precision floating-point numbers.">hmat2x4</a>;
|
||||
<a name="l00369"></a>00369
|
||||
<a name="l00372"></a><a class="code" href="a00240.html#gaf89371358a1d90a224c72795d25a4f3e">00372</a> <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2<detail::thalf></a> <a class="code" href="a00240.html#gaf89371358a1d90a224c72795d25a4f3e" title="3 * 2 matrix of half-precision floating-point numbers.">hmat3x2</a>;
|
||||
<a name="l00373"></a>00373
|
||||
<a name="l00376"></a><a class="code" href="a00240.html#ga3b23962a795f1f157242859c1a35dec0">00376</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<detail::thalf></a> <a class="code" href="a00240.html#ga3b23962a795f1f157242859c1a35dec0" title="3 * 3 matrix of half-precision floating-point numbers.">hmat3x3</a>;
|
||||
<a name="l00377"></a>00377
|
||||
<a name="l00380"></a><a class="code" href="a00240.html#ga8eeb3d8c00910f5497117d1749b6550f">00380</a> <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4<detail::thalf></a> <a class="code" href="a00240.html#ga8eeb3d8c00910f5497117d1749b6550f" title="3 * 4 matrix of half-precision floating-point numbers.">hmat3x4</a>;
|
||||
<a name="l00381"></a>00381
|
||||
<a name="l00384"></a><a class="code" href="a00240.html#ga370098417bb96d7796b11a4611bf67ac">00384</a> <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2<detail::thalf></a> <a class="code" href="a00240.html#ga370098417bb96d7796b11a4611bf67ac" title="4 * 2 matrix of half-precision floating-point numbers.">hmat4x2</a>;
|
||||
<a name="l00385"></a>00385
|
||||
<a name="l00388"></a><a class="code" href="a00240.html#ga8248b190b2f9a4ff3f2aadf865f72b84">00388</a> <span class="keyword">typedef</span> <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">detail::tmat4x3<detail::thalf></a> <a class="code" href="a00240.html#ga8248b190b2f9a4ff3f2aadf865f72b84" title="4 * 3 matrix of half-precision floating-point numbers.">hmat4x3</a>;
|
||||
<a name="l00389"></a>00389
|
||||
<a name="l00392"></a><a class="code" href="a00240.html#ga66a4356be6f3c7a1e5cb944657917002">00392</a> <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<detail::thalf></a> <a class="code" href="a00240.html#ga66a4356be6f3c7a1e5cb944657917002" title="4 * 4 matrix of half-precision floating-point numbers.">hmat4x4</a>;
|
||||
<a name="l00393"></a>00393
|
||||
<a name="l00395"></a>00395
|
||||
<a name="l00396"></a>00396 }<span class="comment">// namespace half_float</span>
|
||||
<a name="l00397"></a>00397 }<span class="comment">// namespace gtc</span>
|
||||
<a name="l00398"></a>00398 }<span class="comment">// namespace glm</span>
|
||||
<a name="l00399"></a>00399
|
||||
<a name="l00400"></a>00400 <span class="preprocessor">#include "half_float.inl"</span>
|
||||
<a name="l00401"></a>00401
|
||||
<a name="l00402"></a>00402 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtc::half_float;}
|
||||
<a name="l00403"></a>00403
|
||||
<a name="l00404"></a>00404 <span class="preprocessor">#endif//glm_gtc_half_float</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,91 +0,0 @@
|
||||
<!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>handed_coordinate_space.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">handed_coordinate_space.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-02-19</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/handed_coordinate_space.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_handed_coordinate_space</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_handed_coordinate_space</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_handed_coordinate_space extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00185.html">00025</a> <span class="keyword">namespace </span>handed_coordinate_space
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00033"></a>00033 <span class="keywordtype">bool</span> <a class="code" href="a00264.html#ga472eb0d6e9fcf9b503d3c1a74fdee645" title="Return if a trihedron right handed or not.">rightHanded</a>(
|
||||
<a name="l00034"></a>00034 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & tangent,
|
||||
<a name="l00035"></a>00035 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & binormal,
|
||||
<a name="l00036"></a>00036 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & normal);
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00040"></a>00040 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00041"></a>00041 <span class="keywordtype">bool</span> <a class="code" href="a00264.html#gac222c8dd989fe9fb2142f18320bd683c" title="Return if a trihedron left handed or not.">leftHanded</a>(
|
||||
<a name="l00042"></a>00042 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & tangent,
|
||||
<a name="l00043"></a>00043 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & binormal,
|
||||
<a name="l00044"></a>00044 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & normal);
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00047"></a>00047 }<span class="comment">// namespace handed_coordinate_space</span>
|
||||
<a name="l00048"></a>00048 }<span class="comment">// namespace gtx</span>
|
||||
<a name="l00049"></a>00049 }<span class="comment">// namespace glm</span>
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00051"></a>00051 <span class="preprocessor">#include "handed_coordinate_space.inl"</span>
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00053"></a>00053 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::handed_coordinate_space;}
|
||||
<a name="l00054"></a>00054
|
||||
<a name="l00055"></a>00055 <span class="preprocessor">#endif//glm_gtx_handed_coordinate_space</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,65 +0,0 @@
|
||||
<!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>hint.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">hint.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-08-14</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-08-14</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/hint.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_type</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_type</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="keyword">namespace </span>glm
|
||||
<a name="l00014"></a>00014 {
|
||||
<a name="l00015"></a>00015 <span class="comment">// Use dont_care, nicest and fastest to optimize implementations.</span>
|
||||
<a name="l00016"></a>00016 <span class="keyword">class </span>dont_care {};
|
||||
<a name="l00017"></a>00017 <span class="keyword">class </span>nicest {};
|
||||
<a name="l00018"></a>00018 <span class="keyword">class </span>fastest {};
|
||||
<a name="l00019"></a>00019 };
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#endif//glm_core_type</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,119 +0,0 @@
|
||||
<!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>inertia.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">inertia.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2006-04-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2006-11-13</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/inertia.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_inertia</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_inertia</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_inertia extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00186.html">00025</a> <span class="keyword">namespace </span>inertia
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00033"></a>00033 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00265.html#ga2bc514c4c44559a1f76776ad723833b8" title="Build an inertia matrix for a box.">boxInertia3</a>(
|
||||
<a name="l00034"></a>00034 <span class="keyword">const</span> T Mass,
|
||||
<a name="l00035"></a>00035 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& Scale);
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00039"></a>00039 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00040"></a>00040 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00265.html#ga02d62ab1fe6c9eaaac001f0c73c787f2" title="Build an inertia matrix for a box.">boxInertia4</a>(
|
||||
<a name="l00041"></a>00041 <span class="keyword">const</span> T Mass,
|
||||
<a name="l00042"></a>00042 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& Scale);
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00046"></a>00046 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00047"></a>00047 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00265.html#gaceea61bf41a4cc6f934543bb42c30ab2" title="Build an inertia matrix for a disk.">diskInertia3</a>(
|
||||
<a name="l00048"></a>00048 <span class="keyword">const</span> T Mass,
|
||||
<a name="l00049"></a>00049 <span class="keyword">const</span> T Radius);
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00053"></a>00053 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00054"></a>00054 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00265.html#ga0f6f854161239bed615b5cba1cd85d8a" title="Build an inertia matrix for a disk.">diskInertia4</a>(
|
||||
<a name="l00055"></a>00055 <span class="keyword">const</span> T Mass,
|
||||
<a name="l00056"></a>00056 <span class="keyword">const</span> T Radius);
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00060"></a>00060 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00061"></a>00061 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00265.html#gac855b3f388128290af0b3016f5e644e4" title="Build an inertia matrix for a ball.">ballInertia3</a>(
|
||||
<a name="l00062"></a>00062 <span class="keyword">const</span> T Mass,
|
||||
<a name="l00063"></a>00063 <span class="keyword">const</span> T Radius);
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00067"></a>00067 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00068"></a>00068 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00265.html#ga33e5d8cfae7d8d2ee4369bbc68b20304" title="Build an inertia matrix for a ball.">ballInertia4</a>(
|
||||
<a name="l00069"></a>00069 <span class="keyword">const</span> T Mass,
|
||||
<a name="l00070"></a>00070 <span class="keyword">const</span> T Radius);
|
||||
<a name="l00071"></a>00071
|
||||
<a name="l00074"></a>00074 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00075"></a>00075 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00265.html#gad3bcd1a2ac02d030f6b774f5692aee01" title="Build an inertia matrix for a sphere.">sphereInertia3</a>(
|
||||
<a name="l00076"></a>00076 <span class="keyword">const</span> T Mass,
|
||||
<a name="l00077"></a>00077 <span class="keyword">const</span> T Radius);
|
||||
<a name="l00078"></a>00078
|
||||
<a name="l00081"></a>00081 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00082"></a>00082 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00265.html#ga3d50f9cd04751451b22d712f1ce26351" title="Build an inertia matrix for a sphere.">sphereInertia4</a>(
|
||||
<a name="l00083"></a>00083 <span class="keyword">const</span> T Mass,
|
||||
<a name="l00084"></a>00084 <span class="keyword">const</span> T Radius);
|
||||
<a name="l00085"></a>00085
|
||||
<a name="l00087"></a>00087 }<span class="comment">// namespace inertia</span>
|
||||
<a name="l00088"></a>00088 }<span class="comment">// namespace gtx</span>
|
||||
<a name="l00089"></a>00089 }<span class="comment">// namespace glm</span>
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00091"></a>00091 <span class="preprocessor">#include "inertia.inl"</span>
|
||||
<a name="l00092"></a>00092
|
||||
<a name="l00093"></a>00093 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::inertia;}
|
||||
<a name="l00094"></a>00094
|
||||
<a name="l00095"></a>00095 <span class="preprocessor">#endif//glm_gtx_inertia</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,85 +0,0 @@
|
||||
<!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>int_10_10_10_2.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">int_10_10_10_2.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2010-07-07</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-07-07</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/int_10_10_10_2.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_int_10_10_10_2</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_int_10_10_10_2</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../gtx/raw_data.hpp"</span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_int_10_10_10_2 extension included")</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span>
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00026"></a><a class="code" href="a00187.html">00026</a> <span class="keyword">namespace </span>int_10_10_10_2
|
||||
<a name="l00027"></a>00027 {
|
||||
<a name="l00028"></a>00028 <span class="keyword">using namespace </span>gtx::raw_data;
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00035"></a>00035 <a class="code" href="a00288.html#ga162201f4386c2973e6ebd76ac0941de0" title="Type for dword numbers.">dword</a> <a class="code" href="a00266.html#ga01b292ff461ea3d8e90a916c5b374fb1" title="From GLM_GTX_int_10_10_10_2 extension.">uint10_10_10_2_cast</a>(<a class="code" href="a00022.html" title="Basic 4D vector type.">glm::vec4</a> <span class="keyword">const</span> & v);
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00039"></a>00039 }<span class="comment">//namespace integer</span>
|
||||
<a name="l00040"></a>00040 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00041"></a>00041 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00043"></a>00043 <span class="preprocessor">#include "int_10_10_10_2.inl"</span>
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::int_10_10_10_2;}
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a>00047 <span class="preprocessor">#endif//glm_gtx_int_10_10_10_2</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,88 +0,0 @@
|
||||
<!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>integer.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">integer.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-24</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2006-11-14</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/integer.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_integer</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_integer</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_integer extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00188.html">00025</a> <span class="keyword">namespace </span>integer
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keywordtype">int</span> <a class="code" href="a00267.html#gaf34adb6543aab76a364f40bb77dbaeb8" title="Returns x raised to the y power.">pow</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
|
||||
<a name="l00033"></a>00033
|
||||
<a name="l00036"></a>00036 <span class="keywordtype">int</span> <a class="code" href="a00267.html#gac6ee2be886e1f3be68adc5ee0552bad7" title="Returns the positive square root of x.">sqrt</a>(<span class="keywordtype">int</span> x);
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00040"></a>00040 <span class="keywordtype">int</span> <a class="code" href="a00267.html#gaf48bc86895ab82c0e1f6f282d5cb6861" title="Modulus.">mod</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00044"></a>00044 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00045"></a>00045 genType <a class="code" href="a00267.html#gab45d1385cbb477a5684f80b0e24807e4" title="Return the factorial value of a number (!12 max, integer only) From GLM_GTX_integer extension...">factorial</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00048"></a>00048 }<span class="comment">//namespace integer</span>
|
||||
<a name="l00049"></a>00049 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00050"></a>00050 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="preprocessor">#include "integer.inl"</span>
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00054"></a>00054 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::integer;}
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056 <span class="preprocessor">#endif//glm_gtx_integer</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,105 +0,0 @@
|
||||
<!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>intersect.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">intersect.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2007-04-03</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-01-20</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/intersect.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTX_closest_point</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_intersect</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_intersect</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "../gtx/closest_point.hpp"</span>
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_closest_point extension included")</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span>
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00026"></a>00026 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00027"></a><a class="code" href="a00189.html">00027</a> <span class="keyword">namespace </span>intersect
|
||||
<a name="l00028"></a>00028 {
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00034"></a>00034 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00035"></a>00035 <span class="keywordtype">bool</span> <a class="code" href="a00268.html#ga6ce58ac1371605381abb3e00cfe36d78" title="Compute the intersection of a ray and a triangle.">intersectRayTriangle</a>(
|
||||
<a name="l00036"></a>00036 genType <span class="keyword">const</span> & orig, genType <span class="keyword">const</span> & dir,
|
||||
<a name="l00037"></a>00037 genType <span class="keyword">const</span> & vert0, genType <span class="keyword">const</span> & vert1, genType <span class="keyword">const</span> & vert2,
|
||||
<a name="l00038"></a>00038 genType & baryPosition);
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00042"></a>00042 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00043"></a>00043 <span class="keywordtype">bool</span> <a class="code" href="a00268.html#ga0922c431baec628c6955011c79d39cd9" title="Compute the intersection of a line and a triangle.">intersectLineTriangle</a>(
|
||||
<a name="l00044"></a>00044 genType <span class="keyword">const</span> & orig, genType <span class="keyword">const</span> & dir,
|
||||
<a name="l00045"></a>00045 genType <span class="keyword">const</span> & vert0, genType <span class="keyword">const</span> & vert1, genType <span class="keyword">const</span> & vert2,
|
||||
<a name="l00046"></a>00046 genType & position);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00051"></a>00051 <span class="keywordtype">bool</span> <a class="code" href="a00268.html#gaa03b236dbd4df6b0519b1f2ceea7ef8c" title="Compute the intersection of a ray and a sphere.">intersectRaySphere</a>(
|
||||
<a name="l00052"></a>00052 genType <span class="keyword">const</span> & orig, genType <span class="keyword">const</span> & dir,
|
||||
<a name="l00053"></a>00053 genType <span class="keyword">const</span> & center, <span class="keyword">typename</span> genType::value_type radius,
|
||||
<a name="l00054"></a>00054 genType & position, genType & normal);
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00058"></a>00058 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00059"></a>00059 <span class="keywordtype">bool</span> <a class="code" href="a00268.html#ga33f0584acca58d7446daf594c3b8295f" title="Compute the intersection of a line and a sphere.">intersectLineSphere</a>(
|
||||
<a name="l00060"></a>00060 genType <span class="keyword">const</span> & point0, genType <span class="keyword">const</span> & point1,
|
||||
<a name="l00061"></a>00061 genType <span class="keyword">const</span> & center, <span class="keyword">typename</span> genType::value_type radius,
|
||||
<a name="l00062"></a>00062 genType & position, genType & normal);
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00065"></a>00065 }<span class="comment">//namespace intersect</span>
|
||||
<a name="l00066"></a>00066 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00067"></a>00067 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00068"></a>00068
|
||||
<a name="l00069"></a>00069 <span class="preprocessor">#include "intersect.inl"</span>
|
||||
<a name="l00070"></a>00070
|
||||
<a name="l00071"></a>00071 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::intersect;}
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00073"></a>00073 <span class="preprocessor">#endif//glm_gtx_intersect</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,114 +0,0 @@
|
||||
<!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>intrinsic_common.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">intrinsic_common.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-05-11</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-05-11</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/intrinsic_common.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_detail_intrinsic_common</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_detail_intrinsic_common</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "setup.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="preprocessor">#if((GLM_ARCH & GLM_ARCH_SSE2) != GLM_ARCH_SSE2)</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor"># error "SSE2 instructions not supported or enabled"</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#else</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span>
|
||||
<a name="l00019"></a>00019 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00020"></a>00020 <span class="keyword">namespace </span>detail
|
||||
<a name="l00021"></a>00021 {
|
||||
<a name="l00022"></a>00022 __m128 sse_abs_ps(__m128 x);
|
||||
<a name="l00023"></a>00023
|
||||
<a name="l00024"></a>00024 __m128 sse_sgn_ps(__m128 x);
|
||||
<a name="l00025"></a>00025
|
||||
<a name="l00026"></a>00026 <span class="comment">//floor</span>
|
||||
<a name="l00027"></a>00027 __m128 sse_flr_ps(__m128 v);
|
||||
<a name="l00028"></a>00028
|
||||
<a name="l00029"></a>00029 <span class="comment">//trunc</span>
|
||||
<a name="l00030"></a>00030 __m128 sse_trc_ps(__m128 v);
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00032"></a>00032 <span class="comment">//round</span>
|
||||
<a name="l00033"></a>00033 __m128 sse_nd_ps(__m128 v);
|
||||
<a name="l00034"></a>00034
|
||||
<a name="l00035"></a>00035 <span class="comment">//roundEven</span>
|
||||
<a name="l00036"></a>00036 __m128 sse_rde_ps(__m128 v);
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 __m128 sse_rnd_ps(__m128 x);
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 __m128 sse_ceil_ps(__m128 v);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00042"></a>00042 __m128 sse_frc_ps(__m128 x);
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00044"></a>00044 __m128 sse_mod_ps(__m128 x, __m128 y);
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00046"></a>00046 __m128 sse_modf_ps(__m128 x, __m128i & i);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00048"></a>00048 <span class="comment">//GLM_FUNC_QUALIFIER __m128 sse_min_ps(__m128 x, __m128 y)</span>
|
||||
<a name="l00049"></a>00049
|
||||
<a name="l00050"></a>00050 <span class="comment">//GLM_FUNC_QUALIFIER __m128 sse_max_ps(__m128 x, __m128 y)</span>
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 __m128 sse_clp_ps(__m128 v, __m128 minVal, __m128 maxVal);
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00054"></a>00054 __m128 sse_mix_ps(__m128 v1, __m128 v2, __m128 a);
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056 __m128 sse_stp_ps(__m128 edge, __m128 x);
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00058"></a>00058 __m128 sse_ssp_ps(__m128 edge0, __m128 edge1, __m128 x);
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00060"></a>00060 __m128 sse_nan_ps(__m128 x);
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00062"></a>00062 __m128 sse_inf_ps(__m128 x);
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00065"></a>00065 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00066"></a>00066
|
||||
<a name="l00067"></a>00067 <span class="preprocessor">#include "intrinsic_common.inl"</span>
|
||||
<a name="l00068"></a>00068
|
||||
<a name="l00069"></a>00069 <span class="preprocessor">#endif//GLM_ARCH</span>
|
||||
<a name="l00070"></a>00070 <span class="preprocessor"></span><span class="preprocessor">#endif//glm_detail_intrinsic_common</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,104 +0,0 @@
|
||||
<!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>intrinsic_exponential.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">intrinsic_exponential.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-05-11</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-05-11</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/intrinsic_exponential.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_detail_intrinsic_exponential</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_detail_intrinsic_exponential</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "setup.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="preprocessor">#if((GLM_ARCH & GLM_ARCH_SSE2) != GLM_ARCH_SSE2)</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor"># error "SSE2 instructions not supported or enabled"</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#else</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span>
|
||||
<a name="l00019"></a>00019 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00020"></a>00020 <span class="keyword">namespace </span>detail
|
||||
<a name="l00021"></a>00021 {
|
||||
<a name="l00022"></a>00022 <span class="comment">/*</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">GLM_FUNC_QUALIFIER __m128 sse_rsqrt_nr_ss(__m128 const x)</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">{</span>
|
||||
<a name="l00025"></a>00025 <span class="comment"> __m128 recip = _mm_rsqrt_ss( x ); // "estimate" opcode</span>
|
||||
<a name="l00026"></a>00026 <span class="comment"> const static __m128 three = { 3, 3, 3, 3 }; // aligned consts for fast load</span>
|
||||
<a name="l00027"></a>00027 <span class="comment"> const static __m128 half = { 0.5,0.5,0.5,0.5 };</span>
|
||||
<a name="l00028"></a>00028 <span class="comment"> __m128 halfrecip = _mm_mul_ss( half, recip );</span>
|
||||
<a name="l00029"></a>00029 <span class="comment"> __m128 threeminus_xrr = _mm_sub_ss( three, _mm_mul_ss( x, _mm_mul_ss ( recip, recip ) ) );</span>
|
||||
<a name="l00030"></a>00030 <span class="comment"> return _mm_mul_ss( halfrecip, threeminus_xrr );</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">}</span>
|
||||
<a name="l00032"></a>00032 <span class="comment"> </span>
|
||||
<a name="l00033"></a>00033 <span class="comment">GLM_FUNC_QUALIFIER __m128 sse_normalize_fast_ps( float * RESTRICT vOut, float * RESTRICT vIn )</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">{</span>
|
||||
<a name="l00035"></a>00035 <span class="comment"> __m128 x = _mm_load_ss(&vIn[0]);</span>
|
||||
<a name="l00036"></a>00036 <span class="comment"> __m128 y = _mm_load_ss(&vIn[1]);</span>
|
||||
<a name="l00037"></a>00037 <span class="comment"> __m128 z = _mm_load_ss(&vIn[2]);</span>
|
||||
<a name="l00038"></a>00038 <span class="comment"> </span>
|
||||
<a name="l00039"></a>00039 <span class="comment"> const __m128 l = // compute x*x + y*y + z*z</span>
|
||||
<a name="l00040"></a>00040 <span class="comment"> _mm_add_ss(</span>
|
||||
<a name="l00041"></a>00041 <span class="comment"> _mm_add_ss( _mm_mul_ss(x,x),</span>
|
||||
<a name="l00042"></a>00042 <span class="comment"> _mm_mul_ss(y,y)</span>
|
||||
<a name="l00043"></a>00043 <span class="comment"> ),</span>
|
||||
<a name="l00044"></a>00044 <span class="comment"> _mm_mul_ss( z, z )</span>
|
||||
<a name="l00045"></a>00045 <span class="comment"> );</span>
|
||||
<a name="l00046"></a>00046 <span class="comment"> </span>
|
||||
<a name="l00047"></a>00047 <span class="comment"> </span>
|
||||
<a name="l00048"></a>00048 <span class="comment"> const __m128 rsqt = _mm_rsqrt_nr_ss( l );</span>
|
||||
<a name="l00049"></a>00049 <span class="comment"> _mm_store_ss( &vOut[0] , _mm_mul_ss( rsqt, x ) );</span>
|
||||
<a name="l00050"></a>00050 <span class="comment"> _mm_store_ss( &vOut[1] , _mm_mul_ss( rsqt, y ) );</span>
|
||||
<a name="l00051"></a>00051 <span class="comment"> _mm_store_ss( &vOut[2] , _mm_mul_ss( rsqt, z ) );</span>
|
||||
<a name="l00052"></a>00052 <span class="comment"> </span>
|
||||
<a name="l00053"></a>00053 <span class="comment"> return _mm_mul_ss( l , rsqt );</span>
|
||||
<a name="l00054"></a>00054 <span class="comment">}</span>
|
||||
<a name="l00055"></a>00055 <span class="comment">*/</span>
|
||||
<a name="l00056"></a>00056 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00057"></a>00057 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00058"></a>00058
|
||||
<a name="l00059"></a>00059 <span class="preprocessor">#endif//GLM_ARCH</span>
|
||||
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#endif//glm_detail_intrinsic_exponential</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,101 +0,0 @@
|
||||
<!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>intrinsic_geometric.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">intrinsic_geometric.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-05-08</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-05-08</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/intrinsic_geometric.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_intrinsic_geometric</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_intrinsic_geometric</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "setup.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="preprocessor">#if((GLM_ARCH & GLM_ARCH_SSE2) != GLM_ARCH_SSE2)</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor"># error "SSE2 instructions not supported or enabled"</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#else</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "intrinsic_common.hpp"</span>
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00022"></a>00022 <span class="keyword">namespace </span>detail
|
||||
<a name="l00023"></a>00023 {
|
||||
<a name="l00024"></a>00024 <span class="comment">//length</span>
|
||||
<a name="l00025"></a>00025 __m128 sse_len_ps(__m128 x);
|
||||
<a name="l00026"></a>00026
|
||||
<a name="l00027"></a>00027 <span class="comment">//distance</span>
|
||||
<a name="l00028"></a>00028 __m128 sse_dst_ps(__m128 p0, __m128 p1);
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00030"></a>00030 <span class="comment">//dot</span>
|
||||
<a name="l00031"></a>00031 __m128 sse_dot_ps(__m128 v1, __m128 v2);
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00033"></a>00033 <span class="comment">// SSE1</span>
|
||||
<a name="l00034"></a>00034 __m128 sse_dot_ss(__m128 v1, __m128 v2);
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00036"></a>00036 <span class="comment">//cross</span>
|
||||
<a name="l00037"></a>00037 __m128 sse_xpd_ps(__m128 v1, __m128 v2);
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00039"></a>00039 <span class="comment">//normalize</span>
|
||||
<a name="l00040"></a>00040 __m128 sse_nrm_ps(__m128 v);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00042"></a>00042 <span class="comment">//faceforward</span>
|
||||
<a name="l00043"></a>00043 __m128 sse_ffd_ps(__m128 N, __m128 I, __m128 Nref);
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="comment">//reflect</span>
|
||||
<a name="l00046"></a>00046 __m128 sse_rfe_ps(__m128 I, __m128 N);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00048"></a>00048 <span class="comment">//refract</span>
|
||||
<a name="l00049"></a>00049 __m128 sse_rfa_ps(__m128 I, __m128 N, __m128 eta);
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00051"></a>00051 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00052"></a>00052 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00054"></a>00054 <span class="preprocessor">#include "intrinsic_geometric.inl"</span>
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056 <span class="preprocessor">#endif//GLM_ARCH</span>
|
||||
<a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor">#endif//glm_core_intrinsic_geometric</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,94 +0,0 @@
|
||||
<!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>intrinsic_matrix.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">intrinsic_matrix.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-06-05</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-06-05</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/intrinsic_common.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_detail_intrinsic_matrix</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_detail_intrinsic_matrix</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "setup.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="preprocessor">#if((GLM_ARCH & GLM_ARCH_SSE2) != GLM_ARCH_SSE2)</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor"># error "SSE2 instructions not supported or enabled"</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#else</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "intrinsic_geometric.hpp"</span>
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00022"></a>00022 <span class="keyword">namespace </span>detail
|
||||
<a name="l00023"></a>00023 {
|
||||
<a name="l00024"></a>00024 <span class="keywordtype">void</span> sse_add_ps(__m128 in1[4], __m128 in2[4], __m128 out[4]);
|
||||
<a name="l00025"></a>00025
|
||||
<a name="l00026"></a>00026 <span class="keywordtype">void</span> sse_sub_ps(__m128 in1[4], __m128 in2[4], __m128 out[4]);
|
||||
<a name="l00027"></a>00027
|
||||
<a name="l00028"></a>00028 __m128 sse_mul_ps(__m128 m[4], __m128 v);
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00030"></a>00030 __m128 sse_mul_ps(__m128 v, __m128 m[4]);
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00032"></a>00032 <span class="keywordtype">void</span> sse_mul_ps(__m128 <span class="keyword">const</span> in1[4], __m128 <span class="keyword">const</span> in2[4], __m128 out[4]);
|
||||
<a name="l00033"></a>00033
|
||||
<a name="l00034"></a>00034 <span class="keywordtype">void</span> sse_transpose_ps(__m128 <span class="keyword">const</span> in[4], __m128 out[4]);
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00036"></a>00036 <span class="keywordtype">void</span> sse_inverse_ps(__m128 <span class="keyword">const</span> in[4], __m128 out[4]);
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="keywordtype">void</span> sse_rotate_ps(__m128 <span class="keyword">const</span> in[4], <span class="keywordtype">float</span> Angle, <span class="keywordtype">float</span> <span class="keyword">const</span> v[3], __m128 out[4]);
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 __m128 sse_det_ps(__m128 <span class="keyword">const</span> m[4]);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00042"></a>00042 __m128 sse_slow_det_ps(__m128 <span class="keyword">const</span> m[4]);
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00044"></a>00044 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00045"></a>00045 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a>00047 <span class="preprocessor">#include "intrinsic_matrix.inl"</span>
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00049"></a>00049 <span class="preprocessor">#endif//GLM_ARCH</span>
|
||||
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="preprocessor">#endif//glm_detail_intrinsic_matrix</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,73 +0,0 @@
|
||||
<!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>intrinsic_trigonometric.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">intrinsic_trigonometric.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-06-09</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-06-09</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/intrinsic_trigonometric.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_detail_intrinsic_trigonometric</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_detail_intrinsic_trigonometric</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "setup.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="preprocessor">#if((GLM_ARCH & GLM_ARCH_SSE2) != GLM_ARCH_SSE2)</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor"># error "SSE2 instructions not supported or enabled"</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#else</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span>
|
||||
<a name="l00019"></a>00019 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00020"></a>00020 <span class="keyword">namespace </span>detail
|
||||
<a name="l00021"></a>00021 {
|
||||
<a name="l00022"></a>00022
|
||||
<a name="l00023"></a>00023 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00024"></a>00024 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00025"></a>00025
|
||||
<a name="l00026"></a>00026 <span class="preprocessor">#include "intrinsic_trigonometric.inl"</span>
|
||||
<a name="l00027"></a>00027
|
||||
<a name="l00028"></a>00028 <span class="preprocessor">#endif//GLM_ARCH</span>
|
||||
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#endif//glm_detail_intrinsic_trigonometric</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,73 +0,0 @@
|
||||
<!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>intrinsic_vector_relational.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">intrinsic_vector_relational.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-06-09</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-06-09</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/intrinsic_vector_relational.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_detail_intrinsic_vector_relational</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_detail_intrinsic_vector_relational</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "setup.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="preprocessor">#if((GLM_ARCH & GLM_ARCH_SSE2) != GLM_ARCH_SSE2)</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor"># error "SSE2 instructions not supported or enabled"</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#else</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span>
|
||||
<a name="l00019"></a>00019 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00020"></a>00020 <span class="keyword">namespace </span>detail
|
||||
<a name="l00021"></a>00021 {
|
||||
<a name="l00022"></a>00022
|
||||
<a name="l00023"></a>00023 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00024"></a>00024 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00025"></a>00025
|
||||
<a name="l00026"></a>00026 <span class="preprocessor">#include "intrinsic_vector_relational.inl"</span>
|
||||
<a name="l00027"></a>00027
|
||||
<a name="l00028"></a>00028 <span class="preprocessor">#endif//GLM_ARCH</span>
|
||||
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#endif//glm_detail_intrinsic_vector_relational</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,85 +0,0 @@
|
||||
<!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>log_base.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">log_base.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-10-24</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-10-24</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/log_base.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_log_base</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_log_base</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_log_base extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00190.html">00025</a> <span class="keyword">namespace </span>log_base
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00033"></a>00033 genType <a class="code" href="a00269.html#ga78c6b55186a549948b9783bdee1dd5e0" title="Logarithm for any base.">log</a>(
|
||||
<a name="l00034"></a>00034 genType <span class="keyword">const</span> & x,
|
||||
<a name="l00035"></a>00035 genType <span class="keyword">const</span> & base);
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00039"></a>00039 }<span class="comment">//namespace extend</span>
|
||||
<a name="l00040"></a>00040 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00041"></a>00041 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00043"></a>00043 <span class="preprocessor">#include "log_base.inl"</span>
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::log_base;}
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a>00047 <span class="preprocessor">#endif//glm_gtx_log_base</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,102 +0,0 @@
|
||||
<!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>matrix_access.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">matrix_access.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-27</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-11-12</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtc/matrix_access.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtc_matrix_access</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtc_matrix_access</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTC_matrix_access extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtc{
|
||||
<a name="l00025"></a><a class="code" href="a00160.html">00025</a> <span class="keyword">namespace </span>matrix_access
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00033"></a>00033 <span class="keyword">typename</span> genType::row_type <a class="code" href="a00241.html#ga35d133d689062739c8dad60b7e399bbe" title="Get a specific row of a matrix.">row</a>(
|
||||
<a name="l00034"></a>00034 genType <span class="keyword">const</span> & m,
|
||||
<a name="l00035"></a>00035 <span class="keywordtype">int</span> index);
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00039"></a>00039 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00040"></a>00040 genType <a class="code" href="a00241.html#ga35d133d689062739c8dad60b7e399bbe" title="Get a specific row of a matrix.">row</a>(
|
||||
<a name="l00041"></a>00041 genType <span class="keyword">const</span> & m,
|
||||
<a name="l00042"></a>00042 <span class="keywordtype">int</span> index,
|
||||
<a name="l00043"></a>00043 <span class="keyword">typename</span> genType::row_type <span class="keyword">const</span> & x);
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00047"></a>00047 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00048"></a>00048 <span class="keyword">typename</span> genType::col_type <a class="code" href="a00241.html#ga0e92f78abad525682684b0c262bbffe4" title="Get a specific column of a matrix.">column</a>(
|
||||
<a name="l00049"></a>00049 genType <span class="keyword">const</span> & m,
|
||||
<a name="l00050"></a>00050 <span class="keywordtype">int</span> index);
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00054"></a>00054 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00055"></a>00055 genType <a class="code" href="a00241.html#ga0e92f78abad525682684b0c262bbffe4" title="Get a specific column of a matrix.">column</a>(
|
||||
<a name="l00056"></a>00056 genType <span class="keyword">const</span> & m,
|
||||
<a name="l00057"></a>00057 <span class="keywordtype">int</span> index,
|
||||
<a name="l00058"></a>00058 <span class="keyword">typename</span> genType::col_type <span class="keyword">const</span> & x);
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00062"></a>00062 }<span class="comment">//namespace matrix_access</span>
|
||||
<a name="l00063"></a>00063 }<span class="comment">//namespace gtc</span>
|
||||
<a name="l00064"></a>00064 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00066"></a>00066 <span class="preprocessor">#include "matrix_access.inl"</span>
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00068"></a>00068 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtc::matrix_access;}
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00070"></a>00070 <span class="preprocessor">#endif//glm_gtc_matrix_access</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,87 +0,0 @@
|
||||
<!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>matrix_cross_product.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">matrix_cross_product.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2006-11-13</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/matrix_cross_product.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_matrix_cross_product</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_matrix_cross_product</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_matrix_cross_product extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00191.html">00025</a> <span class="keyword">namespace </span>matrix_cross_product
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00033"></a>00033 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00270.html#gaa153d0f2600403c659a81a39b59b0f2c" title="Build a cross product matrix.">matrixCross3</a>(
|
||||
<a name="l00034"></a>00034 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00038"></a>00038 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00039"></a>00039 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00270.html#ga8cb94c98874b9b3deff5ad590e0cac23" title="Build a cross product matrix.">matrixCross4</a>(
|
||||
<a name="l00040"></a>00040 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00043"></a>00043 }<span class="comment">//namespace matrix_cross_product</span>
|
||||
<a name="l00044"></a>00044 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00045"></a>00045 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a>00047 <span class="preprocessor">#include "matrix_cross_product.inl"</span>
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00049"></a>00049 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::matrix_cross_product;}
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00051"></a>00051 <span class="preprocessor">#endif//glm_gtx_matrix_cross_product</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,98 +0,0 @@
|
||||
<!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>matrix_interpolation.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">matrix_interpolation.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2011-03-05</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2011-03-05</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/matrix_interpolation.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTX_matric_interpolation</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span><span class="comment">// This extension has been written by Ghenadii Ursachi (the.asteroth@gmail.com)</span>
|
||||
<a name="l00015"></a>00015 <span class="comment"></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#ifndef glm_gtx_matrix_interpolation</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_matrix_interpolation</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span>
|
||||
<a name="l00019"></a>00019 <span class="comment">// Dependency:</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">//#include "../glm.hpp"</span>
|
||||
<a name="l00021"></a>00021
|
||||
<a name="l00022"></a>00022 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_matrix_interpolation extension included")</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor"></span>
|
||||
<a name="l00026"></a>00026 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00027"></a>00027 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00028"></a><a class="code" href="a00192.html">00028</a> <span class="keyword">namespace </span>matrix_interpolation
|
||||
<a name="l00029"></a>00029 {
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00035"></a>00035 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00036"></a>00036 <span class="keywordtype">void</span> <a class="code" href="a00306.html#ga92bfeca9adbb485dc0228138d3fd614e" title="Get the axis and angle of the rotation from a matrix.">axisAngle</a>(
|
||||
<a name="l00037"></a>00037 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & mat,
|
||||
<a name="l00038"></a>00038 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> & <a class="code" href="a00286.html#ga6dd1904e2a6cc8e54bd324994094a6f9" title="Returns the q rotation axis.">axis</a>,
|
||||
<a name="l00039"></a>00039 T & <a class="code" href="a00286.html#ga6a3387a7d60728f60d86546b2f4d4d30" title="Returns the quaternion rotation angle.">angle</a>);
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00043"></a>00043 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00044"></a>00044 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00306.html#ga8d784d02e76a1411bd16e357e9e78279" title="Build a matrix from axis and angle.">axisAngleMatrix</a>(
|
||||
<a name="l00045"></a>00045 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & axis,
|
||||
<a name="l00046"></a>00046 T <span class="keyword">const</span> angle);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00051"></a>00051 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00052"></a>00052 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00306.html#ga3a26ef5b04c25263a647ee828faa3bb4" title="Build a interpolation of 4 * 4 matrixes.">interpolate</a>(
|
||||
<a name="l00053"></a>00053 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00054"></a>00054 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & m2,
|
||||
<a name="l00055"></a>00055 T <span class="keyword">const</span> delta);
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00058"></a>00058 }<span class="comment">//namespace matrix_interpolation</span>
|
||||
<a name="l00059"></a>00059 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00060"></a>00060 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00062"></a>00062 <span class="preprocessor">#include "matrix_interpolation.inl"</span>
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::matrix_interpolation;}
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00066"></a>00066 <span class="preprocessor">#endif//glm_gtx_transform</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,87 +0,0 @@
|
||||
<!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>matrix_inverse.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">matrix_inverse.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-12-13</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtc/matrix_inverse.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtc_matrix_inverse</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtc_matrix_inverse</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTC_matrix_inverse extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtc{
|
||||
<a name="l00025"></a><a class="code" href="a00162.html">00025</a> <span class="keyword">namespace </span>matrix_inverse
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00033"></a>00033 genType <a class="code" href="a00243.html#gade90330b2e6ef1b27371498cab1c38da" title="Fast matrix inverse for affine matrix.">affineInverse</a>(genType <span class="keyword">const</span> & m);
|
||||
<a name="l00034"></a>00034
|
||||
<a name="l00037"></a>00037 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00038"></a>00038 GLM_FUNC_QUALIFIER <span class="keyword">typename</span> genType::value_type <a class="code" href="a00243.html#ga1df67bb7d1c4c89484ac57c5cc09c7a3" title="Compute the inverse transpose of a matrix.">inverseTranspose</a>(
|
||||
<a name="l00039"></a>00039 genType <span class="keyword">const</span> & m);
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00043"></a>00043 }<span class="comment">//namespace matrix_inverse</span>
|
||||
<a name="l00044"></a>00044 }<span class="comment">//namespace gtc</span>
|
||||
<a name="l00045"></a>00045 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a>00047 <span class="preprocessor">#include "matrix_inverse.inl"</span>
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00049"></a>00049 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtc::matrix_inverse;}
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00051"></a>00051 <span class="preprocessor">#endif//glm_gtc_matrix_inverse</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,139 +0,0 @@
|
||||
<!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>matrix_major_storage.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">matrix_major_storage.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2006-04-19</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-02-19</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/matrix_major_storage.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_matrix_major_storage</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_matrix_major_storage</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_matrix_major_storage extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00193.html">00025</a> <span class="keyword">namespace </span>matrix_major_storage
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00033"></a>00033 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a> <a class="code" href="a00271.html#ga136490f7562fa59d7733e2664f8c9fbb" title="Build a row major matrix from row vectors.">rowMajor2</a>(
|
||||
<a name="l00034"></a>00034 <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& v1,
|
||||
<a name="l00035"></a>00035 <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& v2);
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00039"></a>00039 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00040"></a>00040 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a> <a class="code" href="a00271.html#ga136490f7562fa59d7733e2664f8c9fbb" title="Build a row major matrix from row vectors.">rowMajor2</a>(
|
||||
<a name="l00041"></a>00041 <span class="keyword">const</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a>& m);
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00045"></a>00045 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00046"></a>00046 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00271.html#ga276a9398b180d8028b4a73fb9e675a23" title="Build a row major matrix from row vectors.">rowMajor3</a>(
|
||||
<a name="l00047"></a>00047 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& v1,
|
||||
<a name="l00048"></a>00048 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& v2,
|
||||
<a name="l00049"></a>00049 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& v3);
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00053"></a>00053 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00054"></a>00054 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00271.html#ga276a9398b180d8028b4a73fb9e675a23" title="Build a row major matrix from row vectors.">rowMajor3</a>(
|
||||
<a name="l00055"></a>00055 <span class="keyword">const</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a>& m);
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00059"></a>00059 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00060"></a>00060 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00271.html#gae1d60e551ab2912d6bb32a999c65b932" title="Build a row major matrix from row vectors.">rowMajor4</a>(
|
||||
<a name="l00061"></a>00061 <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& v1,
|
||||
<a name="l00062"></a>00062 <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& v2,
|
||||
<a name="l00063"></a>00063 <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& v3,
|
||||
<a name="l00064"></a>00064 <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& v4);
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00068"></a>00068 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00069"></a>00069 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00271.html#gae1d60e551ab2912d6bb32a999c65b932" title="Build a row major matrix from row vectors.">rowMajor4</a>(
|
||||
<a name="l00070"></a>00070 <span class="keyword">const</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a>& m);
|
||||
<a name="l00071"></a>00071
|
||||
<a name="l00074"></a>00074 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00075"></a>00075 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a> <a class="code" href="a00271.html#ga340582d0baf34cf642a6f2ffa34d1d12" title="Build a column major matrix from column vectors.">colMajor2</a>(
|
||||
<a name="l00076"></a>00076 <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& v1,
|
||||
<a name="l00077"></a>00077 <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& v2);
|
||||
<a name="l00078"></a>00078
|
||||
<a name="l00081"></a>00081 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00082"></a>00082 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a> <a class="code" href="a00271.html#ga340582d0baf34cf642a6f2ffa34d1d12" title="Build a column major matrix from column vectors.">colMajor2</a>(
|
||||
<a name="l00083"></a>00083 <span class="keyword">const</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a>& m);
|
||||
<a name="l00084"></a>00084
|
||||
<a name="l00087"></a>00087 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00088"></a>00088 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00271.html#ga2951b0d82dcc941092fcca1035d789e1" title="Build a column major matrix from column vectors.">colMajor3</a>(
|
||||
<a name="l00089"></a>00089 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& v1,
|
||||
<a name="l00090"></a>00090 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& v2,
|
||||
<a name="l00091"></a>00091 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& v3);
|
||||
<a name="l00092"></a>00092
|
||||
<a name="l00095"></a>00095 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00096"></a>00096 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00271.html#ga2951b0d82dcc941092fcca1035d789e1" title="Build a column major matrix from column vectors.">colMajor3</a>(
|
||||
<a name="l00097"></a>00097 <span class="keyword">const</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a>& m);
|
||||
<a name="l00098"></a>00098
|
||||
<a name="l00101"></a>00101 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00102"></a>00102 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00271.html#ga03d1d5a138cc0b75a380376e6c114d6c" title="Build a column major matrix from column vectors.">colMajor4</a>(
|
||||
<a name="l00103"></a>00103 <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& v1,
|
||||
<a name="l00104"></a>00104 <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& v2,
|
||||
<a name="l00105"></a>00105 <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& v3,
|
||||
<a name="l00106"></a>00106 <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& v4);
|
||||
<a name="l00107"></a>00107
|
||||
<a name="l00110"></a>00110 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00111"></a>00111 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00271.html#ga03d1d5a138cc0b75a380376e6c114d6c" title="Build a column major matrix from column vectors.">colMajor4</a>(
|
||||
<a name="l00112"></a>00112 <span class="keyword">const</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a>& m);
|
||||
<a name="l00113"></a>00113
|
||||
<a name="l00115"></a>00115 }<span class="comment">//namespace matrix_major_storage</span>
|
||||
<a name="l00116"></a>00116 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00117"></a>00117 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00118"></a>00118
|
||||
<a name="l00119"></a>00119 <span class="preprocessor">#include "matrix_major_storage.inl"</span>
|
||||
<a name="l00120"></a>00120
|
||||
<a name="l00121"></a>00121 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::matrix_major_storage;}
|
||||
<a name="l00122"></a>00122
|
||||
<a name="l00123"></a>00123 <span class="preprocessor">#endif//glm_gtx_matrix_major_storage</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,115 +0,0 @@
|
||||
<!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>matrix_operation.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">matrix_operation.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-08-29</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-08-29</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/matrix_operation.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_matrix_operation</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_matrix_operation</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_matrix_operation extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00194.html">00025</a> <span class="keyword">namespace </span>matrix_operation
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00033"></a>00033 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<valType></a> <a class="code" href="a00272.html#gae2848e38a4533d20f5e7af384440d4d6" title="Build a diagonal matrix.">diagonal2x2</a>(
|
||||
<a name="l00034"></a>00034 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<valType></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00038"></a>00038 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00039"></a>00039 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3<valType></a> <a class="code" href="a00272.html#ga61c9061e742d63c52cde17c0bc47a9f3" title="Build a diagonal matrix.">diagonal2x3</a>(
|
||||
<a name="l00040"></a>00040 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<valType></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00044"></a>00044 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00045"></a>00045 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4<valType></a> <a class="code" href="a00272.html#ga1a2d2575b5a228370228d0ab34e704aa" title="Build a diagonal matrix.">diagonal2x4</a>(
|
||||
<a name="l00046"></a>00046 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<valType></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00051"></a>00051 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2<valType></a> <a class="code" href="a00272.html#ga5e0245ab431bc049e69abeaaaaf2f455" title="Build a diagonal matrix.">diagonal3x2</a>(
|
||||
<a name="l00052"></a>00052 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<valType></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00056"></a>00056 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00057"></a>00057 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<valType></a> <a class="code" href="a00272.html#gacdd60defc29a8d1aa6be63387d3da76a" title="Build a diagonal matrix.">diagonal3x3</a>(
|
||||
<a name="l00058"></a>00058 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00062"></a>00062 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00063"></a>00063 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4<valType></a> <a class="code" href="a00272.html#ga3fb59fa3dd6a1db3a8712bcc0c92c926" title="Build a diagonal matrix.">diagonal3x4</a>(
|
||||
<a name="l00064"></a>00064 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00068"></a>00068 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00069"></a>00069 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2<valType></a> <a class="code" href="a00272.html#ga25edcc4359dc5a420df609bec1a83289" title="Build a diagonal matrix.">diagonal4x2</a>(
|
||||
<a name="l00070"></a>00070 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<valType></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00071"></a>00071
|
||||
<a name="l00074"></a>00074 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00075"></a>00075 <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">detail::tmat4x3<valType></a> <a class="code" href="a00272.html#ga7b855b1e9e014561a5edcd8cfd928fcc" title="Build a diagonal matrix.">diagonal4x3</a>(
|
||||
<a name="l00076"></a>00076 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00077"></a>00077
|
||||
<a name="l00080"></a>00080 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00081"></a>00081 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00272.html#ga2b8a31afd6c7a64309810db58a35a6e8" title="Build a diagonal matrix.">diagonal4x4</a>(
|
||||
<a name="l00082"></a>00082 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<valType></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00083"></a>00083
|
||||
<a name="l00085"></a>00085 }<span class="comment">//namespace matrix_operation</span>
|
||||
<a name="l00086"></a>00086 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00087"></a>00087 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00088"></a>00088
|
||||
<a name="l00089"></a>00089 <span class="preprocessor">#include "matrix_operation.inl"</span>
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00091"></a>00091 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::matrix_operation;}
|
||||
<a name="l00092"></a>00092
|
||||
<a name="l00093"></a>00093 <span class="preprocessor">#endif//glm_gtx_matrix_operation</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,120 +0,0 @@
|
||||
<!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>matrix_query.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">matrix_query.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2007-03-05</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2007-03-05</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/matrix_query.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTX_matrix_query</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_matrix_query</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_matrix_query</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_matrix_query extension included")</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span>
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00026"></a><a class="code" href="a00195.html">00026</a> <span class="keyword">namespace </span>matrix_query
|
||||
<a name="l00027"></a>00027 {
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00033"></a>00033 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
||||
<a name="l00034"></a>00034 <span class="keywordtype">bool</span> <a class="code" href="a00273.html#ga3ea08cf50837874a590ef71c78500b5e" title="Return if a matrix a null matrix.">isNull</a>(
|
||||
<a name="l00035"></a>00035 <span class="keyword">const</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a>& m,
|
||||
<a name="l00036"></a>00036 <span class="keyword">const</span> T epsilon = std::numeric_limits<T>::epsilon());
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00040"></a>00040 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
||||
<a name="l00041"></a>00041 <span class="keywordtype">bool</span> <a class="code" href="a00273.html#ga3ea08cf50837874a590ef71c78500b5e" title="Return if a matrix a null matrix.">isNull</a>(
|
||||
<a name="l00042"></a>00042 <span class="keyword">const</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a>& m,
|
||||
<a name="l00043"></a>00043 <span class="keyword">const</span> T epsilon = std::numeric_limits<T>::epsilon());
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00047"></a>00047 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
||||
<a name="l00048"></a>00048 <span class="keywordtype">bool</span> <a class="code" href="a00273.html#ga3ea08cf50837874a590ef71c78500b5e" title="Return if a matrix a null matrix.">isNull</a>(
|
||||
<a name="l00049"></a>00049 <span class="keyword">const</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a>& m,
|
||||
<a name="l00050"></a>00050 <span class="keyword">const</span> T epsilon = std::numeric_limits<T>::epsilon());
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00054"></a>00054 <span class="keyword">template</span><<span class="keyword">typename</span> genType>
|
||||
<a name="l00055"></a>00055 <span class="keywordtype">bool</span> <a class="code" href="a00273.html#ga131e3e65bd8a1ac035f849483631f122" title="Return if a matrix an identity matrix.">isIdentity</a>(
|
||||
<a name="l00056"></a>00056 <span class="keyword">const</span> genType& m,
|
||||
<a name="l00057"></a>00057 <span class="keyword">const</span> <span class="keyword">typename</span> genType::value_type epsilon = std::numeric_limits<typename genType::value_type>::epsilon());
|
||||
<a name="l00058"></a>00058
|
||||
<a name="l00061"></a>00061 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
||||
<a name="l00062"></a>00062 <span class="keywordtype">bool</span> <a class="code" href="a00273.html#ga4c3e999f20d9b74852a61ef5772f3f02" title="Return if a matrix a normalized matrix.">isNormalized</a>(
|
||||
<a name="l00063"></a>00063 <span class="keyword">const</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a>& m,
|
||||
<a name="l00064"></a>00064 <span class="keyword">const</span> T epsilon = std::numeric_limits<T>::epsilon());
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00068"></a>00068 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
||||
<a name="l00069"></a>00069 <span class="keywordtype">bool</span> <a class="code" href="a00273.html#ga4c3e999f20d9b74852a61ef5772f3f02" title="Return if a matrix a normalized matrix.">isNormalized</a>(
|
||||
<a name="l00070"></a>00070 <span class="keyword">const</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a>& m,
|
||||
<a name="l00071"></a>00071 <span class="keyword">const</span> T epsilon = std::numeric_limits<T>::epsilon());
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00075"></a>00075 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
||||
<a name="l00076"></a>00076 <span class="keywordtype">bool</span> <a class="code" href="a00273.html#ga4c3e999f20d9b74852a61ef5772f3f02" title="Return if a matrix a normalized matrix.">isNormalized</a>(
|
||||
<a name="l00077"></a>00077 <span class="keyword">const</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a>& m,
|
||||
<a name="l00078"></a>00078 <span class="keyword">const</span> T epsilon = std::numeric_limits<T>::epsilon());
|
||||
<a name="l00079"></a>00079
|
||||
<a name="l00082"></a>00082 <span class="keyword">template</span><<span class="keyword">typename</span> genType>
|
||||
<a name="l00083"></a>00083 <span class="keywordtype">bool</span> <a class="code" href="a00273.html#ga87823a9c3fb605773789866fc31f60e8" title="Return if a matrix an orthonormalized matrix.">isOrthogonal</a>(
|
||||
<a name="l00084"></a>00084 <span class="keyword">const</span> genType& m,
|
||||
<a name="l00085"></a>00085 <span class="keyword">const</span> <span class="keyword">typename</span> genType::value_type epsilon = std::numeric_limits<typename genType::value_type>::epsilon());
|
||||
<a name="l00086"></a>00086
|
||||
<a name="l00088"></a>00088 }<span class="comment">//namespace matrix_query</span>
|
||||
<a name="l00089"></a>00089 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00090"></a>00090 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00091"></a>00091
|
||||
<a name="l00092"></a>00092 <span class="preprocessor">#include "matrix_query.inl"</span>
|
||||
<a name="l00093"></a>00093
|
||||
<a name="l00094"></a>00094 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::matrix_query;}
|
||||
<a name="l00095"></a>00095
|
||||
<a name="l00096"></a>00096 <span class="preprocessor">#endif//glm_gtx_matrix_query</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,170 +0,0 @@
|
||||
<!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>matrix_transform.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">matrix_transform.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-04-29</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-04-29</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtc/matrix_transform.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTC_matrix_operation</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtc_matrix_transform</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtc_matrix_transform</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTC_matrix_transform extension included")</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span>
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>gtc{
|
||||
<a name="l00026"></a><a class="code" href="a00163.html">00026</a> <span class="keyword">namespace </span>matrix_transform
|
||||
<a name="l00027"></a>00027 {
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00033"></a>00033 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00034"></a>00034 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00244.html#ga4683c446c8432476750ade56f2537397" title="Builds a translation 4 * 4 matrix created from a vector of 3 components.">translate</a>(
|
||||
<a name="l00035"></a>00035 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00036"></a>00036 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00040"></a>00040 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00041"></a>00041 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00244.html#ga48168ff70412019857ceb28b3b2b1f5e" title="Builds a rotation 4 * 4 matrix created from an axis vector and an angle expressed in degrees...">rotate</a>(
|
||||
<a name="l00042"></a>00042 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00043"></a>00043 T <span class="keyword">const</span> & <a class="code" href="a00286.html#ga6a3387a7d60728f60d86546b2f4d4d30" title="Returns the quaternion rotation angle.">angle</a>,
|
||||
<a name="l00044"></a>00044 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00048"></a>00048 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00049"></a>00049 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00244.html#ga6da77ee2c33d0d33de557a37ff35b197" title="Builds a scale 4 * 4 matrix created from 3 scalars.">scale</a>(
|
||||
<a name="l00050"></a>00050 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00051"></a>00051 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00055"></a>00055 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00056"></a>00056 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00244.html#gad25e5b029ebefac5b657861378c17aa8" title="Creates a matrix for an orthographic parallel viewing volume.">ortho</a>(
|
||||
<a name="l00057"></a>00057 T <span class="keyword">const</span> & left,
|
||||
<a name="l00058"></a>00058 T <span class="keyword">const</span> & right,
|
||||
<a name="l00059"></a>00059 T <span class="keyword">const</span> & bottom,
|
||||
<a name="l00060"></a>00060 T <span class="keyword">const</span> & top,
|
||||
<a name="l00061"></a>00061 T <span class="keyword">const</span> & zNear,
|
||||
<a name="l00062"></a>00062 T <span class="keyword">const</span> & zFar);
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00066"></a>00066 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00067"></a>00067 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00244.html#gad25e5b029ebefac5b657861378c17aa8" title="Creates a matrix for an orthographic parallel viewing volume.">ortho</a>(
|
||||
<a name="l00068"></a>00068 T <span class="keyword">const</span> & left,
|
||||
<a name="l00069"></a>00069 T <span class="keyword">const</span> & right,
|
||||
<a name="l00070"></a>00070 T <span class="keyword">const</span> & bottom,
|
||||
<a name="l00071"></a>00071 T <span class="keyword">const</span> & top);
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00075"></a>00075 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00076"></a>00076 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00244.html#ga517623bf6344a9e276b877366143116a" title="Creates a frustum matrix.">frustum</a>(
|
||||
<a name="l00077"></a>00077 T <span class="keyword">const</span> & left,
|
||||
<a name="l00078"></a>00078 T <span class="keyword">const</span> & right,
|
||||
<a name="l00079"></a>00079 T <span class="keyword">const</span> & bottom,
|
||||
<a name="l00080"></a>00080 T <span class="keyword">const</span> & top,
|
||||
<a name="l00081"></a>00081 T <span class="keyword">const</span> & nearVal,
|
||||
<a name="l00082"></a>00082 T <span class="keyword">const</span> & farVal);
|
||||
<a name="l00083"></a>00083
|
||||
<a name="l00086"></a>00086 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00087"></a>00087 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00244.html#ga1bb3652e43f824d8c1dd5b9e60c80437" title="Creates a matrix for a symetric perspective-view frustum.">perspective</a>(
|
||||
<a name="l00088"></a>00088 T <span class="keyword">const</span> & fovy,
|
||||
<a name="l00089"></a>00089 T <span class="keyword">const</span> & aspect,
|
||||
<a name="l00090"></a>00090 T <span class="keyword">const</span> & zNear,
|
||||
<a name="l00091"></a>00091 T <span class="keyword">const</span> & zFar);
|
||||
<a name="l00092"></a>00092
|
||||
<a name="l00095"></a>00095 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00096"></a>00096 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00244.html#ga2d4fab691ace1abbffb3cdd4cc2316e9" title="Builds a perspective projection matrix based on a field of view From GLM_GTC_matrix_transform extensi...">perspectiveFov</a>(
|
||||
<a name="l00097"></a>00097 valType <span class="keyword">const</span> & fov,
|
||||
<a name="l00098"></a>00098 valType <span class="keyword">const</span> & width,
|
||||
<a name="l00099"></a>00099 valType <span class="keyword">const</span> & height,
|
||||
<a name="l00100"></a>00100 valType <span class="keyword">const</span> & zNear,
|
||||
<a name="l00101"></a>00101 valType <span class="keyword">const</span> & zFar);
|
||||
<a name="l00102"></a>00102
|
||||
<a name="l00105"></a>00105 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00106"></a>00106 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00244.html#gab8bb0d61dfe8a35df79ee3ccc6dd9afe" title="Creates a matrix for a symmetric perspective-view frustum with far plane at infinite ...">infinitePerspective</a>(
|
||||
<a name="l00107"></a>00107 T fovy, T aspect, T zNear);
|
||||
<a name="l00108"></a>00108
|
||||
<a name="l00111"></a>00111 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00112"></a>00112 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00244.html#gac257959595078f003d6a0e4be6f9a2eb" title="Creates a matrix for a symmetric perspective-view frustum with far plane at infinite for graphics har...">tweakedInfinitePerspective</a>(
|
||||
<a name="l00113"></a>00113 T fovy, T aspect, T zNear);
|
||||
<a name="l00114"></a>00114
|
||||
<a name="l00117"></a>00117 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U>
|
||||
<a name="l00118"></a>00118 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00244.html#ga30e98d64189bae49582de8373de9f09f" title="Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates.">project</a>(
|
||||
<a name="l00119"></a>00119 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & obj,
|
||||
<a name="l00120"></a>00120 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & model,
|
||||
<a name="l00121"></a>00121 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & <a class="code" href="a00285.html#ga2bf24fe9717e1711a4f454430c79d726" title="Projects x on Normal.">proj</a>,
|
||||
<a name="l00122"></a>00122 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<U></a> <span class="keyword">const</span> & viewport);
|
||||
<a name="l00123"></a>00123
|
||||
<a name="l00126"></a>00126 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U>
|
||||
<a name="l00127"></a>00127 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00244.html#gac38d611231b15799a0c06c54ff1ede43" title="Map the specified window coordinates (win.x, win.y, win.z) into object coordinates.">unProject</a>(
|
||||
<a name="l00128"></a>00128 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & win,
|
||||
<a name="l00129"></a>00129 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & model,
|
||||
<a name="l00130"></a>00130 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & proj,
|
||||
<a name="l00131"></a>00131 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<U></a> <span class="keyword">const</span> & viewport);
|
||||
<a name="l00132"></a>00132
|
||||
<a name="l00135"></a>00135 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U>
|
||||
<a name="l00136"></a>00136 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00244.html#ga9ebc45c333c8ec63c5047d6c1fcb9415" title="Define a picking region From GLM_GTC_matrix_transform extension.">pickMatrix</a>(
|
||||
<a name="l00137"></a>00137 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <span class="keyword">const</span> & center,
|
||||
<a name="l00138"></a>00138 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <span class="keyword">const</span> & delta,
|
||||
<a name="l00139"></a>00139 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<U></a> <span class="keyword">const</span> & viewport);
|
||||
<a name="l00140"></a>00140
|
||||
<a name="l00143"></a>00143 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00144"></a>00144 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00244.html#ga2d6b6c381f047ea4d9ca4145fed9edd5" title="Build a look at view matrix.">lookAt</a>(
|
||||
<a name="l00145"></a>00145 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & eye,
|
||||
<a name="l00146"></a>00146 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & center,
|
||||
<a name="l00147"></a>00147 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & up);
|
||||
<a name="l00148"></a>00148
|
||||
<a name="l00150"></a>00150 }<span class="comment">//namespace matrix_transform</span>
|
||||
<a name="l00151"></a>00151 }<span class="comment">//namespace gtc</span>
|
||||
<a name="l00152"></a>00152 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00153"></a>00153
|
||||
<a name="l00154"></a>00154 <span class="preprocessor">#include "matrix_transform.inl"</span>
|
||||
<a name="l00155"></a>00155
|
||||
<a name="l00156"></a>00156 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtc::matrix_transform;}
|
||||
<a name="l00157"></a>00157
|
||||
<a name="l00158"></a>00158 <span class="preprocessor">#endif//glm_gtc_matrix_transform</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,85 +0,0 @@
|
||||
<!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>mixed_product.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">mixed_product.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2007-04-03</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-09-17</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/mixed_product.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_mixed_product</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_mixed_product</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_mixed_product extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00196.html">00025</a> <span class="keyword">namespace </span>mixed_product
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00031"></a>00031 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00032"></a>00032 valType <a class="code" href="a00274.html#gacd91c1d0c25c158ab83965b98553970d" title="Mixed product of 3 vectors (from GLM_GTX_mixed_product extension)">mixedProduct</a>(
|
||||
<a name="l00033"></a>00033 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & v1,
|
||||
<a name="l00034"></a>00034 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & v2,
|
||||
<a name="l00035"></a>00035 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & v3);
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00038"></a>00038 }<span class="comment">// namespace mixed_product</span>
|
||||
<a name="l00039"></a>00039 }<span class="comment">// namespace gtx</span>
|
||||
<a name="l00040"></a>00040 }<span class="comment">// namespace glm</span>
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00042"></a>00042 <span class="preprocessor">#include "mixed_product.inl"</span>
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00044"></a>00044 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::mixed_product;}
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00046"></a>00046 <span class="preprocessor">#endif//glm_gtx_mixed_product</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,89 +0,0 @@
|
||||
<!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>multiple.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">multiple.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-10-26</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-10-26</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/multiple.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_multiple</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_multiple</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_multiple extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00197.html">00025</a> <span class="keyword">namespace </span>multiple
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00033"></a>00033 genType <a class="code" href="a00275.html#ga417f3ba2d04c2fa9ffdeca47b0ad0443" title="Higher Multiple number of Source.">higherMultiple</a>(
|
||||
<a name="l00034"></a>00034 genType <span class="keyword">const</span> & Source,
|
||||
<a name="l00035"></a>00035 genType <span class="keyword">const</span> & Multiple);
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00039"></a>00039 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00040"></a>00040 genType <a class="code" href="a00275.html#ga28760c297ccc5f54111d4469dc1bd1f6" title="Lower Multiple number of Source.">lowerMultiple</a>(
|
||||
<a name="l00041"></a>00041 genType <span class="keyword">const</span> & Source,
|
||||
<a name="l00042"></a>00042 genType <span class="keyword">const</span> & Multiple);
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00045"></a>00045 }<span class="comment">//namespace multiple</span>
|
||||
<a name="l00046"></a>00046 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00047"></a>00047 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00049"></a>00049 <span class="preprocessor">#include "multiple.inl"</span>
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00051"></a>00051 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::multiple;}
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00053"></a>00053 <span class="preprocessor">#endif//glm_gtx_multiple</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,96 +0,0 @@
|
||||
<!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>noise.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">noise.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Based on the work of Stefan Gustavson and Ashima Arts on "webgl-noise": </span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// https://github.com/ashima/webgl-noise </span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Following Stefan Gustavson's paper "Simplex noise demystified": </span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// http://www.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Created : 2011-04-21</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// Updated : 2011-04-21</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">// File : glm/gtx/noise.hpp</span>
|
||||
<a name="l00014"></a>00014 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">// - GLM core</span>
|
||||
<a name="l00017"></a>00017 <span class="comment"></span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef glm_gtx_noise</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_noise</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span>
|
||||
<a name="l00021"></a>00021 <span class="comment">// Dependency:</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00023"></a>00023
|
||||
<a name="l00024"></a>00024 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_noise extension included")</span>
|
||||
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00027"></a>00027 <span class="preprocessor"></span>
|
||||
<a name="l00028"></a>00028 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00029"></a>00029 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00030"></a><a class="code" href="a00198.html">00030</a> <span class="keyword">namespace </span>noise
|
||||
<a name="l00031"></a>00031 {
|
||||
<a name="l00034"></a>00034
|
||||
<a name="l00037"></a>00037 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span><<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00038"></a>00038 T <a class="code" href="a00307.html#ga9de9e66368f398a09105fedeafbebb3e" title="Classic perlin noise.">perlin</a>(
|
||||
<a name="l00039"></a>00039 vecType<T> <span class="keyword">const</span> & p);
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00043"></a>00043 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span><<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00044"></a>00044 T <a class="code" href="a00307.html#ga9de9e66368f398a09105fedeafbebb3e" title="Classic perlin noise.">perlin</a>(
|
||||
<a name="l00045"></a>00045 vecType<T> <span class="keyword">const</span> & p,
|
||||
<a name="l00046"></a>00046 vecType<T> <span class="keyword">const</span> & rep);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span><<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00051"></a>00051 T <a class="code" href="a00307.html#gaab96cbe99e3757bb55c7d830462fab94" title="Simplex noise.">simplex</a>(
|
||||
<a name="l00052"></a>00052 vecType<T> <span class="keyword">const</span> & p);
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00055"></a>00055 }<span class="comment">//namespace noise</span>
|
||||
<a name="l00056"></a>00056 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00057"></a>00057 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00058"></a>00058
|
||||
<a name="l00059"></a>00059 <span class="preprocessor">#include "noise.inl"</span>
|
||||
<a name="l00060"></a>00060
|
||||
<a name="l00061"></a>00061 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::noise;}
|
||||
<a name="l00062"></a>00062
|
||||
<a name="l00063"></a>00063 <span class="preprocessor">#endif//glm_gtx_noise</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,152 +0,0 @@
|
||||
<!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>norm.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">norm.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-07-24</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/norm.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTX_quaternion</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span><span class="comment">// ToDo:</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">// - Study the validity of the notion of length2 to quaternion</span>
|
||||
<a name="l00016"></a>00016 <span class="comment"></span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef glm_gtx_norm</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_norm</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor"></span>
|
||||
<a name="l00020"></a>00020 <span class="comment">// Dependency:</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor">#include "../gtx/quaternion.hpp"</span>
|
||||
<a name="l00023"></a>00023
|
||||
<a name="l00024"></a>00024 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_norm extension included")</span>
|
||||
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00027"></a>00027 <span class="preprocessor"></span>
|
||||
<a name="l00028"></a>00028 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00029"></a>00029 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00030"></a><a class="code" href="a00199.html">00030</a> <span class="keyword">namespace </span>norm
|
||||
<a name="l00031"></a>00031 {
|
||||
<a name="l00034"></a>00034
|
||||
<a name="l00037"></a>00037 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00038"></a>00038 T <a class="code" href="a00276.html#ga461cea3ee3b98f8fcfea856def1f0ede" title="Returns the squared length of x.">length2</a>(
|
||||
<a name="l00039"></a>00039 <span class="keyword">const</span> T x);
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00043"></a>00043 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00044"></a>00044 T <a class="code" href="a00276.html#ga461cea3ee3b98f8fcfea856def1f0ede" title="Returns the squared length of x.">length2</a>(
|
||||
<a name="l00045"></a>00045 <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> & x);
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00049"></a>00049 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00050"></a>00050 T <a class="code" href="a00276.html#ga461cea3ee3b98f8fcfea856def1f0ede" title="Returns the squared length of x.">length2</a>(
|
||||
<a name="l00051"></a>00051 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& x);
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00055"></a>00055 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00056"></a>00056 T <a class="code" href="a00276.html#ga461cea3ee3b98f8fcfea856def1f0ede" title="Returns the squared length of x.">length2</a>(
|
||||
<a name="l00057"></a>00057 <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& x);
|
||||
<a name="l00058"></a>00058
|
||||
<a name="l00061"></a>00061 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00062"></a>00062 T <a class="code" href="a00276.html#ga461cea3ee3b98f8fcfea856def1f0ede" title="Returns the squared length of x.">length2</a>(
|
||||
<a name="l00063"></a>00063 <span class="keyword">const</span> <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a>& q);
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00067"></a>00067 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00068"></a>00068 T <a class="code" href="a00276.html#ga8ced68108693319d844c896d3e8a2887" title="Returns the squared distance between p0 and p1, i.e., length(p0 - p1).">distance2</a>(
|
||||
<a name="l00069"></a>00069 <span class="keyword">const</span> T p0,
|
||||
<a name="l00070"></a>00070 <span class="keyword">const</span> T p1);
|
||||
<a name="l00071"></a>00071
|
||||
<a name="l00074"></a>00074 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00075"></a>00075 T <a class="code" href="a00276.html#ga8ced68108693319d844c896d3e8a2887" title="Returns the squared distance between p0 and p1, i.e., length(p0 - p1).">distance2</a>(
|
||||
<a name="l00076"></a>00076 <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& p0,
|
||||
<a name="l00077"></a>00077 <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& p1);
|
||||
<a name="l00078"></a>00078
|
||||
<a name="l00081"></a>00081 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00082"></a>00082 T <a class="code" href="a00276.html#ga8ced68108693319d844c896d3e8a2887" title="Returns the squared distance between p0 and p1, i.e., length(p0 - p1).">distance2</a>(
|
||||
<a name="l00083"></a>00083 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& p0,
|
||||
<a name="l00084"></a>00084 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& p1);
|
||||
<a name="l00085"></a>00085
|
||||
<a name="l00088"></a>00088 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00089"></a>00089 T <a class="code" href="a00276.html#ga8ced68108693319d844c896d3e8a2887" title="Returns the squared distance between p0 and p1, i.e., length(p0 - p1).">distance2</a>(
|
||||
<a name="l00090"></a>00090 <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& p0,
|
||||
<a name="l00091"></a>00091 <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& p1);
|
||||
<a name="l00092"></a>00092
|
||||
<a name="l00095"></a>00095 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00096"></a>00096 T <a class="code" href="a00276.html#gab9942ce9c9a3de0fcb2b2d1a7eea5d1b" title="Returns the L1 norm between x and y.">l1Norm</a>(
|
||||
<a name="l00097"></a>00097 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& x,
|
||||
<a name="l00098"></a>00098 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& y);
|
||||
<a name="l00099"></a>00099
|
||||
<a name="l00102"></a>00102 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00103"></a>00103 T <a class="code" href="a00276.html#gab9942ce9c9a3de0fcb2b2d1a7eea5d1b" title="Returns the L1 norm between x and y.">l1Norm</a>(
|
||||
<a name="l00104"></a>00104 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& v);
|
||||
<a name="l00105"></a>00105
|
||||
<a name="l00108"></a>00108 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00109"></a>00109 T <a class="code" href="a00276.html#ga2963700ea5540e339e021733f9b1c285" title="Returns the L2 norm between x and y.">l2Norm</a>(
|
||||
<a name="l00110"></a>00110 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& x,
|
||||
<a name="l00111"></a>00111 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& y);
|
||||
<a name="l00112"></a>00112
|
||||
<a name="l00115"></a>00115 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00116"></a>00116 T <a class="code" href="a00276.html#ga2963700ea5540e339e021733f9b1c285" title="Returns the L2 norm between x and y.">l2Norm</a>(
|
||||
<a name="l00117"></a>00117 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& x);
|
||||
<a name="l00118"></a>00118
|
||||
<a name="l00121"></a>00121 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00122"></a>00122 T <a class="code" href="a00276.html#gab6b384000fdc1a560fd927684f4f3a2a" title="Returns the L norm between x and y.">lxNorm</a>(
|
||||
<a name="l00123"></a>00123 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& x,
|
||||
<a name="l00124"></a>00124 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& y,
|
||||
<a name="l00125"></a>00125 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> Depth);
|
||||
<a name="l00126"></a>00126
|
||||
<a name="l00129"></a>00129 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00130"></a>00130 T <a class="code" href="a00276.html#gab6b384000fdc1a560fd927684f4f3a2a" title="Returns the L norm between x and y.">lxNorm</a>(
|
||||
<a name="l00131"></a>00131 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& x,
|
||||
<a name="l00132"></a>00132 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> Depth);
|
||||
<a name="l00133"></a>00133
|
||||
<a name="l00135"></a>00135 }<span class="comment">//namespace norm</span>
|
||||
<a name="l00136"></a>00136 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00137"></a>00137 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00138"></a>00138
|
||||
<a name="l00139"></a>00139 <span class="preprocessor">#include "norm.inl"</span>
|
||||
<a name="l00140"></a>00140
|
||||
<a name="l00141"></a>00141 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::norm;}
|
||||
<a name="l00142"></a>00142
|
||||
<a name="l00143"></a>00143 <span class="preprocessor">#endif//glm_gtx_norm</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,85 +0,0 @@
|
||||
<!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>normal.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">normal.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2006-11-13</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/normal.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_normal</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_normal</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_normal extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00200.html">00025</a> <span class="keyword">namespace </span>normal
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00033"></a>00033 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00277.html#ga465b51d9e302c22572a656e657631310" title="Computes triangle normal from triangle points.">triangleNormal</a>(
|
||||
<a name="l00034"></a>00034 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & p1,
|
||||
<a name="l00035"></a>00035 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & p2,
|
||||
<a name="l00036"></a>00036 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & p3);
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00039"></a>00039 }<span class="comment">//namespace normal</span>
|
||||
<a name="l00040"></a>00040 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00041"></a>00041 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00043"></a>00043 <span class="preprocessor">#include "normal.inl"</span>
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::normal;}
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a>00047 <span class="preprocessor">#endif//glm_gtx_normal</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,93 +0,0 @@
|
||||
<!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>normalize_dot.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">normalize_dot.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2007-09-28</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-10-07</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/normalize_dot.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTX_fast_square_root</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_normalize_dot</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_normalize_dot</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "../gtx/fast_square_root.hpp"</span>
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_normalize_dot extension included")</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span>
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00026"></a>00026 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00027"></a><a class="code" href="a00201.html">00027</a> <span class="keyword">namespace </span>normalize_dot
|
||||
<a name="l00028"></a>00028 {
|
||||
<a name="l00029"></a>00029 <span class="keyword">using namespace </span>gtx::fast_square_root;
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00033"></a>00033
|
||||
<a name="l00037"></a>00037 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00038"></a>00038 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00278.html#ga71e52e38395048672c908861a3758b76" title="Normalize parameters and returns the dot product of x and y.">normalizeDot</a>(
|
||||
<a name="l00039"></a>00039 genType <span class="keyword">const</span> & x,
|
||||
<a name="l00040"></a>00040 genType <span class="keyword">const</span> & y);
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00045"></a>00045 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00046"></a>00046 <span class="keyword">typename</span> genType::value_type <a class="code" href="a00278.html#ga4828b79df21f008a71824a0eecf6e4d7" title="Normalize parameters and returns the dot product of x and y.">fastNormalizeDot</a>(
|
||||
<a name="l00047"></a>00047 genType <span class="keyword">const</span> & x,
|
||||
<a name="l00048"></a>00048 genType <span class="keyword">const</span> & y);
|
||||
<a name="l00049"></a>00049
|
||||
<a name="l00051"></a>00051 }<span class="comment">//namespace normalize_dot</span>
|
||||
<a name="l00052"></a>00052 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00053"></a>00053 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00054"></a>00054
|
||||
<a name="l00055"></a>00055 <span class="preprocessor">#include "normalize_dot.inl"</span>
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00057"></a>00057 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::normalize_dot;}
|
||||
<a name="l00058"></a>00058
|
||||
<a name="l00059"></a>00059 <span class="preprocessor">#endif//glm_gtx_normalize_dot</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,106 +0,0 @@
|
||||
<!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>number_precision.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">number_precision.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2007-05-10</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-06-04</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/number_precision.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTC_type_precision</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">// - GLM_GTC_quaternion</span>
|
||||
<a name="l00014"></a>00014 <span class="comment"></span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor">#ifndef glm_gtx_number_precision</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_number_precision</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span>
|
||||
<a name="l00018"></a>00018 <span class="comment">// Dependency:</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#include "../gtc/type_precision.hpp"</span>
|
||||
<a name="l00021"></a>00021
|
||||
<a name="l00022"></a>00022 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_number_precision extension included")</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor"></span>
|
||||
<a name="l00026"></a>00026 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00027"></a>00027 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00028"></a><a class="code" href="a00202.html">00028</a> <span class="keyword">namespace </span>number_precision
|
||||
<a name="l00029"></a>00029 {
|
||||
<a name="l00030"></a>00030 <span class="keyword">using namespace </span>gtc::type_precision;
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00033"></a>00033 <span class="comment">// Unsigned int vector types </span>
|
||||
<a name="l00034"></a>00034
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a><a class="code" href="a00279.html#ga5853fe457f4c8a6bc09343d0e9833980">00038</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">u8</a> <a class="code" href="a00279.html#ga5853fe457f4c8a6bc09343d0e9833980" title="8bit unsigned integer scalar. (from GLM_GTX_number_precision extension)">u8vec1</a>;
|
||||
<a name="l00039"></a><a class="code" href="a00279.html#ga52cc069a92e126c3a8dcde93424d2ef0">00039</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">u16</a> <a class="code" href="a00279.html#ga52cc069a92e126c3a8dcde93424d2ef0" title="16bit unsigned integer scalar. (from GLM_GTX_number_precision extension)">u16vec1</a>;
|
||||
<a name="l00040"></a><a class="code" href="a00279.html#ga9bbc1e14aea65cba5e2dcfef6a67d9f3">00040</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">u32</a> <a class="code" href="a00279.html#ga9bbc1e14aea65cba5e2dcfef6a67d9f3" title="32bit unsigned integer scalar. (from GLM_GTX_number_precision extension)">u32vec1</a>;
|
||||
<a name="l00041"></a><a class="code" href="a00279.html#ga818de170e2584ab037130f2881925974">00041</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">u64</a> <a class="code" href="a00279.html#ga818de170e2584ab037130f2881925974" title="64bit unsigned integer scalar. (from GLM_GTX_number_precision extension)">u64vec1</a>;
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00044"></a>00044 <span class="comment">// Float vector types </span>
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00046"></a><a class="code" href="a00279.html#ga116e2376ef94e8c60bc5c2b66fc5a6db">00046</a> <span class="keyword">typedef</span> <a class="code" href="a00009.html" title="16-bit floating point type.">f16</a> <a class="code" href="a00279.html#ga116e2376ef94e8c60bc5c2b66fc5a6db" title="Half-precision floating-point scalar. (from GLM_GTX_number_precision extension)">f16vec1</a>;
|
||||
<a name="l00047"></a><a class="code" href="a00279.html#ga07f8d7348eb7ae059a84c118fdfeb943">00047</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">f32</a> <a class="code" href="a00279.html#ga07f8d7348eb7ae059a84c118fdfeb943" title="Single-precision floating-point scalar. (from GLM_GTX_number_precision extension)">f32vec1</a>;
|
||||
<a name="l00048"></a><a class="code" href="a00279.html#gae5987a61b8c03d5c432a9e62f0b3efe1">00048</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">f64</a> <a class="code" href="a00279.html#gae5987a61b8c03d5c432a9e62f0b3efe1" title="Single-precision floating-point scalar. (from GLM_GTX_number_precision extension)">f64vec1</a>;
|
||||
<a name="l00049"></a>00049
|
||||
<a name="l00051"></a>00051 <span class="comment">// Float matrix types </span>
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00053"></a><a class="code" href="a00279.html#gafb6d00d30a02bc379153fbf0859c55fe">00053</a> <span class="keyword">typedef</span> <a class="code" href="a00009.html" title="16-bit floating point type.">f16</a> <a class="code" href="a00279.html#gafb6d00d30a02bc379153fbf0859c55fe" title="Half-precision floating-point scalar. (from GLM_GTX_number_precision extension)">f16mat1</a>;
|
||||
<a name="l00054"></a><a class="code" href="a00279.html#ga228eca02d3e3f24c2eec052ee7f719fa">00054</a> <span class="keyword">typedef</span> <a class="code" href="a00009.html" title="16-bit floating point type.">f16</a> <a class="code" href="a00279.html#ga228eca02d3e3f24c2eec052ee7f719fa" title="Half-precision floating-point scalar. (from GLM_GTX_number_precision extension)">f16mat1x1</a>;
|
||||
<a name="l00055"></a><a class="code" href="a00279.html#ga145ad477a2a3e152855511c3b52469a6">00055</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">f32</a> <a class="code" href="a00279.html#ga145ad477a2a3e152855511c3b52469a6" title="Single-precision floating-point scalar. (from GLM_GTX_number_precision extension)">f32mat1</a>;
|
||||
<a name="l00056"></a><a class="code" href="a00279.html#gac88c6a4dbfc380aa26e3adbbade36348">00056</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">f32</a> <a class="code" href="a00279.html#gac88c6a4dbfc380aa26e3adbbade36348" title="Single-precision floating-point scalar. (from GLM_GTX_number_precision extension)">f32mat1x1</a>;
|
||||
<a name="l00057"></a><a class="code" href="a00279.html#ga59bfa589419b5265d01314fcecd33435">00057</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">f64</a> <a class="code" href="a00279.html#ga59bfa589419b5265d01314fcecd33435" title="Double-precision floating-point scalar. (from GLM_GTX_number_precision extension)">f64mat1</a>;
|
||||
<a name="l00058"></a><a class="code" href="a00279.html#ga448eeb08d0b7d8c43a8b292c981955fd">00058</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">f64</a> <a class="code" href="a00279.html#ga448eeb08d0b7d8c43a8b292c981955fd" title="Double-precision floating-point scalar. (from GLM_GTX_number_precision extension)">f64mat1x1</a>;
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00061"></a>00061 }<span class="comment">//namespace number_precision</span>
|
||||
<a name="l00062"></a>00062 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00063"></a>00063 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00065"></a>00065 <span class="preprocessor">#include "number_precision.inl"</span>
|
||||
<a name="l00066"></a>00066
|
||||
<a name="l00067"></a>00067 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::number_precision;}
|
||||
<a name="l00068"></a>00068
|
||||
<a name="l00069"></a>00069 <span class="preprocessor">#endif//glm_gtx_number_precision</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,149 +0,0 @@
|
||||
<!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>ocl_type.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">ocl_type.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-05-07</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-05-07</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/number_precision.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_ocl_type</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_ocl_type</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_ocl_type extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00203.html">00025</a> <span class="keyword">namespace </span>ocl_type
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00028"></a>00028 <span class="comment">// Scalar types </span>
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00033"></a><a class="code" href="a00280.html#ga595300752d3c11b13411074df8fcadc7">00033</a> <span class="keyword">typedef</span> detail::int8 <a class="code" href="a00280.html#ga595300752d3c11b13411074df8fcadc7" title="8bit signed integer. (from GLM_GTX_ocl_type extension)">cl_char</a>;
|
||||
<a name="l00034"></a><a class="code" href="a00280.html#ga30b0387f3031a789362d91fc2dd2dc3f">00034</a> <span class="keyword">typedef</span> detail::int16 <a class="code" href="a00280.html#ga30b0387f3031a789362d91fc2dd2dc3f" title="16bit signed integer. (from GLM_GTX_ocl_type extension)">cl_short</a>;
|
||||
<a name="l00035"></a><a class="code" href="a00280.html#ga15daeef78674bfa6218f1fc8050e0967">00035</a> <span class="keyword">typedef</span> detail::int32 <a class="code" href="a00280.html#ga15daeef78674bfa6218f1fc8050e0967" title="32bit signed integer. (from GLM_GTX_ocl_type extension)">cl_int</a>;
|
||||
<a name="l00036"></a><a class="code" href="a00280.html#ga58de53886632d819d967a2972a977c37">00036</a> <span class="keyword">typedef</span> detail::int64 <a class="code" href="a00280.html#ga58de53886632d819d967a2972a977c37" title="64bit signed integer. (from GLM_GTX_ocl_type extension)">cl_long</a>;
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a><a class="code" href="a00280.html#ga791bdd6f40533322f03efcc031dc43e7">00038</a> <span class="keyword">typedef</span> detail::uint8 <a class="code" href="a00280.html#ga791bdd6f40533322f03efcc031dc43e7" title="8bit signed integer. (from GLM_GTX_ocl_type extension)">cl_uchar</a>;
|
||||
<a name="l00039"></a><a class="code" href="a00280.html#ga17431e27a8e8d20ec69a3ba3f6557a2d">00039</a> <span class="keyword">typedef</span> detail::uint16 <a class="code" href="a00280.html#ga17431e27a8e8d20ec69a3ba3f6557a2d" title="16bit signed integer. (from GLM_GTX_ocl_type extension)">cl_ushort</a>;
|
||||
<a name="l00040"></a><a class="code" href="a00280.html#gafab0cba90c3db2c143bb3e1bc38ac41f">00040</a> <span class="keyword">typedef</span> detail::uint32 <a class="code" href="a00280.html#gafab0cba90c3db2c143bb3e1bc38ac41f" title="32bit signed integer. (from GLM_GTX_ocl_type extension)">cl_uint</a>;
|
||||
<a name="l00041"></a><a class="code" href="a00280.html#gaf00884c494b2bd9d47c739847c5e8eaf">00041</a> <span class="keyword">typedef</span> detail::uint64 <a class="code" href="a00280.html#gaf00884c494b2bd9d47c739847c5e8eaf" title="64bit signed integer. (from GLM_GTX_ocl_type extension)">cl_ulong</a>;
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00043"></a><a class="code" href="a00280.html#ga8bb152355ac899354df1742c673faad0">00043</a> <span class="keyword">typedef</span> <a class="code" href="a00009.html" title="16-bit floating point type.">detail::float16</a> <a class="code" href="a00280.html#ga8bb152355ac899354df1742c673faad0" title="Half-precision floating-point scalar. (from GLM_GTX_ocl_type extension)">cl_half</a>;
|
||||
<a name="l00044"></a><a class="code" href="a00280.html#ga6a505bfaeb7d16f0aee456c238d31f06">00044</a> <span class="keyword">typedef</span> detail::float32 <a class="code" href="a00280.html#ga6a505bfaeb7d16f0aee456c238d31f06" title="Single-precision floating-point scalar. (from GLM_GTX_ocl_type extension)">cl_float</a>;
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a><a class="code" href="a00280.html#gafe341e63c543ce750d41ed776ca0f8cc">00047</a> <span class="keyword">typedef</span> detail::int8 <a class="code" href="a00280.html#gafe341e63c543ce750d41ed776ca0f8cc" title="8bit signed integer. (from GLM_GTX_ocl_type extension)">cl_char1</a>;
|
||||
<a name="l00048"></a><a class="code" href="a00280.html#gacedae42c667e97db08055a962e4ac73f">00048</a> <span class="keyword">typedef</span> detail::int16 <a class="code" href="a00280.html#gacedae42c667e97db08055a962e4ac73f" title="16bit signed integer. (from GLM_GTX_ocl_type extension)">cl_short1</a>;
|
||||
<a name="l00049"></a><a class="code" href="a00280.html#ga929eeb0ebaa707edf32fe6381eac38a2">00049</a> <span class="keyword">typedef</span> detail::int32 <a class="code" href="a00280.html#ga929eeb0ebaa707edf32fe6381eac38a2" title="32bit signed integer. (from GLM_GTX_ocl_type extension)">cl_int1</a>;
|
||||
<a name="l00050"></a><a class="code" href="a00280.html#ga23c699d4f4ccf698822b67da14b87481">00050</a> <span class="keyword">typedef</span> detail::int64 <a class="code" href="a00280.html#ga23c699d4f4ccf698822b67da14b87481" title="64bit signed integer. (from GLM_GTX_ocl_type extension)">cl_long1</a>;
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a><a class="code" href="a00280.html#ga458a3244086d84cb4a02356e17e10e41">00052</a> <span class="keyword">typedef</span> detail::uint8 <a class="code" href="a00280.html#ga458a3244086d84cb4a02356e17e10e41" title="8bit signed integer. (from GLM_GTX_ocl_type extension)">cl_uchar1</a>;
|
||||
<a name="l00053"></a><a class="code" href="a00280.html#ga2765c8e248830f14881cafc7ff08ce48">00053</a> <span class="keyword">typedef</span> detail::uint16 <a class="code" href="a00280.html#ga2765c8e248830f14881cafc7ff08ce48" title="16bit signed integer. (from GLM_GTX_ocl_type extension)">cl_ushort1</a>;
|
||||
<a name="l00054"></a><a class="code" href="a00280.html#ga463351df94e9f31c91787e9ead1d0f5e">00054</a> <span class="keyword">typedef</span> detail::uint32 <a class="code" href="a00280.html#ga463351df94e9f31c91787e9ead1d0f5e" title="32bit signed integer. (from GLM_GTX_ocl_type extension)">cl_uint1</a>;
|
||||
<a name="l00055"></a><a class="code" href="a00280.html#ga38c51ec5073e63c422c741cf7e40a6a8">00055</a> <span class="keyword">typedef</span> detail::uint64 <a class="code" href="a00280.html#ga38c51ec5073e63c422c741cf7e40a6a8" title="64bit signed integer. (from GLM_GTX_ocl_type extension)">cl_ulong1</a>;
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00057"></a>00057 <span class="comment">//typedef detail::float16 cl_half1; //!< \brief Half-precision floating-point scalar. (from GLM_GTX_ocl_type extension)</span>
|
||||
<a name="l00058"></a><a class="code" href="a00280.html#gabd9de5d6f4075dcf643bcb3c74b4d169">00058</a> <span class="keyword">typedef</span> detail::float32 <a class="code" href="a00280.html#gabd9de5d6f4075dcf643bcb3c74b4d169" title="Single-precision floating-point scalar. (from GLM_GTX_ocl_type extension)">cl_float1</a>;
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00060"></a>00060
|
||||
<a name="l00061"></a><a class="code" href="a00280.html#ga5eaab898e9289ffad98798d96a8ff22e">00061</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::int8></a> <a class="code" href="a00280.html#ga5eaab898e9289ffad98798d96a8ff22e" title="8bit signed integer. (from GLM_GTX_ocl_type extension)">cl_char2</a>;
|
||||
<a name="l00062"></a><a class="code" href="a00280.html#ga035b54a5fd591587d9fa6131e8a0c73c">00062</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::int16></a> <a class="code" href="a00280.html#ga035b54a5fd591587d9fa6131e8a0c73c" title="16bit signed integer. (from GLM_GTX_ocl_type extension)">cl_short2</a>;
|
||||
<a name="l00063"></a><a class="code" href="a00280.html#ga75d44bea03be3491e5636dea711b70eb">00063</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::int32></a> <a class="code" href="a00280.html#ga75d44bea03be3491e5636dea711b70eb" title="32bit signed integer. (from GLM_GTX_ocl_type extension)">cl_int2</a>;
|
||||
<a name="l00064"></a><a class="code" href="a00280.html#ga64aa9b2dc534ebd9cb26010e2eabd987">00064</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::int64></a> <a class="code" href="a00280.html#ga64aa9b2dc534ebd9cb26010e2eabd987" title="64bit signed integer. (from GLM_GTX_ocl_type extension)">cl_long2</a>;
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00066"></a><a class="code" href="a00280.html#gafee78def47febbb4ff7789df67f80e67">00066</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::uint8></a> <a class="code" href="a00280.html#gafee78def47febbb4ff7789df67f80e67" title="8bit signed integer. (from GLM_GTX_ocl_type extension)">cl_uchar2</a>;
|
||||
<a name="l00067"></a><a class="code" href="a00280.html#ga83879286ad8a304211a9bd1dec8a81b9">00067</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::uint16></a> <a class="code" href="a00280.html#ga83879286ad8a304211a9bd1dec8a81b9" title="16bit signed integer. (from GLM_GTX_ocl_type extension)">cl_ushort2</a>;
|
||||
<a name="l00068"></a><a class="code" href="a00280.html#gaf64dcd996174ae3271a9590c232d680f">00068</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::uint32></a> <a class="code" href="a00280.html#gaf64dcd996174ae3271a9590c232d680f" title="32bit signed integer. (from GLM_GTX_ocl_type extension)">cl_uint2</a>;
|
||||
<a name="l00069"></a><a class="code" href="a00280.html#ga983b584fd1a89ba357c4d161f57a97a5">00069</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::uint64></a> <a class="code" href="a00280.html#ga983b584fd1a89ba357c4d161f57a97a5" title="64bit signed integer. (from GLM_GTX_ocl_type extension)">cl_ulong2</a>;
|
||||
<a name="l00070"></a>00070
|
||||
<a name="l00071"></a>00071 <span class="comment">//typedef detail::tvec2<detail::float16> cl_half2; //!< \brief Half-precision floating-point scalar. (from GLM_GTX_ocl_type extension)</span>
|
||||
<a name="l00072"></a><a class="code" href="a00280.html#ga1d631e031b44406b9ecf4c9390ff4aaf">00072</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<detail::float32></a> <a class="code" href="a00280.html#ga1d631e031b44406b9ecf4c9390ff4aaf" title="Single-precision floating-point scalar. (from GLM_GTX_ocl_type extension)">cl_float2</a>;
|
||||
<a name="l00073"></a>00073
|
||||
<a name="l00074"></a>00074
|
||||
<a name="l00075"></a><a class="code" href="a00280.html#ga3f60c528dc517a88386358e525238198">00075</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<detail::int8></a> <a class="code" href="a00280.html#ga3f60c528dc517a88386358e525238198" title="8bit signed integer. (from GLM_GTX_ocl_type extension)">cl_char3</a>;
|
||||
<a name="l00076"></a><a class="code" href="a00280.html#gaacc919abeb1dac5c46b35cba6f2ff1f6">00076</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<detail::int16></a> <a class="code" href="a00280.html#gaacc919abeb1dac5c46b35cba6f2ff1f6" title="16bit signed integer. (from GLM_GTX_ocl_type extension)">cl_short3</a>;
|
||||
<a name="l00077"></a><a class="code" href="a00280.html#ga685501809b08b64d48ede7cd04818675">00077</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<detail::int32></a> <a class="code" href="a00280.html#ga685501809b08b64d48ede7cd04818675" title="32bit signed integer. (from GLM_GTX_ocl_type extension)">cl_int3</a>;
|
||||
<a name="l00078"></a><a class="code" href="a00280.html#ga6deed316e020729bc448758fc2e72388">00078</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<detail::int64></a> <a class="code" href="a00280.html#ga6deed316e020729bc448758fc2e72388" title="64bit signed integer. (from GLM_GTX_ocl_type extension)">cl_long3</a>;
|
||||
<a name="l00079"></a>00079
|
||||
<a name="l00080"></a><a class="code" href="a00280.html#ga03f1fdd60172bf92db40de83e13ab2f8">00080</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<detail::uint8></a> <a class="code" href="a00280.html#ga03f1fdd60172bf92db40de83e13ab2f8" title="8bit signed integer. (from GLM_GTX_ocl_type extension)">cl_uchar3</a>;
|
||||
<a name="l00081"></a><a class="code" href="a00280.html#ga8ffa538b79f80a173f52a83c3bcc0587">00081</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<detail::uint16></a> <a class="code" href="a00280.html#ga8ffa538b79f80a173f52a83c3bcc0587" title="16bit signed integer. (from GLM_GTX_ocl_type extension)">cl_ushort3</a>;
|
||||
<a name="l00082"></a><a class="code" href="a00280.html#ga423c13d5b93ab6f5fcdf248e0c89fb8d">00082</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<detail::uint32></a> <a class="code" href="a00280.html#ga423c13d5b93ab6f5fcdf248e0c89fb8d" title="32bit signed integer. (from GLM_GTX_ocl_type extension)">cl_uint3</a>;
|
||||
<a name="l00083"></a><a class="code" href="a00280.html#gaad8f2d09028d9522ff6b792ceaeeebbc">00083</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<detail::uint64></a> <a class="code" href="a00280.html#gaad8f2d09028d9522ff6b792ceaeeebbc" title="64bit signed integer. (from GLM_GTX_ocl_type extension)">cl_ulong3</a>;
|
||||
<a name="l00084"></a>00084
|
||||
<a name="l00085"></a>00085 <span class="comment">//typedef detail::tvec3<detail::float16> cl_half3; //!< \brief Half-precision floating-point scalar. (from GLM_GTX_ocl_type extension)</span>
|
||||
<a name="l00086"></a><a class="code" href="a00280.html#gaad4526a10e23f201f55649f264856683">00086</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<detail::float32></a> <a class="code" href="a00280.html#gaad4526a10e23f201f55649f264856683" title="Single-precision floating-point scalar. (from GLM_GTX_ocl_type extension)">cl_float3</a>;
|
||||
<a name="l00087"></a>00087
|
||||
<a name="l00088"></a>00088
|
||||
<a name="l00089"></a><a class="code" href="a00280.html#ga7235804672db90b3b2e8bba142ff4977">00089</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::int8></a> <a class="code" href="a00280.html#ga7235804672db90b3b2e8bba142ff4977" title="8bit signed integer. (from GLM_GTX_ocl_type extension)">cl_char4</a>;
|
||||
<a name="l00090"></a><a class="code" href="a00280.html#ga4682ecd16257fe283e891b3979e3037c">00090</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::int16></a> <a class="code" href="a00280.html#ga4682ecd16257fe283e891b3979e3037c" title="16bit signed integer. (from GLM_GTX_ocl_type extension)">cl_short4</a>;
|
||||
<a name="l00091"></a><a class="code" href="a00280.html#ga7cf765cb37a5717826260a44e7c37d03">00091</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::int32></a> <a class="code" href="a00280.html#ga7cf765cb37a5717826260a44e7c37d03" title="32bit signed integer. (from GLM_GTX_ocl_type extension)">cl_int4</a>;
|
||||
<a name="l00092"></a><a class="code" href="a00280.html#ga4f38be1bb22d86fa7617da6f6907b74c">00092</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::int64></a> <a class="code" href="a00280.html#ga4f38be1bb22d86fa7617da6f6907b74c" title="64bit signed integer. (from GLM_GTX_ocl_type extension)">cl_long4</a>;
|
||||
<a name="l00093"></a><a class="code" href="a00280.html#ga1ba627aa90581618f0aff17a4f52ebc6">00093</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::uint8></a> <a class="code" href="a00280.html#ga1ba627aa90581618f0aff17a4f52ebc6" title="8bit signed integer. (from GLM_GTX_ocl_type extension)">cl_uchar4</a>;
|
||||
<a name="l00094"></a><a class="code" href="a00280.html#gaef286e330c9eaa72e71c5081a85592b3">00094</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::uint16></a> <a class="code" href="a00280.html#gaef286e330c9eaa72e71c5081a85592b3" title="16bit signed integer. (from GLM_GTX_ocl_type extension)">cl_ushort4</a>;
|
||||
<a name="l00095"></a><a class="code" href="a00280.html#gae75d9f1c7e3cebf862623eb3073870b0">00095</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::uint32></a> <a class="code" href="a00280.html#gae75d9f1c7e3cebf862623eb3073870b0" title="32bit signed integer. (from GLM_GTX_ocl_type extension)">cl_uint4</a>;
|
||||
<a name="l00096"></a><a class="code" href="a00280.html#ga5724575e5574de465785f06eeefd8789">00096</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::uint64></a> <a class="code" href="a00280.html#ga5724575e5574de465785f06eeefd8789" title="64bit signed integer. (from GLM_GTX_ocl_type extension)">cl_ulong4</a>;
|
||||
<a name="l00097"></a>00097
|
||||
<a name="l00098"></a>00098 <span class="comment">//typedef detail::tvec4<detail::float16> cl_half4; //!< \brief Half-precision floating-point scalar. (from GLM_GTX_ocl_type extension)</span>
|
||||
<a name="l00099"></a><a class="code" href="a00280.html#ga6a4d1b4f7bfdb1721f1554b30096b325">00099</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<detail::float32></a> <a class="code" href="a00280.html#ga6a4d1b4f7bfdb1721f1554b30096b325" title="Single-precision floating-point scalar. (from GLM_GTX_ocl_type extension)">cl_float4</a>;
|
||||
<a name="l00100"></a>00100
|
||||
<a name="l00102"></a>00102 }<span class="comment">//namespace ocl_type</span>
|
||||
<a name="l00103"></a>00103 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00104"></a>00104 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00105"></a>00105
|
||||
<a name="l00106"></a>00106 <span class="preprocessor">#include "ocl_type.inl"</span>
|
||||
<a name="l00107"></a>00107
|
||||
<a name="l00108"></a>00108 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::ocl_type;}
|
||||
<a name="l00109"></a>00109
|
||||
<a name="l00110"></a>00110 <span class="preprocessor">#endif//glm_gtx_ocl_type</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,96 +0,0 @@
|
||||
<!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>optimum_pow.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">optimum_pow.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2006-11-13</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/optimum_pow.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_optimum_pow</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_optimum_pow</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_optimum_pow extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00204.html">00025</a> <span class="keyword">namespace </span>optimum_pow
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00033"></a>00033 genType <a class="code" href="a00281.html#gaed0305d69d3e3ba925d2c6e138b4f4bf" title="Returns x raised to the power of 2.">pow2</a>(<span class="keyword">const</span> genType& x);
|
||||
<a name="l00034"></a>00034
|
||||
<a name="l00037"></a>00037 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00038"></a>00038 genType <a class="code" href="a00281.html#ga8b7ca4439147682892326d3d61294f46" title="Returns x raised to the power of 3.">pow3</a>(<span class="keyword">const</span> genType& x);
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00042"></a>00042 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00043"></a>00043 genType <a class="code" href="a00281.html#gafe1d0d8f5f0501c4940ebb8ae76a1ebf" title="Returns x raised to the power of 4.">pow4</a>(<span class="keyword">const</span> genType& x);
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00047"></a>00047 <span class="keywordtype">bool</span> <a class="code" href="a00281.html#gae72355bc57d5aa5e9b0b823a0d893c82" title="Checks if the parameter is a power of 2 number.">powOfTwo</a>(<span class="keywordtype">int</span> num);
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00051"></a>00051 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<bool></a> <a class="code" href="a00281.html#gae72355bc57d5aa5e9b0b823a0d893c82" title="Checks if the parameter is a power of 2 number.">powOfTwo</a>(<span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<int></a>& x);
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00055"></a>00055 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<bool></a> <a class="code" href="a00281.html#gae72355bc57d5aa5e9b0b823a0d893c82" title="Checks if the parameter is a power of 2 number.">powOfTwo</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<int></a>& x);
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00059"></a>00059 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<bool></a> <a class="code" href="a00281.html#gae72355bc57d5aa5e9b0b823a0d893c82" title="Checks if the parameter is a power of 2 number.">powOfTwo</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<int></a>& x);
|
||||
<a name="l00060"></a>00060
|
||||
<a name="l00062"></a>00062 }<span class="comment">//namespace optimum_pow</span>
|
||||
<a name="l00063"></a>00063 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00064"></a>00064 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00066"></a>00066 <span class="preprocessor">#include "optimum_pow.inl"</span>
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00068"></a>00068 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::optimum_pow;}
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00070"></a>00070 <span class="preprocessor">#endif//glm_gtx_optimum_pow</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,88 +0,0 @@
|
||||
<!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>orthonormalize.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">orthonormalize.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2006-11-13</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/orthonormalize.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_orthonormalize</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_orthonormalize</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_orthonormalize extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00205.html">00025</a> <span class="keyword">namespace </span><a class="code" href="a00282.html#gaea1a740541f786951af15832223404dd" title="Returns the orthonormalized matrix of m.">orthonormalize</a>
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00033"></a>00033 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00282.html#gaea1a740541f786951af15832223404dd" title="Returns the orthonormalized matrix of m.">orthonormalize</a>(
|
||||
<a name="l00034"></a>00034 <span class="keyword">const</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a>& m);
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00038"></a>00038 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00039"></a>00039 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00282.html#gaea1a740541f786951af15832223404dd" title="Returns the orthonormalized matrix of m.">orthonormalize</a>(
|
||||
<a name="l00040"></a>00040 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& x,
|
||||
<a name="l00041"></a>00041 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& y);
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00044"></a>00044 }<span class="comment">//namespace orthonormalize</span>
|
||||
<a name="l00045"></a>00045 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00046"></a>00046 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00048"></a>00048 <span class="preprocessor">#include "orthonormalize.inl"</span>
|
||||
<a name="l00049"></a>00049
|
||||
<a name="l00050"></a>00050 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span><a class="code" href="a00282.html#gaea1a740541f786951af15832223404dd" title="Returns the orthonormalized matrix of m.">gtx::orthonormalize</a>;}
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="preprocessor">#endif//glm_gtx_orthonormalize</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,96 +0,0 @@
|
||||
<!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>perpendicular.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">perpendicular.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-03-06</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/perpendicular.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTX_projection</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_perpendicular</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_perpendicular</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "../gtx/projection.hpp"</span>
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_perpendicular extension included")</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span>
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00026"></a>00026 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00027"></a><a class="code" href="a00206.html">00027</a> <span class="keyword">namespace </span>perpendicular
|
||||
<a name="l00028"></a>00028 {
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00034"></a>00034 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00035"></a>00035 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00283.html#ga2e991fe07f1b020a37523922bb421e92" title="Projects x a perpendicular axis of Normal.">perp</a>(
|
||||
<a name="l00036"></a>00036 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <span class="keyword">const</span> & x,
|
||||
<a name="l00037"></a>00037 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <span class="keyword">const</span> & Normal);
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00041"></a>00041 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00042"></a>00042 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00283.html#ga2e991fe07f1b020a37523922bb421e92" title="Projects x a perpendicular axis of Normal.">perp</a>(
|
||||
<a name="l00043"></a>00043 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & x,
|
||||
<a name="l00044"></a>00044 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & Normal);
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00048"></a>00048 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00049"></a>00049 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00283.html#ga2e991fe07f1b020a37523922bb421e92" title="Projects x a perpendicular axis of Normal.">perp</a>(
|
||||
<a name="l00050"></a>00050 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <span class="keyword">const</span> & x,
|
||||
<a name="l00051"></a>00051 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <span class="keyword">const</span> & Normal);
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00054"></a>00054 }<span class="comment">//namespace perpendicular</span>
|
||||
<a name="l00055"></a>00055 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00056"></a>00056 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00058"></a>00058 <span class="preprocessor">#include "perpendicular.inl"</span>
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00060"></a>00060 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::perpendicular;}
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00062"></a>00062 <span class="preprocessor">#endif//glm_gtx_perpendicular</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,85 +0,0 @@
|
||||
<!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>polar_coordinates.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">polar_coordinates.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2007-03-06</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-05-01</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/polar_coordinates.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_polar_coordinates</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_polar_coordinates</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_polar_coordinates extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00207.html">00025</a> <span class="keyword">namespace </span>polar_coordinates
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00033"></a>00033 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00284.html#gab4f7bb55a54520917a592699bdb0b2f5" title="Convert Euclidean to Polar coordinates, x is the xz distance, y, the latitude and z the longitude...">polar</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& <a class="code" href="a00284.html#ga7c4788941d42c56c6ee2fd235765127e" title="Convert Polar to Euclidean coordinates.">euclidean</a>);
|
||||
<a name="l00034"></a>00034
|
||||
<a name="l00037"></a>00037 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00038"></a>00038 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00284.html#ga7c4788941d42c56c6ee2fd235765127e" title="Convert Polar to Euclidean coordinates.">euclidean</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& polar);
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00041"></a>00041 }<span class="comment">//namespace polar_coordinates</span>
|
||||
<a name="l00042"></a>00042 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00043"></a>00043 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="preprocessor">#include "polar_coordinates.inl"</span>
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a>00047 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::polar_coordinates;}
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00049"></a>00049 <span class="preprocessor">#endif//glm_gtx_polar_coordinates</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,94 +0,0 @@
|
||||
<!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>projection.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">projection.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-03-06</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/projection.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_projection</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_projection</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_projection extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00208.html">00025</a> <span class="keyword">namespace </span>projection
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00033"></a>00033 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00285.html#ga2bf24fe9717e1711a4f454430c79d726" title="Projects x on Normal.">proj</a>(
|
||||
<a name="l00034"></a>00034 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <span class="keyword">const</span> & x,
|
||||
<a name="l00035"></a>00035 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <span class="keyword">const</span> & Normal);
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00039"></a>00039 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00040"></a>00040 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00285.html#ga2bf24fe9717e1711a4f454430c79d726" title="Projects x on Normal.">proj</a>(
|
||||
<a name="l00041"></a>00041 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & x,
|
||||
<a name="l00042"></a>00042 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & Normal);
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00046"></a>00046 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00047"></a>00047 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00285.html#ga2bf24fe9717e1711a4f454430c79d726" title="Projects x on Normal.">proj</a>(
|
||||
<a name="l00048"></a>00048 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <span class="keyword">const</span> & x,
|
||||
<a name="l00049"></a>00049 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <span class="keyword">const</span> & Normal);
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00052"></a>00052 }<span class="comment">//namespace projection</span>
|
||||
<a name="l00053"></a>00053 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00054"></a>00054 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056 <span class="preprocessor">#include "projection.inl"</span>
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00058"></a>00058 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::projection;}
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00060"></a>00060 <span class="preprocessor">#endif//glm_gtx_projection</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,242 +0,0 @@
|
||||
<!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>quaternion.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">quaternion.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-05-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-04</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtc/quaternion.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTC_half_float</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span><span class="comment">// ToDo:</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">// - Study constructors with angles and axis</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">// - Study constructors with vec3 that are the imaginary component of quaternion</span>
|
||||
<a name="l00017"></a>00017 <span class="comment"></span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef glm_gtc_quaternion</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtc_quaternion</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span>
|
||||
<a name="l00021"></a>00021 <span class="comment">// Dependency:</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor">#include "../gtc/half_float.hpp"</span>
|
||||
<a name="l00024"></a>00024
|
||||
<a name="l00025"></a>00025 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTC_quaternion extension included")</span>
|
||||
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00028"></a>00028 <span class="preprocessor"></span>
|
||||
<a name="l00029"></a>00029 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00030"></a>00030 <span class="keyword">namespace </span>detail
|
||||
<a name="l00031"></a>00031 {
|
||||
<a name="l00035"></a>00035 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00036"></a><a class="code" href="a00019.html">00036</a> <span class="keyword">struct </span><a class="code" href="a00019.html" title="Template for quaternion.">tquat</a><span class="comment">// : public genType<T, tquat></span>
|
||||
<a name="l00037"></a>00037 {
|
||||
<a name="l00038"></a>00038 <span class="keyword">typedef</span> T value_type;
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 <span class="keyword">public</span>:
|
||||
<a name="l00041"></a>00041 value_type x, y, z, w;
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00043"></a>00043 <span class="comment">// Constructors</span>
|
||||
<a name="l00044"></a>00044 <a class="code" href="a00019.html" title="Template for quaternion.">tquat</a>();
|
||||
<a name="l00045"></a>00045 <span class="keyword">explicit</span> <a class="code" href="a00019.html" title="Template for quaternion.">tquat</a>(
|
||||
<a name="l00046"></a>00046 value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00047"></a>00047 <a class="code" href="a00021.html" title="Basic 3D vector type.">tvec3<T></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00048"></a>00048 <span class="keyword">explicit</span> <a class="code" href="a00019.html" title="Template for quaternion.">tquat</a>(
|
||||
<a name="l00049"></a>00049 value_type <span class="keyword">const</span> & w,
|
||||
<a name="l00050"></a>00050 value_type <span class="keyword">const</span> & x,
|
||||
<a name="l00051"></a>00051 value_type <span class="keyword">const</span> & y,
|
||||
<a name="l00052"></a>00052 value_type <span class="keyword">const</span> & z);
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00054"></a>00054 <span class="comment">// Convertions</span>
|
||||
<a name="l00055"></a>00055 <span class="comment">//explicit tquat(valType const & pitch, valType const & yaw, valType const & roll);</span>
|
||||
<a name="l00057"></a>00057 <span class="comment"></span> <span class="keyword">explicit</span> <a class="code" href="a00019.html" title="Template for quaternion.">tquat</a>(
|
||||
<a name="l00058"></a>00058 <a class="code" href="a00021.html" title="Basic 3D vector type.">tvec3<T></a> <span class="keyword">const</span> & <a class="code" href="a00286.html#ga39be27be43d9f80ce5bfc5e1adf21412" title="Returns euler angles, yitch as x, yaw as y, roll as z.">eulerAngles</a>);
|
||||
<a name="l00059"></a>00059 <span class="keyword">explicit</span> <a class="code" href="a00019.html" title="Template for quaternion.">tquat</a>(
|
||||
<a name="l00060"></a>00060 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00061"></a>00061 <span class="keyword">explicit</span> <a class="code" href="a00019.html" title="Template for quaternion.">tquat</a>(
|
||||
<a name="l00062"></a>00062 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">tmat4x4<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064 <span class="comment">// Accesses</span>
|
||||
<a name="l00065"></a>00065 value_type & operator[](<span class="keywordtype">int</span> i);
|
||||
<a name="l00066"></a>00066 value_type <span class="keyword">const</span> & operator[](<span class="keywordtype">int</span> i) <span class="keyword">const</span>;
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00068"></a>00068 <span class="comment">// Operators</span>
|
||||
<a name="l00069"></a>00069 <a class="code" href="a00019.html" title="Template for quaternion.">tquat<T></a> & operator*=(value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00070"></a>00070 <a class="code" href="a00019.html" title="Template for quaternion.">tquat<T></a> & operator/=(value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00071"></a>00071 };
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00073"></a>00073 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00074"></a>00074 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> operator- (
|
||||
<a name="l00075"></a>00075 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q);
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00077"></a>00077 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00078"></a>00078 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> operator+ (
|
||||
<a name="l00079"></a>00079 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q,
|
||||
<a name="l00080"></a>00080 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & p);
|
||||
<a name="l00081"></a>00081
|
||||
<a name="l00082"></a>00082 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00083"></a>00083 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> operator* (
|
||||
<a name="l00084"></a>00084 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q,
|
||||
<a name="l00085"></a>00085 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & p);
|
||||
<a name="l00086"></a>00086
|
||||
<a name="l00087"></a>00087 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00088"></a>00088 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> operator* (
|
||||
<a name="l00089"></a>00089 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q,
|
||||
<a name="l00090"></a>00090 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00091"></a>00091
|
||||
<a name="l00092"></a>00092 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00093"></a>00093 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> operator* (
|
||||
<a name="l00094"></a>00094 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & v,
|
||||
<a name="l00095"></a>00095 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q);
|
||||
<a name="l00096"></a>00096
|
||||
<a name="l00097"></a>00097 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00098"></a>00098 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> operator* (
|
||||
<a name="l00099"></a>00099 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q,
|
||||
<a name="l00100"></a>00100 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00101"></a>00101
|
||||
<a name="l00102"></a>00102 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00103"></a>00103 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> operator* (
|
||||
<a name="l00104"></a>00104 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <span class="keyword">const</span> & v,
|
||||
<a name="l00105"></a>00105 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q);
|
||||
<a name="l00106"></a>00106
|
||||
<a name="l00107"></a>00107 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00108"></a>00108 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> operator* (
|
||||
<a name="l00109"></a>00109 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q,
|
||||
<a name="l00110"></a>00110 <span class="keyword">typename</span> detail::tquat<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00111"></a>00111
|
||||
<a name="l00112"></a>00112 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00113"></a>00113 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> operator* (
|
||||
<a name="l00114"></a>00114 <span class="keyword">typename</span> detail::tquat<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00115"></a>00115 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q);
|
||||
<a name="l00116"></a>00116
|
||||
<a name="l00117"></a>00117 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00118"></a>00118 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> operator/ (
|
||||
<a name="l00119"></a>00119 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q,
|
||||
<a name="l00120"></a>00120 <span class="keyword">typename</span> detail::tquat<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00121"></a>00121
|
||||
<a name="l00122"></a>00122 } <span class="comment">//namespace detail</span>
|
||||
<a name="l00123"></a>00123
|
||||
<a name="l00124"></a>00124 <span class="keyword">namespace </span>gtc{
|
||||
<a name="l00125"></a><a class="code" href="a00164.html">00125</a> <span class="keyword">namespace </span>quaternion
|
||||
<a name="l00126"></a>00126 {
|
||||
<a name="l00129"></a>00129
|
||||
<a name="l00132"></a>00132 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00133"></a>00133 <span class="keyword">typename</span> detail::tquat<T>::value_type <a class="code" href="a00245.html#gabb546279ee6acebe3fe64dce79e7e9f0" title="Returns the length of the quaternion.">length</a>(
|
||||
<a name="l00134"></a>00134 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q);
|
||||
<a name="l00135"></a>00135
|
||||
<a name="l00138"></a>00138 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00139"></a>00139 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <a class="code" href="a00245.html#gacca9518d4cb79922ccbcd2d01e886421" title="Returns the normalized quaternion.">normalize</a>(
|
||||
<a name="l00140"></a>00140 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q);
|
||||
<a name="l00141"></a>00141
|
||||
<a name="l00144"></a>00144 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00145"></a>00145 <span class="keyword">typename</span> detail::tquat<T>::value_type <a class="code" href="a00245.html#gaae0285ab092999b98c4f4c8455eeee9f" title="Returns dot product of q1 and q2, i.e., q1[0] * q2[0] + q1[1] * q2[1] + ...">dot</a>(
|
||||
<a name="l00146"></a>00146 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q1,
|
||||
<a name="l00147"></a>00147 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q2);
|
||||
<a name="l00148"></a>00148
|
||||
<a name="l00151"></a>00151 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00152"></a>00152 GLM_DEPRECATED <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <a class="code" href="a00245.html#ga6fe2d33aa0cdf188ab362355ad4108c4" title="Returns the cross product of q1 and q2.">cross</a>(
|
||||
<a name="l00153"></a>00153 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q1,
|
||||
<a name="l00154"></a>00154 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q2);
|
||||
<a name="l00155"></a>00155
|
||||
<a name="l00158"></a>00158 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00159"></a>00159 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <a class="code" href="a00245.html#ga7cacada583bca8e51e9c67f9cd7e69cb" title="Returns a SLERP interpolated quaternion of x and y according a.">mix</a>(
|
||||
<a name="l00160"></a>00160 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & x,
|
||||
<a name="l00161"></a>00161 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & y,
|
||||
<a name="l00162"></a>00162 T <span class="keyword">const</span> & a);
|
||||
<a name="l00163"></a>00163
|
||||
<a name="l00166"></a>00166 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00167"></a>00167 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <a class="code" href="a00245.html#gac66280c86e8efa619ad7dddb2d475aa7" title="Returns the q conjugate.">conjugate</a>(
|
||||
<a name="l00168"></a>00168 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q);
|
||||
<a name="l00169"></a>00169
|
||||
<a name="l00172"></a>00172 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00173"></a>00173 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <a class="code" href="a00245.html#ga12e7d58d287f181ec2ebf47bc6af6c5c" title="Returns the q inverse.">inverse</a>(
|
||||
<a name="l00174"></a>00174 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q);
|
||||
<a name="l00175"></a>00175
|
||||
<a name="l00178"></a>00178 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00179"></a>00179 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <a class="code" href="a00245.html#ga98c5928aefea9c200a285a5f1c3a0da5" title="Rotates a quaternion from an vector of 3 components axis and an angle expressed in degrees...">rotate</a>(
|
||||
<a name="l00180"></a>00180 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q,
|
||||
<a name="l00181"></a>00181 <span class="keyword">typename</span> detail::tquat<T>::value_type <span class="keyword">const</span> & <a class="code" href="a00286.html#ga6a3387a7d60728f60d86546b2f4d4d30" title="Returns the quaternion rotation angle.">angle</a>,
|
||||
<a name="l00182"></a>00182 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00183"></a>00183
|
||||
<a name="l00186"></a>00186 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00187"></a>00187 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00245.html#ga38702707009c743e9f304aadc25aeeeb" title="Converts a quaternion to a 3 * 3 matrix.">mat3_cast</a>(
|
||||
<a name="l00188"></a>00188 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00189"></a>00189
|
||||
<a name="l00192"></a>00192 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00193"></a>00193 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00245.html#gae2d14d52f9fef3da00cf867f9e2e3dfa" title="Converts a quaternion to a 4 * 4 matrix.">mat4_cast</a>(
|
||||
<a name="l00194"></a>00194 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00195"></a>00195
|
||||
<a name="l00198"></a>00198 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00199"></a>00199 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <a class="code" href="a00245.html#ga9a8fa3c0a776ce21fde307d94f5a5a52" title="Converts a 3 * 3 matrix to a quaternion.">quat_cast</a>(
|
||||
<a name="l00200"></a>00200 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00201"></a>00201
|
||||
<a name="l00204"></a>00204 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00205"></a>00205 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <a class="code" href="a00245.html#ga9a8fa3c0a776ce21fde307d94f5a5a52" title="Converts a 3 * 3 matrix to a quaternion.">quat_cast</a>(
|
||||
<a name="l00206"></a>00206 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00207"></a>00207
|
||||
<a name="l00210"></a><a class="code" href="a00245.html#ga60408579db470456070a3336295625a7">00210</a> <span class="keyword">typedef</span> <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<float></a> <a class="code" href="a00245.html#ga60408579db470456070a3336295625a7" title="Quaternion of floating-point numbers.">quat</a>;
|
||||
<a name="l00211"></a>00211
|
||||
<a name="l00214"></a><a class="code" href="a00245.html#ga552e75db1669a7a86b59070d4efd6941">00214</a> <span class="keyword">typedef</span> <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<detail::thalf></a> <a class="code" href="a00245.html#ga552e75db1669a7a86b59070d4efd6941" title="Quaternion of half-precision floating-point numbers.">hquat</a>;
|
||||
<a name="l00215"></a>00215
|
||||
<a name="l00218"></a><a class="code" href="a00245.html#gaae07c293efbe1c530ff18044a15fe662">00218</a> <span class="keyword">typedef</span> <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<float></a> <a class="code" href="a00245.html#gaae07c293efbe1c530ff18044a15fe662" title="Quaternion of single-precision floating-point numbers.">fquat</a>;
|
||||
<a name="l00219"></a>00219
|
||||
<a name="l00222"></a><a class="code" href="a00245.html#ga5428321324094c7170d6133c8139d255">00222</a> <span class="keyword">typedef</span> <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<double></a> <a class="code" href="a00245.html#ga5428321324094c7170d6133c8139d255" title="Quaternion of double-precision floating-point numbers.">dquat</a>;
|
||||
<a name="l00223"></a>00223
|
||||
<a name="l00226"></a><a class="code" href="a00245.html#ga5acd0f3e9f9e3c0e6577440443ec4594">00226</a> <span class="keyword">typedef</span> <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<lowp_float></a> <a class="code" href="a00245.html#ga5acd0f3e9f9e3c0e6577440443ec4594" title="Quaternion of low precision floating-point numbers.">lowp_quat</a>;
|
||||
<a name="l00227"></a>00227
|
||||
<a name="l00230"></a><a class="code" href="a00245.html#gae93fe73ea5fe5e2150c2eb0641394dc8">00230</a> <span class="keyword">typedef</span> <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<mediump_float></a> <a class="code" href="a00245.html#gae93fe73ea5fe5e2150c2eb0641394dc8" title="Quaternion of medium precision floating-point numbers.">mediump_quat</a>;
|
||||
<a name="l00231"></a>00231
|
||||
<a name="l00234"></a><a class="code" href="a00245.html#ga8a7c2c751ad30db9ec4268a6b7d99f6c">00234</a> <span class="keyword">typedef</span> <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<highp_float></a> <a class="code" href="a00245.html#ga8a7c2c751ad30db9ec4268a6b7d99f6c" title="Quaternion of high precision floating-point numbers.">highp_quat</a>;
|
||||
<a name="l00236"></a>00236
|
||||
<a name="l00237"></a>00237 } <span class="comment">//namespace quaternion</span>
|
||||
<a name="l00238"></a>00238 } <span class="comment">//namespace gtc</span>
|
||||
<a name="l00239"></a>00239 } <span class="comment">//namespace glm</span>
|
||||
<a name="l00240"></a>00240
|
||||
<a name="l00241"></a>00241 <span class="preprocessor">#include "quaternion.inl"</span>
|
||||
<a name="l00242"></a>00242
|
||||
<a name="l00243"></a>00243 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtc::quaternion;}
|
||||
<a name="l00244"></a>00244
|
||||
<a name="l00245"></a>00245 <span class="preprocessor">#endif//glm_gtc_quaternion</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,205 +0,0 @@
|
||||
<!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>quaternion.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">quaternion.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-05-21</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/quaternion.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span><span class="comment">// ToDo:</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">// - Study constructors with angles and axis</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">// - Study constructors with vec3 that are the imaginary component of quaternion</span>
|
||||
<a name="l00016"></a>00016 <span class="comment"></span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef glm_gtx_quaternion</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_quaternion</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor"></span>
|
||||
<a name="l00020"></a>00020 <span class="comment">// Dependency:</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor">#include "../gtc/quaternion.hpp"</span>
|
||||
<a name="l00023"></a>00023
|
||||
<a name="l00024"></a>00024 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_quaternion extension included")</span>
|
||||
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00027"></a>00027 <span class="preprocessor"></span>
|
||||
<a name="l00028"></a>00028 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00029"></a>00029 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00030"></a><a class="code" href="a00209.html">00030</a> <span class="keyword">namespace </span>quaternion
|
||||
<a name="l00031"></a>00031 {
|
||||
<a name="l00032"></a>00032 <span class="keyword">using namespace </span>gtc::quaternion;
|
||||
<a name="l00033"></a>00033
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00039"></a>00039 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00040"></a>00040 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <a class="code" href="a00286.html#ga2a222a07e879ab25de36d6b5a8f6610d" title="Compute a cross product between a quaternion and a vector.">cross</a>(
|
||||
<a name="l00041"></a>00041 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & q,
|
||||
<a name="l00042"></a>00042 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00046"></a>00046 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00047"></a>00047 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <a class="code" href="a00286.html#ga2a222a07e879ab25de36d6b5a8f6610d" title="Compute a cross product between a quaternion and a vector.">cross</a>(
|
||||
<a name="l00048"></a>00048 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & v,
|
||||
<a name="l00049"></a>00049 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & q);
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00054"></a>00054 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00055"></a>00055 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <a class="code" href="a00286.html#ga203b736245b7519eb151ac46e0bf7f21" title="Compute a point on a path according squad equation.">squad</a>(
|
||||
<a name="l00056"></a>00056 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & q1,
|
||||
<a name="l00057"></a>00057 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & q2,
|
||||
<a name="l00058"></a>00058 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & s1,
|
||||
<a name="l00059"></a>00059 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & s2,
|
||||
<a name="l00060"></a>00060 valType <span class="keyword">const</span> & h);
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00064"></a>00064 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00065"></a>00065 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <a class="code" href="a00286.html#gaa15c443e97ac7476d04627d868995891" title="Returns an intermediate control point for squad interpolation.">intermediate</a>(
|
||||
<a name="l00066"></a>00066 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & prev,
|
||||
<a name="l00067"></a>00067 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & curr,
|
||||
<a name="l00068"></a>00068 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & next);
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00072"></a>00072 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00073"></a>00073 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <a class="code" href="a00286.html#gaed2302270ec468d26de745516ccb5d4b" title="Returns a exp of a quaternion.">exp</a>(
|
||||
<a name="l00074"></a>00074 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & q,
|
||||
<a name="l00075"></a>00075 valType <span class="keyword">const</span> & exponent);
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00079"></a>00079 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00080"></a>00080 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <a class="code" href="a00286.html#ga11af1897310ec8a09210fb7b4deb0027" title="Returns a log of a quaternion.">log</a>(
|
||||
<a name="l00081"></a>00081 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & q);
|
||||
<a name="l00082"></a>00082
|
||||
<a name="l00085"></a>00085 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00086"></a>00086 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <a class="code" href="a00286.html#ga42873121534327c9e5238f3ca3d6cd03" title="Returns x raised to the y power.">pow</a>(
|
||||
<a name="l00087"></a>00087 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & x,
|
||||
<a name="l00088"></a>00088 valType <span class="keyword">const</span> & y);
|
||||
<a name="l00089"></a>00089
|
||||
<a name="l00092"></a>00092 <span class="comment">//template <typename valType> </span>
|
||||
<a name="l00093"></a>00093 <span class="comment">//detail::tquat<valType> sqrt(</span>
|
||||
<a name="l00094"></a>00094 <span class="comment">// detail::tquat<valType> const & q);</span>
|
||||
<a name="l00095"></a>00095
|
||||
<a name="l00098"></a>00098 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00099"></a>00099 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <a class="code" href="a00286.html#ga7f163c787898b76dc1d91eb48523ce87" title="Returns quarternion square root.">rotate</a>(
|
||||
<a name="l00100"></a>00100 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & q,
|
||||
<a name="l00101"></a>00101 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00102"></a>00102
|
||||
<a name="l00105"></a>00105 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00106"></a>00106 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<valType></a> <a class="code" href="a00286.html#ga7f163c787898b76dc1d91eb48523ce87" title="Returns quarternion square root.">rotate</a>(
|
||||
<a name="l00107"></a>00107 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & q,
|
||||
<a name="l00108"></a>00108 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<valType></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00109"></a>00109
|
||||
<a name="l00112"></a>00112 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00113"></a>00113 valType <a class="code" href="a00286.html#ga6a3387a7d60728f60d86546b2f4d4d30" title="Returns the quaternion rotation angle.">angle</a>(
|
||||
<a name="l00114"></a>00114 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00115"></a>00115
|
||||
<a name="l00118"></a>00118 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00119"></a>00119 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <a class="code" href="a00286.html#ga6dd1904e2a6cc8e54bd324994094a6f9" title="Returns the q rotation axis.">axis</a>(
|
||||
<a name="l00120"></a>00120 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00121"></a>00121
|
||||
<a name="l00124"></a>00124 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00125"></a>00125 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <a class="code" href="a00286.html#ga4412b01c376d9cfc9cc06b2d511d0f16" title="Build a quaternion from an angle and a normalized axis.">angleAxis</a>(
|
||||
<a name="l00126"></a>00126 valType <span class="keyword">const</span> & angle,
|
||||
<a name="l00127"></a>00127 valType <span class="keyword">const</span> & x,
|
||||
<a name="l00128"></a>00128 valType <span class="keyword">const</span> & y,
|
||||
<a name="l00129"></a>00129 valType <span class="keyword">const</span> & z);
|
||||
<a name="l00130"></a>00130
|
||||
<a name="l00133"></a>00133 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00134"></a>00134 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <a class="code" href="a00286.html#ga4412b01c376d9cfc9cc06b2d511d0f16" title="Build a quaternion from an angle and a normalized axis.">angleAxis</a>(
|
||||
<a name="l00135"></a>00135 valType <span class="keyword">const</span> & angle,
|
||||
<a name="l00136"></a>00136 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <span class="keyword">const</span> & axis);
|
||||
<a name="l00137"></a>00137
|
||||
<a name="l00140"></a>00140 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00141"></a>00141 valType <a class="code" href="a00286.html#ga23eb8e1aeaf751f7cc46fbaa291e223d" title="Extract the real component of a quaternion.">extractRealComponent</a>(
|
||||
<a name="l00142"></a>00142 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & q);
|
||||
<a name="l00143"></a>00143
|
||||
<a name="l00146"></a>00146 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00147"></a>00147 valType <a class="code" href="a00286.html#ga60a4f955b2836d85f3d21ded84879926" title="Returns roll value of euler angles in degrees.">roll</a>(
|
||||
<a name="l00148"></a>00148 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00149"></a>00149
|
||||
<a name="l00152"></a>00152 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00153"></a>00153 valType <a class="code" href="a00286.html#gafad23e37f1723bbbbd7f9498cd729126" title="Returns pitch value of euler angles in degrees.">pitch</a>(
|
||||
<a name="l00154"></a>00154 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00155"></a>00155
|
||||
<a name="l00158"></a>00158 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00159"></a>00159 valType <a class="code" href="a00286.html#ga4795f1cc522d82d672f7be9a405583c4" title="Returns yaw value of euler angles in degrees.">yaw</a>(
|
||||
<a name="l00160"></a>00160 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00161"></a>00161
|
||||
<a name="l00164"></a>00164 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00165"></a>00165 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<valType></a> <a class="code" href="a00286.html#ga39be27be43d9f80ce5bfc5e1adf21412" title="Returns euler angles, yitch as x, yaw as y, roll as z.">eulerAngles</a>(
|
||||
<a name="l00166"></a>00166 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00167"></a>00167
|
||||
<a name="l00170"></a>00170 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00171"></a><a class="code" href="a00286.html#ga61ec971322157330116a3aefe5bae609">00171</a> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<valType></a> <a class="code" href="a00286.html#ga61ec971322157330116a3aefe5bae609" title="Converts a quaternion to a 3 * 3 matrix.">toMat3</a>(
|
||||
<a name="l00172"></a>00172 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & x){<span class="keywordflow">return</span> <a class="code" href="a00245.html#ga38702707009c743e9f304aadc25aeeeb" title="Converts a quaternion to a 3 * 3 matrix.">gtc::quaternion::mat3_cast</a>(x);}
|
||||
<a name="l00173"></a>00173
|
||||
<a name="l00176"></a>00176 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00177"></a><a class="code" href="a00286.html#ga80622343bd7ccf43c9b4cb677ba3ce38">00177</a> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00286.html#ga80622343bd7ccf43c9b4cb677ba3ce38" title="Converts a quaternion to a 4 * 4 matrix.">toMat4</a>(
|
||||
<a name="l00178"></a>00178 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <span class="keyword">const</span> & x){<span class="keywordflow">return</span> <a class="code" href="a00245.html#gae2d14d52f9fef3da00cf867f9e2e3dfa" title="Converts a quaternion to a 4 * 4 matrix.">gtc::quaternion::mat4_cast</a>(x);}
|
||||
<a name="l00179"></a>00179
|
||||
<a name="l00182"></a>00182 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00183"></a><a class="code" href="a00286.html#ga991e534718ab690ff21e201f27bfd43b">00183</a> <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <a class="code" href="a00286.html#ga991e534718ab690ff21e201f27bfd43b" title="Converts a 3 * 3 matrix to a quaternion.">toQuat</a>(
|
||||
<a name="l00184"></a>00184 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<valType></a> <span class="keyword">const</span> & x){<span class="keywordflow">return</span> <a class="code" href="a00245.html#ga9a8fa3c0a776ce21fde307d94f5a5a52" title="Converts a 3 * 3 matrix to a quaternion.">gtc::quaternion::quat_cast</a>(x);}
|
||||
<a name="l00185"></a>00185
|
||||
<a name="l00188"></a>00188 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00189"></a><a class="code" href="a00286.html#ga2d9d1916258d13bd5f0373341400f18c">00189</a> <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<valType></a> <a class="code" href="a00286.html#ga991e534718ab690ff21e201f27bfd43b" title="Converts a 3 * 3 matrix to a quaternion.">toQuat</a>(
|
||||
<a name="l00190"></a>00190 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <span class="keyword">const</span> & x){<span class="keywordflow">return</span> <a class="code" href="a00245.html#ga9a8fa3c0a776ce21fde307d94f5a5a52" title="Converts a 3 * 3 matrix to a quaternion.">gtc::quaternion::quat_cast</a>(x);}
|
||||
<a name="l00191"></a>00191
|
||||
<a name="l00194"></a>00194 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00195"></a>00195 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <a class="code" href="a00286.html#ga22566896a998311431a0612e1c222002" title="Quaternion interpolation using the rotation short path.">shortMix</a>(
|
||||
<a name="l00196"></a>00196 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & x,
|
||||
<a name="l00197"></a>00197 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & y,
|
||||
<a name="l00198"></a>00198 T <span class="keyword">const</span> & a);
|
||||
<a name="l00199"></a>00199
|
||||
<a name="l00202"></a>00202 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00203"></a>00203 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <a class="code" href="a00286.html#ga65d5734ce29049d334992f6a59e27e58" title="Quaternion normalized linear interpolation.">fastMix</a>(
|
||||
<a name="l00204"></a>00204 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & x,
|
||||
<a name="l00205"></a>00205 <a class="code" href="a00019.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & y,
|
||||
<a name="l00206"></a>00206 T <span class="keyword">const</span> & a);
|
||||
<a name="l00207"></a>00207
|
||||
<a name="l00209"></a>00209 }<span class="comment">//namespace quaternion</span>
|
||||
<a name="l00210"></a>00210 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00211"></a>00211 } <span class="comment">//namespace glm</span>
|
||||
<a name="l00212"></a>00212
|
||||
<a name="l00213"></a>00213 <span class="preprocessor">#include "quaternion.inl"</span>
|
||||
<a name="l00214"></a>00214
|
||||
<a name="l00215"></a>00215 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::quaternion;}
|
||||
<a name="l00216"></a>00216
|
||||
<a name="l00217"></a>00217 <span class="preprocessor">#endif//glm_gtx_quaternion</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,127 +0,0 @@
|
||||
<!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>random.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">random.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2006-01-16</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2007-08-30</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/random.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTX_vecx</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">// - GLM_GTX_half_float</span>
|
||||
<a name="l00014"></a>00014 <span class="comment"></span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor">#ifndef glm_gtx_random</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_random</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span>
|
||||
<a name="l00018"></a>00018 <span class="comment">// Dependency:</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#include "../gtc/half_float.hpp"</span>
|
||||
<a name="l00021"></a>00021
|
||||
<a name="l00022"></a>00022 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_random extension included")</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor"></span>
|
||||
<a name="l00026"></a>00026 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00027"></a>00027 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00028"></a><a class="code" href="a00210.html">00028</a> <span class="keyword">namespace </span>random
|
||||
<a name="l00029"></a>00029 {
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00035"></a>00035 <span class="keyword">template</span> <<span class="keyword">typename</span> T> T <a class="code" href="a00287.html#ga8b6a21d90d07f7a655264009590ddcce" title="Generate a random number in the interval [-1, 1], according a linear distribution.">signedRand1</a>();
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00037"></a>00037 <span class="keyword">template</span> <> <span class="keywordtype">float</span> <a class="code" href="a00287.html#ga8b6a21d90d07f7a655264009590ddcce" title="Generate a random number in the interval [-1, 1], according a linear distribution.">signedRand1</a>();
|
||||
<a name="l00038"></a>00038 <span class="keyword">template</span> <> <span class="keywordtype">double</span> <a class="code" href="a00287.html#ga8b6a21d90d07f7a655264009590ddcce" title="Generate a random number in the interval [-1, 1], according a linear distribution.">signedRand1</a>();
|
||||
<a name="l00039"></a>00039 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00287.html#ga65f615e428d1e4009cdf872d434d5267" title="Generate 2 random numbers in the interval [-1, 1], according a linear distribution (From GLM_GTX_rand...">signedRand2</a>();
|
||||
<a name="l00040"></a>00040 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00287.html#gab3a7fc45bf10792e96e5bbc6aa3ff30b" title="Generate 3 random numbers in the interval [-1, 1], according a linear distribution (From GLM_GTX_rand...">signedRand3</a>();
|
||||
<a name="l00041"></a>00041 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00287.html#ga917ac879bf910263d7af720d03342e8a" title="Generate 4 random numbers in the interval [-1, 1], according a linear distribution (From GLM_GTX_rand...">signedRand4</a>();
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00043"></a>00043 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00287.html#ga5d05c63350546c1e7aa058bbf1b7f547" title="Generate a normalized 2D vector regulary distribute on a circle (From GLM_GTX_random extension)...">normalizedRand2</a>();
|
||||
<a name="l00044"></a>00044 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00287.html#ga5d05c63350546c1e7aa058bbf1b7f547" title="Generate a normalized 2D vector regulary distribute on a circle (From GLM_GTX_random extension)...">normalizedRand2</a>(T Min, T Max);
|
||||
<a name="l00045"></a>00045 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00287.html#ga4d7a132cc05433f7c4c8263797f9d5b4" title="Generate a normalized 3D vector regulary distribute on a sphere (From GLM_GTX_random extension)...">normalizedRand3</a>();
|
||||
<a name="l00046"></a>00046 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00287.html#ga4d7a132cc05433f7c4c8263797f9d5b4" title="Generate a normalized 3D vector regulary distribute on a sphere (From GLM_GTX_random extension)...">normalizedRand3</a>(T Min, T Max);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00048"></a>00048 <span class="keyword">template</span> <<span class="keyword">typename</span> T> T <a class="code" href="a00287.html#gaf7f3b54ec804a8eb627ec78f6d7eab2e" title="Generate a random number in the interval [0, 1], according a linear distribution (From GLM_GTX_random...">compRand1</a>();
|
||||
<a name="l00049"></a>00049 <span class="keyword">template</span> <> <span class="keywordtype">float</span> <a class="code" href="a00287.html#gaf7f3b54ec804a8eb627ec78f6d7eab2e" title="Generate a random number in the interval [0, 1], according a linear distribution (From GLM_GTX_random...">compRand1</a>();
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <> <span class="keywordtype">double</span> <a class="code" href="a00287.html#gaf7f3b54ec804a8eb627ec78f6d7eab2e" title="Generate a random number in the interval [0, 1], according a linear distribution (From GLM_GTX_random...">compRand1</a>();
|
||||
<a name="l00051"></a>00051 <span class="keyword">template</span> <<span class="keyword">typename</span> T> T <a class="code" href="a00287.html#gaf7f3b54ec804a8eb627ec78f6d7eab2e" title="Generate a random number in the interval [0, 1], according a linear distribution (From GLM_GTX_random...">compRand1</a>(T Min, T Max);
|
||||
<a name="l00052"></a>00052 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00287.html#ga5082aae274f3851014a8f1665661fc9a" title="Generate 2 random numbers in the interval [Min, Max], according a linear distribution (From GLM_GTX_r...">compRand2</a>(T Min, T Max);
|
||||
<a name="l00053"></a>00053 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00287.html#ga25d17c98a74d5252c0d1f4070e0dce75" title="Generate 3 random numbers in the interval [Min, Max], according a linear distribution (From GLM_GTX_r...">compRand3</a>(T Min, T Max);
|
||||
<a name="l00054"></a>00054 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00287.html#ga58863d5503a6c1aefaa5d01775a83267" title="Generate 4 random numbers in the interval [Min, Max], according a linear distribution (From GLM_GTX_r...">compRand4</a>(T Min, T Max);
|
||||
<a name="l00055"></a>00055 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00287.html#ga5082aae274f3851014a8f1665661fc9a" title="Generate 2 random numbers in the interval [Min, Max], according a linear distribution (From GLM_GTX_r...">compRand2</a>(<span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& Min, <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& Max);
|
||||
<a name="l00056"></a>00056 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00287.html#ga25d17c98a74d5252c0d1f4070e0dce75" title="Generate 3 random numbers in the interval [Min, Max], according a linear distribution (From GLM_GTX_r...">compRand3</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& Min, <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& Max);
|
||||
<a name="l00057"></a>00057 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00287.html#ga58863d5503a6c1aefaa5d01775a83267" title="Generate 4 random numbers in the interval [Min, Max], according a linear distribution (From GLM_GTX_r...">compRand4</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& Min, <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& Max);
|
||||
<a name="l00058"></a>00058
|
||||
<a name="l00059"></a>00059 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00287.html#ga12d03cc32f213b4173e58f05d74232b3" title="Generate a random normalized 2 component vector. It's a spherical uniform distribution. (From GLM_GTX_random extension)">vecRand2</a>();
|
||||
<a name="l00060"></a>00060 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00287.html#ga12d03cc32f213b4173e58f05d74232b3" title="Generate a random normalized 2 component vector. It's a spherical uniform distribution. (From GLM_GTX_random extension)">vecRand2</a>(T MinRadius, T MaxRadius);
|
||||
<a name="l00061"></a>00061 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00287.html#ga63249d58e1327a83638f1cf8b421a0de" title="Generate a random normalized 3 component vector. It's a spherical uniform distribution. (From GLM_GTX_random extension)">vecRand3</a>();
|
||||
<a name="l00062"></a>00062 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00287.html#ga63249d58e1327a83638f1cf8b421a0de" title="Generate a random normalized 3 component vector. It's a spherical uniform distribution. (From GLM_GTX_random extension)">vecRand3</a>(T MinRadius, T MaxRadius);
|
||||
<a name="l00063"></a>00063 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00287.html#gac2d7a76d889e0b5e9414791b9403c98c" title="Generate a random normalized 4 component vector. It's a spherical uniform distribution. (From GLM_GTX_random extension)">vecRand4</a>();
|
||||
<a name="l00064"></a>00064 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00287.html#gac2d7a76d889e0b5e9414791b9403c98c" title="Generate a random normalized 4 component vector. It's a spherical uniform distribution. (From GLM_GTX_random extension)">vecRand4</a>(T MinRadius, T MaxRadius);
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00066"></a>00066 <span class="keyword">template</span> <<span class="keyword">typename</span> T> T <a class="code" href="a00287.html#gaea7fcb106b788c816db85cd1e3be6188" title="Gererate a random floating number according a Gauss distribution. (From GLM_GTX_random extension)...">gaussRand1</a>(T mean, T std_deviation);
|
||||
<a name="l00067"></a>00067 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00287.html#gabe761c9b9cc6999fc91acf79a7007ddb" title="Gererate 2 random floating numbers according a Gauss distribution. (From GLM_GTX_random extension)...">gaussRand2</a>(T mean, T std_deviation);
|
||||
<a name="l00068"></a>00068 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00287.html#ga103cde6c382abea173da6b1800acd5c9" title="Gererate 3 random floating numbers according a Gauss distribution. (From GLM_GTX_random extension)...">gaussRand3</a>(T mean, T std_deviation);
|
||||
<a name="l00069"></a>00069 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00287.html#gab9f9cf1859278ad7f1ccc38cf3092cf2" title="Gererate 4 random floating numbers according a Gauss distribution. (From GLM_GTX_random extension)...">gaussRand4</a>(T mean, T std_deviation);
|
||||
<a name="l00070"></a>00070 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00287.html#gabe761c9b9cc6999fc91acf79a7007ddb" title="Gererate 2 random floating numbers according a Gauss distribution. (From GLM_GTX_random extension)...">gaussRand2</a>(<span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& mean, T std_deviation);
|
||||
<a name="l00071"></a>00071 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00287.html#ga103cde6c382abea173da6b1800acd5c9" title="Gererate 3 random floating numbers according a Gauss distribution. (From GLM_GTX_random extension)...">gaussRand3</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& mean, T std_deviation);
|
||||
<a name="l00072"></a>00072 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00287.html#gab9f9cf1859278ad7f1ccc38cf3092cf2" title="Gererate 4 random floating numbers according a Gauss distribution. (From GLM_GTX_random extension)...">gaussRand4</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& mean, T std_deviation);
|
||||
<a name="l00073"></a>00073 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00287.html#gabe761c9b9cc6999fc91acf79a7007ddb" title="Gererate 2 random floating numbers according a Gauss distribution. (From GLM_GTX_random extension)...">gaussRand2</a>(T mean, <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& std_deviation);
|
||||
<a name="l00074"></a>00074 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00287.html#ga103cde6c382abea173da6b1800acd5c9" title="Gererate 3 random floating numbers according a Gauss distribution. (From GLM_GTX_random extension)...">gaussRand3</a>(T mean, <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& std_deviation);
|
||||
<a name="l00075"></a>00075 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00287.html#gab9f9cf1859278ad7f1ccc38cf3092cf2" title="Gererate 4 random floating numbers according a Gauss distribution. (From GLM_GTX_random extension)...">gaussRand4</a>(T mean, <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& std_deviation);
|
||||
<a name="l00076"></a>00076 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00287.html#gabe761c9b9cc6999fc91acf79a7007ddb" title="Gererate 2 random floating numbers according a Gauss distribution. (From GLM_GTX_random extension)...">gaussRand2</a>(<span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& mean, <span class="keyword">const</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a>& std_deviation);
|
||||
<a name="l00077"></a>00077 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00287.html#ga103cde6c382abea173da6b1800acd5c9" title="Gererate 3 random floating numbers according a Gauss distribution. (From GLM_GTX_random extension)...">gaussRand3</a>(<span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& mean, <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& std_deviation);
|
||||
<a name="l00078"></a>00078 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00287.html#gab9f9cf1859278ad7f1ccc38cf3092cf2" title="Gererate 4 random floating numbers according a Gauss distribution. (From GLM_GTX_random extension)...">gaussRand4</a>(<span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& mean, <span class="keyword">const</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a>& std_deviation);
|
||||
<a name="l00079"></a>00079
|
||||
<a name="l00081"></a>00081 }<span class="comment">//namespace random</span>
|
||||
<a name="l00082"></a>00082 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00083"></a>00083 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00084"></a>00084
|
||||
<a name="l00085"></a>00085 <span class="preprocessor">#include "random.inl"</span>
|
||||
<a name="l00086"></a>00086
|
||||
<a name="l00087"></a>00087 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::random;}
|
||||
<a name="l00088"></a>00088
|
||||
<a name="l00089"></a>00089 <span class="preprocessor">#endif//glm_gtx_random</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,90 +0,0 @@
|
||||
<!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>raw_data.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">raw_data.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-11-19</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-01-28</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/raw_data.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_raw_data</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_raw_data</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../gtc/type_precision.hpp"</span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_raw_data extension included")</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span>
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00026"></a><a class="code" href="a00211.html">00026</a> <span class="keyword">namespace </span>raw_data
|
||||
<a name="l00027"></a>00027 {
|
||||
<a name="l00028"></a>00028 <span class="keyword">using namespace </span>gtc::type_precision;
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00035"></a><a class="code" href="a00288.html#ga4a5def5e5e8468de8e97132ddf5c72c5">00035</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#ga36475e31b1992cfde54c1a6f5a148865" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">uint8</a> <a class="code" href="a00288.html#ga4a5def5e5e8468de8e97132ddf5c72c5" title="Type for byte numbers.">byte</a>;
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00039"></a><a class="code" href="a00288.html#ga9599d4794d33c5d5d07675b5250b74bd">00039</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#ga13471cbbe74e4303a57f3743d007b74d" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">uint16</a> <a class="code" href="a00288.html#ga9599d4794d33c5d5d07675b5250b74bd" title="Type for word numbers.">word</a>;
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00043"></a><a class="code" href="a00288.html#ga162201f4386c2973e6ebd76ac0941de0">00043</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">uint32</a> <a class="code" href="a00288.html#ga162201f4386c2973e6ebd76ac0941de0" title="Type for dword numbers.">dword</a>;
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00047"></a><a class="code" href="a00288.html#gab7872fb6c3bcddc8658fe3209f04d275">00047</a> <span class="keyword">typedef</span> <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a> <a class="code" href="a00288.html#gab7872fb6c3bcddc8658fe3209f04d275" title="Type for qword numbers.">qword</a>;
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00050"></a>00050 }<span class="comment">// namespace raw_data</span>
|
||||
<a name="l00051"></a>00051 }<span class="comment">// namespace gtx</span>
|
||||
<a name="l00052"></a>00052 }<span class="comment">// namespace glm</span>
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00054"></a>00054 <span class="preprocessor">#include "raw_data.inl"</span>
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::raw_data;}
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00058"></a>00058 <span class="preprocessor">#endif//glm_gtx_raw_data</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,113 +0,0 @@
|
||||
<!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>reciprocal.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">reciprocal.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-10-09</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-10-09</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/reciprocal.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_gtx_reciprocal</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_reciprocal</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="comment">// Dependency:</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00015"></a>00015
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_reciprocal extension included")</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor"></span>
|
||||
<a name="l00020"></a>00020 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00021"></a>00021 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00022"></a><a class="code" href="a00212.html">00022</a> <span class="keyword">namespace </span>reciprocal
|
||||
<a name="l00023"></a>00023 {
|
||||
<a name="l00026"></a>00026
|
||||
<a name="l00030"></a>00030 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00031"></a>00031 genType <a class="code" href="a00289.html#gace10a38c1888d5fe0f77c08ba1775b41" title="Secant function.">sec</a>(genType <span class="keyword">const</span> & <a class="code" href="a00286.html#ga6a3387a7d60728f60d86546b2f4d4d30" title="Returns the quaternion rotation angle.">angle</a>);
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00036"></a>00036 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00037"></a>00037 genType <a class="code" href="a00289.html#ga1f21e65ffedffde468d93a790f875637" title="Cosecant function.">csc</a>(genType <span class="keyword">const</span> & angle);
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00042"></a>00042 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00043"></a>00043 genType <a class="code" href="a00289.html#ga6c2f14ab2a9148b461392b320259ac62" title="Cotangent function.">cot</a>(genType <span class="keyword">const</span> & angle);
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00047"></a>00047 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00048"></a>00048 genType <a class="code" href="a00289.html#gadf3d5c2b777dd7f9ccb284919daeb15b" title="Inverse secant function.">asec</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00049"></a>00049
|
||||
<a name="l00052"></a>00052 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00053"></a>00053 genType <a class="code" href="a00289.html#gacc31bf591741480d2cde587b598badf7" title="Inverse cosecant function.">acsc</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00054"></a>00054
|
||||
<a name="l00057"></a>00057 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00058"></a>00058 genType <a class="code" href="a00289.html#gad8b3e1d0a99ffb209157baa47370e684" title="Inverse cotangent function.">acot</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00062"></a>00062 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00063"></a>00063 genType <a class="code" href="a00289.html#ga3d6f2c8efdefcf326be500a565d48a29" title="Secant hyperbolic function.">sech</a>(genType <span class="keyword">const</span> & angle);
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00067"></a>00067 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00068"></a>00068 genType <a class="code" href="a00289.html#gad690383d8014e5c46a2d35a6a59ff053" title="Cosecant hyperbolic function.">csch</a>(genType <span class="keyword">const</span> & angle);
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00072"></a>00072 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00073"></a>00073 genType <a class="code" href="a00289.html#gaf3c2cc20b634fcd623840ecc99a038ad" title="Cotangent hyperbolic function.">coth</a>(genType <span class="keyword">const</span> & angle);
|
||||
<a name="l00074"></a>00074
|
||||
<a name="l00077"></a>00077 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00078"></a>00078 genType <a class="code" href="a00289.html#ga43313adedfb151b9d019fbda2388fa4b" title="Inverse secant hyperbolic function.">asech</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00079"></a>00079
|
||||
<a name="l00082"></a>00082 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00083"></a>00083 genType <a class="code" href="a00289.html#ga33970e21bf86b28fcb1079a656a6aa97" title="Inverse cosecant hyperbolic function.">acsch</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00084"></a>00084
|
||||
<a name="l00087"></a>00087 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00088"></a>00088 genType <a class="code" href="a00289.html#gabef15ad1a12c56d39cee1afb251d9086" title="Inverse cotangent hyperbolic function.">acoth</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00089"></a>00089
|
||||
<a name="l00091"></a>00091 }<span class="comment">//namespace reciprocal</span>
|
||||
<a name="l00092"></a>00092 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00093"></a>00093 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00094"></a>00094
|
||||
<a name="l00095"></a>00095 <span class="preprocessor">#include "reciprocal.inl"</span>
|
||||
<a name="l00096"></a>00096
|
||||
<a name="l00097"></a>00097 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::reciprocal;}
|
||||
<a name="l00098"></a>00098
|
||||
<a name="l00099"></a>00099 <span class="preprocessor">#endif//glm_gtx_reciprocal</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,134 +0,0 @@
|
||||
<!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>rotate_vector.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">rotate_vector.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2006-11-02</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-02-19</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/rotate_vector.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_rotate_vector</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_rotate_vector</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../gtx/transform.hpp"</span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_rotate_vector extension included")</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span>
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00026"></a><a class="code" href="a00213.html">00026</a> <span class="keyword">namespace </span>rotate_vector
|
||||
<a name="l00027"></a>00027 {
|
||||
<a name="l00028"></a>00028 <span class="keyword">using namespace </span>transform;
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00035"></a>00035 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00036"></a>00036 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00290.html#ga74ee9d3b702b3ddfc07478b86c89ce18" title="Rotate a two dimensional vector.">rotate</a>(
|
||||
<a name="l00037"></a>00037 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <span class="keyword">const</span> & v,
|
||||
<a name="l00038"></a>00038 T <span class="keyword">const</span> & <a class="code" href="a00286.html#ga6a3387a7d60728f60d86546b2f4d4d30" title="Returns the quaternion rotation angle.">angle</a>);
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00042"></a>00042 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00043"></a>00043 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00290.html#ga74ee9d3b702b3ddfc07478b86c89ce18" title="Rotate a two dimensional vector.">rotate</a>(
|
||||
<a name="l00044"></a>00044 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & v,
|
||||
<a name="l00045"></a>00045 T <span class="keyword">const</span> & angle,
|
||||
<a name="l00046"></a>00046 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & normal);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00051"></a>00051 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00290.html#ga74ee9d3b702b3ddfc07478b86c89ce18" title="Rotate a two dimensional vector.">rotate</a>(
|
||||
<a name="l00052"></a>00052 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <span class="keyword">const</span> & v,
|
||||
<a name="l00053"></a>00053 T <span class="keyword">const</span> & angle,
|
||||
<a name="l00054"></a>00054 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & normal);
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00058"></a>00058 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00059"></a>00059 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00290.html#gabb24431b78204cb7852f0597f4514e6a" title="Rotate a three dimensional vector around the X axis.">rotateX</a>(
|
||||
<a name="l00060"></a>00060 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & v,
|
||||
<a name="l00061"></a>00061 T <span class="keyword">const</span> & angle);
|
||||
<a name="l00062"></a>00062
|
||||
<a name="l00065"></a>00065 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00066"></a>00066 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00290.html#ga34f0e716fadf266f55945f18b3bc87e9" title="Rotate a three dimensional vector around the Y axis.">rotateY</a>(
|
||||
<a name="l00067"></a>00067 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & v,
|
||||
<a name="l00068"></a>00068 T <span class="keyword">const</span> & angle);
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00072"></a>00072 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00073"></a>00073 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00290.html#gafb9ff0a66486f10ad1c4937bfa54d6e8" title="Rotate a three dimensional vector around the Z axis.">rotateZ</a>(
|
||||
<a name="l00074"></a>00074 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & v,
|
||||
<a name="l00075"></a>00075 T <span class="keyword">const</span> & angle);
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00079"></a>00079 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00080"></a>00080 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00290.html#gabb24431b78204cb7852f0597f4514e6a" title="Rotate a three dimensional vector around the X axis.">rotateX</a>(
|
||||
<a name="l00081"></a>00081 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <span class="keyword">const</span> & v,
|
||||
<a name="l00082"></a>00082 T <span class="keyword">const</span> & angle);
|
||||
<a name="l00083"></a>00083
|
||||
<a name="l00086"></a>00086 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00087"></a>00087 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00290.html#ga34f0e716fadf266f55945f18b3bc87e9" title="Rotate a three dimensional vector around the Y axis.">rotateY</a>(
|
||||
<a name="l00088"></a>00088 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <span class="keyword">const</span> & v,
|
||||
<a name="l00089"></a>00089 T <span class="keyword">const</span> & angle);
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00093"></a>00093 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00094"></a>00094 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00290.html#gafb9ff0a66486f10ad1c4937bfa54d6e8" title="Rotate a three dimensional vector around the Z axis.">rotateZ</a>(
|
||||
<a name="l00095"></a>00095 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <span class="keyword">const</span> & v,
|
||||
<a name="l00096"></a>00096 T <span class="keyword">const</span> & angle);
|
||||
<a name="l00097"></a>00097
|
||||
<a name="l00100"></a>00100 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00101"></a>00101 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00290.html#gae3a2b116deb10aa573c9931c9ea3c258" title="Build a rotation matrix from a normal and a up vector.">orientation</a>(
|
||||
<a name="l00102"></a>00102 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & Normal,
|
||||
<a name="l00103"></a>00103 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & Up);
|
||||
<a name="l00104"></a>00104
|
||||
<a name="l00106"></a>00106 }<span class="comment">//namespace rotate_vector</span>
|
||||
<a name="l00107"></a>00107 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00108"></a>00108 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00109"></a>00109
|
||||
<a name="l00110"></a>00110 <span class="preprocessor">#include "rotate_vector.inl"</span>
|
||||
<a name="l00111"></a>00111
|
||||
<a name="l00112"></a>00112 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::rotate_vector;}
|
||||
<a name="l00113"></a>00113
|
||||
<a name="l00114"></a>00114 <span class="preprocessor">#endif//glm_gtx_rotate_vector</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,205 +0,0 @@
|
||||
<!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>simd_mat4.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">simd_mat4.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-05-07</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-05-07</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/simd_vec4.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - intrinsic</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_simd_mat4</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_simd_mat4</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_SSE2)</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor"># include "../core/intrinsic_matrix.hpp"</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"># include "../gtx/simd_vec4.hpp"</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor">#else</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor"># error "GLM: GLM_GTX_simd_mat4 requires compiler support of SSE2 through intrinsics"</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00026"></a>00026 <span class="preprocessor"></span>
|
||||
<a name="l00027"></a>00027 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_simd_mat4 extension included")</span>
|
||||
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00030"></a>00030 <span class="preprocessor"></span>
|
||||
<a name="l00031"></a>00031 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00032"></a>00032 <span class="keyword">namespace </span>detail
|
||||
<a name="l00033"></a>00033 {
|
||||
<a name="l00036"></a><a class="code" href="a00291.html#ga7210a12f9861ab5585662dc1bf5a8221">00036</a> <a class="code" href="a00291.html#ga7210a12f9861ab5585662dc1bf5a8221" title="4x4 Matrix implemented using SIMD SEE intrinsics.">GLM_ALIGNED_STRUCT</a>(16) fmat4x4SIMD
|
||||
<a name="l00037"></a>00037 {
|
||||
<a name="l00038"></a>00038 <span class="keyword">enum</span> ctor{null};
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 <span class="keyword">typedef</span> <span class="keywordtype">float</span> value_type;
|
||||
<a name="l00041"></a>00041 <span class="keyword">typedef</span> fvec4SIMD col_type;
|
||||
<a name="l00042"></a>00042 <span class="keyword">typedef</span> fvec4SIMD row_type;
|
||||
<a name="l00043"></a>00043 <span class="keyword">typedef</span> std::size_t size_type;
|
||||
<a name="l00044"></a>00044 <span class="keyword">static</span> size_type value_size();
|
||||
<a name="l00045"></a>00045 <span class="keyword">static</span> size_type col_size();
|
||||
<a name="l00046"></a>00046 <span class="keyword">static</span> size_type row_size();
|
||||
<a name="l00047"></a>00047 <span class="keyword">static</span> <span class="keywordtype">bool</span> is_matrix();
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00049"></a>00049 fvec4SIMD Data[4];
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00052"></a>00052 <span class="comment">// Constructors</span>
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00054"></a>00054 fmat4x4SIMD();
|
||||
<a name="l00055"></a>00055 <span class="keyword">explicit</span> fmat4x4SIMD(<span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00056"></a>00056 <span class="keyword">explicit</span> fmat4x4SIMD(
|
||||
<a name="l00057"></a>00057 <span class="keywordtype">float</span> <span class="keyword">const</span> & x0, <span class="keywordtype">float</span> <span class="keyword">const</span> & y0, <span class="keywordtype">float</span> <span class="keyword">const</span> & z0, <span class="keywordtype">float</span> <span class="keyword">const</span> & w0,
|
||||
<a name="l00058"></a>00058 <span class="keywordtype">float</span> <span class="keyword">const</span> & x1, <span class="keywordtype">float</span> <span class="keyword">const</span> & y1, <span class="keywordtype">float</span> <span class="keyword">const</span> & z1, <span class="keywordtype">float</span> <span class="keyword">const</span> & w1,
|
||||
<a name="l00059"></a>00059 <span class="keywordtype">float</span> <span class="keyword">const</span> & x2, <span class="keywordtype">float</span> <span class="keyword">const</span> & y2, <span class="keywordtype">float</span> <span class="keyword">const</span> & z2, <span class="keywordtype">float</span> <span class="keyword">const</span> & w2,
|
||||
<a name="l00060"></a>00060 <span class="keywordtype">float</span> <span class="keyword">const</span> & x3, <span class="keywordtype">float</span> <span class="keyword">const</span> & y3, <span class="keywordtype">float</span> <span class="keyword">const</span> & z3, <span class="keywordtype">float</span> <span class="keyword">const</span> & w3);
|
||||
<a name="l00061"></a>00061 <span class="keyword">explicit</span> fmat4x4SIMD(
|
||||
<a name="l00062"></a>00062 fvec4SIMD <span class="keyword">const</span> & v0,
|
||||
<a name="l00063"></a>00063 fvec4SIMD <span class="keyword">const</span> & v1,
|
||||
<a name="l00064"></a>00064 fvec4SIMD <span class="keyword">const</span> & v2,
|
||||
<a name="l00065"></a>00065 fvec4SIMD <span class="keyword">const</span> & v3);
|
||||
<a name="l00066"></a>00066 <span class="keyword">explicit</span> fmat4x4SIMD(
|
||||
<a name="l00067"></a>00067 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">tmat4x4<float></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00068"></a>00068
|
||||
<a name="l00069"></a>00069 <span class="comment">// Conversions</span>
|
||||
<a name="l00070"></a>00070 <span class="comment">//template <typename U> </span>
|
||||
<a name="l00071"></a>00071 <span class="comment">//explicit tmat4x4(tmat4x4<U> const & m);</span>
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00073"></a>00073 <span class="comment">//explicit tmat4x4(tmat2x2<T> const & x);</span>
|
||||
<a name="l00074"></a>00074 <span class="comment">//explicit tmat4x4(tmat3x3<T> const & x);</span>
|
||||
<a name="l00075"></a>00075 <span class="comment">//explicit tmat4x4(tmat2x3<T> const & x);</span>
|
||||
<a name="l00076"></a>00076 <span class="comment">//explicit tmat4x4(tmat3x2<T> const & x);</span>
|
||||
<a name="l00077"></a>00077 <span class="comment">//explicit tmat4x4(tmat2x4<T> const & x);</span>
|
||||
<a name="l00078"></a>00078 <span class="comment">//explicit tmat4x4(tmat4x2<T> const & x);</span>
|
||||
<a name="l00079"></a>00079 <span class="comment">//explicit tmat4x4(tmat3x4<T> const & x);</span>
|
||||
<a name="l00080"></a>00080 <span class="comment">//explicit tmat4x4(tmat4x3<T> const & x);</span>
|
||||
<a name="l00081"></a>00081
|
||||
<a name="l00082"></a>00082 <span class="comment">// Accesses</span>
|
||||
<a name="l00083"></a>00083 fvec4SIMD & operator[](size_type i);
|
||||
<a name="l00084"></a>00084 fvec4SIMD <span class="keyword">const</span> & operator[](size_type i) <span class="keyword">const</span>;
|
||||
<a name="l00085"></a>00085
|
||||
<a name="l00086"></a>00086 <span class="comment">// Unary updatable operators</span>
|
||||
<a name="l00087"></a>00087 fmat4x4SIMD & operator= (fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00088"></a>00088 fmat4x4SIMD & operator+= (<span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00089"></a>00089 fmat4x4SIMD & operator+= (fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00090"></a>00090 fmat4x4SIMD & operator-= (<span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00091"></a>00091 fmat4x4SIMD & operator-= (fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00092"></a>00092 fmat4x4SIMD & operator*= (<span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00093"></a>00093 fmat4x4SIMD & operator*= (fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00094"></a>00094 fmat4x4SIMD & operator/= (<span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00095"></a>00095 fmat4x4SIMD & operator/= (fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00096"></a>00096 fmat4x4SIMD & operator++ ();
|
||||
<a name="l00097"></a>00097 fmat4x4SIMD & operator-- ();
|
||||
<a name="l00098"></a>00098 };
|
||||
<a name="l00099"></a>00099
|
||||
<a name="l00100"></a>00100 <span class="comment">// Binary operators</span>
|
||||
<a name="l00101"></a>00101 fmat4x4SIMD operator+ (fmat4x4SIMD <span class="keyword">const</span> & m, <span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00102"></a>00102 fmat4x4SIMD operator+ (<span class="keywordtype">float</span> <span class="keyword">const</span> & s, fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00103"></a>00103 fmat4x4SIMD operator+ (fmat4x4SIMD <span class="keyword">const</span> & m1, fmat4x4SIMD <span class="keyword">const</span> & m2);
|
||||
<a name="l00104"></a>00104
|
||||
<a name="l00105"></a>00105 fmat4x4SIMD operator- (fmat4x4SIMD <span class="keyword">const</span> & m, <span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00106"></a>00106 fmat4x4SIMD operator- (<span class="keywordtype">float</span> <span class="keyword">const</span> & s, fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00107"></a>00107 fmat4x4SIMD operator- (fmat4x4SIMD <span class="keyword">const</span> & m1, fmat4x4SIMD <span class="keyword">const</span> & m2);
|
||||
<a name="l00108"></a>00108
|
||||
<a name="l00109"></a>00109 fmat4x4SIMD operator* (fmat4x4SIMD <span class="keyword">const</span> & m, <span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00110"></a>00110 fmat4x4SIMD operator* (<span class="keywordtype">float</span> <span class="keyword">const</span> & s, fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00111"></a>00111
|
||||
<a name="l00112"></a>00112 fvec4SIMD operator* (fmat4x4SIMD <span class="keyword">const</span> & m, fvec4SIMD <span class="keyword">const</span> & v);
|
||||
<a name="l00113"></a>00113 fvec4SIMD operator* (fvec4SIMD <span class="keyword">const</span> & v, fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00114"></a>00114
|
||||
<a name="l00115"></a>00115 fmat4x4SIMD operator* (fmat4x4SIMD <span class="keyword">const</span> & m1, fmat4x4SIMD <span class="keyword">const</span> & m2);
|
||||
<a name="l00116"></a>00116
|
||||
<a name="l00117"></a>00117 fmat4x4SIMD operator/ (fmat4x4SIMD <span class="keyword">const</span> & m, <span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00118"></a>00118 fmat4x4SIMD operator/ (<span class="keywordtype">float</span> <span class="keyword">const</span> & s, fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00119"></a>00119
|
||||
<a name="l00120"></a>00120 fvec4SIMD operator/ (fmat4x4SIMD <span class="keyword">const</span> & m, fvec4SIMD <span class="keyword">const</span> & v);
|
||||
<a name="l00121"></a>00121 fvec4SIMD operator/ (fvec4SIMD <span class="keyword">const</span> & v, fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00122"></a>00122
|
||||
<a name="l00123"></a>00123 fmat4x4SIMD operator/ (fmat4x4SIMD <span class="keyword">const</span> & m1, fmat4x4SIMD <span class="keyword">const</span> & m2);
|
||||
<a name="l00124"></a>00124
|
||||
<a name="l00125"></a>00125 <span class="comment">// Unary constant operators</span>
|
||||
<a name="l00126"></a>00126 fmat4x4SIMD <span class="keyword">const</span> operator- (fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00127"></a>00127 fmat4x4SIMD <span class="keyword">const</span> operator-- (fmat4x4SIMD <span class="keyword">const</span> & m, <span class="keywordtype">int</span>);
|
||||
<a name="l00128"></a>00128 fmat4x4SIMD <span class="keyword">const</span> operator++ (fmat4x4SIMD <span class="keyword">const</span> & m, <span class="keywordtype">int</span>);
|
||||
<a name="l00129"></a>00129 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00130"></a>00130
|
||||
<a name="l00131"></a>00131 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00132"></a><a class="code" href="a00214.html">00132</a> <span class="keyword">namespace </span>simd_mat4
|
||||
<a name="l00133"></a>00133 {
|
||||
<a name="l00134"></a>00134 <span class="keyword">typedef</span> detail::fmat4x4SIMD simdMat4;
|
||||
<a name="l00135"></a>00135
|
||||
<a name="l00138"></a>00138
|
||||
<a name="l00141"></a>00141 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<float></a> <a class="code" href="a00291.html#ga8759e2cf163948c9c7ff138c1f56d501" title="Convert a simdMat4 to a mat4.">mat4_cast</a>(
|
||||
<a name="l00142"></a>00142 detail::fmat4x4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00143"></a>00143
|
||||
<a name="l00147"></a>00147 detail::fmat4x4SIMD <a class="code" href="a00291.html#ga5ae5a4950d3e354236390edfaa25301a" title="Multiply matrix x by matrix y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and...">matrixCompMult</a>(
|
||||
<a name="l00148"></a>00148 detail::fmat4x4SIMD <span class="keyword">const</span> & x,
|
||||
<a name="l00149"></a>00149 detail::fmat4x4SIMD <span class="keyword">const</span> & y);
|
||||
<a name="l00150"></a>00150
|
||||
<a name="l00155"></a>00155 detail::fmat4x4SIMD <a class="code" href="a00291.html#gafed2233ac30495621c2bdd4d121f9ced" title="Treats the first parameter c as a column vector and the second parameter r as a row vector and does a...">outerProduct</a>(
|
||||
<a name="l00156"></a>00156 detail::fvec4SIMD <span class="keyword">const</span> & c,
|
||||
<a name="l00157"></a>00157 detail::fvec4SIMD <span class="keyword">const</span> & r);
|
||||
<a name="l00158"></a>00158
|
||||
<a name="l00161"></a>00161 detail::fmat4x4SIMD <a class="code" href="a00291.html#ga5da402c7d42808dfc8c8d51e0ac9c868" title="Returns the transposed matrix of x (From GLM_GTX_simd_mat4 extension).">transpose</a>(
|
||||
<a name="l00162"></a>00162 detail::fmat4x4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00163"></a>00163
|
||||
<a name="l00166"></a>00166 <span class="keywordtype">float</span> <a class="code" href="a00291.html#ga9be926c258e64bf2413671d104b393e8" title="Return the determinant of a mat4 matrix.">determinant</a>(
|
||||
<a name="l00167"></a>00167 detail::fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00168"></a>00168
|
||||
<a name="l00171"></a>00171 detail::fmat4x4SIMD <a class="code" href="a00291.html#gace9ca056446fc614a846bac6a3ee1a1e" title="Return the inverse of a mat4 matrix.">inverse</a>(
|
||||
<a name="l00172"></a>00172 detail::fmat4x4SIMD <span class="keyword">const</span> & m);
|
||||
<a name="l00173"></a>00173
|
||||
<a name="l00175"></a>00175 }<span class="comment">// namespace simd_mat4</span>
|
||||
<a name="l00176"></a>00176 }<span class="comment">// namespace gtx</span>
|
||||
<a name="l00177"></a>00177 }<span class="comment">// namespace glm</span>
|
||||
<a name="l00178"></a>00178
|
||||
<a name="l00179"></a>00179 <span class="preprocessor">#include "simd_mat4.inl"</span>
|
||||
<a name="l00180"></a>00180
|
||||
<a name="l00181"></a>00181 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::simd_mat4;}
|
||||
<a name="l00182"></a>00182
|
||||
<a name="l00183"></a>00183 <span class="preprocessor">#endif//glm_gtx_simd_mat4</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,334 +0,0 @@
|
||||
<!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>simd_vec4.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">simd_vec4.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2009-05-07</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-05-07</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/simd_vec4.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - intrinsic</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_simd_vec4</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_simd_vec4</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_SSE2)</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor"># include "../core/intrinsic_common.hpp"</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"># include "../core/intrinsic_geometric.hpp"</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor">#else</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor"># error "GLM: GLM_GTX_simd_vec4 requires compiler support of SSE2 through intrinsics"</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00026"></a>00026 <span class="preprocessor"></span>
|
||||
<a name="l00027"></a>00027 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_simd_vec4 extension included")</span>
|
||||
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00030"></a>00030 <span class="preprocessor"></span>
|
||||
<a name="l00031"></a>00031 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00032"></a>00032 <span class="keyword">namespace </span>detail
|
||||
<a name="l00033"></a>00033 {
|
||||
<a name="l00036"></a>00036 <a class="code" href="a00291.html#ga7210a12f9861ab5585662dc1bf5a8221" title="4x4 Matrix implemented using SIMD SEE intrinsics.">GLM_ALIGNED_STRUCT</a>(16) fvec4SIMD
|
||||
<a name="l00037"></a>00037 {
|
||||
<a name="l00038"></a>00038 <span class="keyword">enum</span> ctor{null};
|
||||
<a name="l00039"></a>00039 <span class="keyword">typedef</span> __m128 value_type;
|
||||
<a name="l00040"></a>00040 <span class="keyword">typedef</span> std::size_t size_type;
|
||||
<a name="l00041"></a>00041 <span class="keyword">static</span> size_type value_size();
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00043"></a>00043 <span class="keyword">typedef</span> fvec4SIMD type;
|
||||
<a name="l00044"></a>00044 <span class="keyword">typedef</span> tvec4<bool> bool_type;
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00046"></a>00046 __m128 Data;
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00049"></a>00049 <span class="comment">// Implicit basic constructors</span>
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00051"></a>00051 fvec4SIMD();
|
||||
<a name="l00052"></a>00052 fvec4SIMD(__m128 <span class="keyword">const</span> & Data);
|
||||
<a name="l00053"></a>00053 fvec4SIMD(fvec4SIMD <span class="keyword">const</span> & v);
|
||||
<a name="l00054"></a>00054
|
||||
<a name="l00056"></a>00056 <span class="comment">// Explicit basic constructors</span>
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00058"></a>00058 <span class="keyword">explicit</span> fvec4SIMD(
|
||||
<a name="l00059"></a>00059 ctor);
|
||||
<a name="l00060"></a>00060 <span class="keyword">explicit</span> fvec4SIMD(
|
||||
<a name="l00061"></a>00061 <span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00062"></a>00062 <span class="keyword">explicit</span> fvec4SIMD(
|
||||
<a name="l00063"></a>00063 <span class="keywordtype">float</span> <span class="keyword">const</span> & x,
|
||||
<a name="l00064"></a>00064 <span class="keywordtype">float</span> <span class="keyword">const</span> & y,
|
||||
<a name="l00065"></a>00065 <span class="keywordtype">float</span> <span class="keyword">const</span> & z,
|
||||
<a name="l00066"></a>00066 <span class="keywordtype">float</span> <span class="keyword">const</span> & w);
|
||||
<a name="l00067"></a>00067 <span class="keyword">explicit</span> fvec4SIMD(
|
||||
<a name="l00068"></a>00068 tvec4<float> <span class="keyword">const</span> & v);
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00073"></a>00073 fvec4SIMD(<a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">vec2</a> <span class="keyword">const</span> & v, <span class="keywordtype">float</span> <span class="keyword">const</span> & s1, <span class="keywordtype">float</span> <span class="keyword">const</span> & s2);
|
||||
<a name="l00074"></a>00074 fvec4SIMD(<span class="keywordtype">float</span> <span class="keyword">const</span> & s1, <a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">vec2</a> <span class="keyword">const</span> & v, <span class="keywordtype">float</span> <span class="keyword">const</span> & s2);
|
||||
<a name="l00075"></a>00075 fvec4SIMD(<span class="keywordtype">float</span> <span class="keyword">const</span> & s1, <span class="keywordtype">float</span> <span class="keyword">const</span> & s2, <a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">vec2</a> <span class="keyword">const</span> & v);
|
||||
<a name="l00076"></a>00076 fvec4SIMD(<a class="code" href="a00235.html#gac422c7058a7c9963b55ad70764c62752" title="3 components vector of floating-point numbers.">vec3</a> <span class="keyword">const</span> & v, <span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00077"></a>00077 fvec4SIMD(<span class="keywordtype">float</span> <span class="keyword">const</span> & s, <a class="code" href="a00235.html#gac422c7058a7c9963b55ad70764c62752" title="3 components vector of floating-point numbers.">vec3</a> <span class="keyword">const</span> & v);
|
||||
<a name="l00078"></a>00078 fvec4SIMD(<a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">vec2</a> <span class="keyword">const</span> & v1, <a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">vec2</a> <span class="keyword">const</span> & v2);
|
||||
<a name="l00079"></a>00079 <span class="comment">//fvec4SIMD(ivec4SIMD const & v);</span>
|
||||
<a name="l00080"></a>00080
|
||||
<a name="l00082"></a>00082 <span class="comment">// Unary arithmetic operators</span>
|
||||
<a name="l00083"></a>00083
|
||||
<a name="l00084"></a>00084 fvec4SIMD& operator= (fvec4SIMD <span class="keyword">const</span> & v);
|
||||
<a name="l00085"></a>00085 fvec4SIMD& operator+=(fvec4SIMD <span class="keyword">const</span> & v);
|
||||
<a name="l00086"></a>00086 fvec4SIMD& operator-=(fvec4SIMD <span class="keyword">const</span> & v);
|
||||
<a name="l00087"></a>00087 fvec4SIMD& operator*=(fvec4SIMD <span class="keyword">const</span> & v);
|
||||
<a name="l00088"></a>00088 fvec4SIMD& operator/=(fvec4SIMD <span class="keyword">const</span> & v);
|
||||
<a name="l00089"></a>00089
|
||||
<a name="l00090"></a>00090 fvec4SIMD& operator+=(<span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00091"></a>00091 fvec4SIMD& operator-=(<span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00092"></a>00092 fvec4SIMD& operator*=(<span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00093"></a>00093 fvec4SIMD& operator/=(<span class="keywordtype">float</span> <span class="keyword">const</span> & s);
|
||||
<a name="l00094"></a>00094
|
||||
<a name="l00095"></a>00095 fvec4SIMD& operator++();
|
||||
<a name="l00096"></a>00096 fvec4SIMD& operator--();
|
||||
<a name="l00097"></a>00097
|
||||
<a name="l00099"></a>00099 <span class="comment">// Swizzle operators</span>
|
||||
<a name="l00100"></a>00100
|
||||
<a name="l00101"></a>00101 <span class="keyword">template</span> <comp X, comp Y, comp Z, comp W>
|
||||
<a name="l00102"></a>00102 fvec4SIMD& swizzle();
|
||||
<a name="l00103"></a>00103 <span class="keyword">template</span> <comp X, comp Y, comp Z, comp W>
|
||||
<a name="l00104"></a>00104 fvec4SIMD swizzle() <span class="keyword">const</span>;
|
||||
<a name="l00105"></a>00105 <span class="keyword">template</span> <comp X, comp Y, comp Z>
|
||||
<a name="l00106"></a>00106 fvec4SIMD swizzle() <span class="keyword">const</span>;
|
||||
<a name="l00107"></a>00107 <span class="keyword">template</span> <comp X, comp Y>
|
||||
<a name="l00108"></a>00108 fvec4SIMD swizzle() <span class="keyword">const</span>;
|
||||
<a name="l00109"></a>00109 <span class="keyword">template</span> <comp X>
|
||||
<a name="l00110"></a>00110 fvec4SIMD swizzle() <span class="keyword">const</span>;
|
||||
<a name="l00111"></a>00111 };
|
||||
<a name="l00112"></a>00112 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00113"></a>00113
|
||||
<a name="l00114"></a>00114 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00115"></a><a class="code" href="a00215.html">00115</a> <span class="keyword">namespace </span>simd_vec4
|
||||
<a name="l00116"></a>00116 {
|
||||
<a name="l00117"></a>00117 <span class="keyword">typedef</span> glm::detail::fvec4SIMD simdVec4;
|
||||
<a name="l00118"></a>00118
|
||||
<a name="l00121"></a>00121
|
||||
<a name="l00124"></a>00124 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<float></a> <a class="code" href="a00292.html#gaf44c64b2f9e70746b8a83571812670fc" title="Convert a simdVec4 to a vec4.">vec4_cast</a>(
|
||||
<a name="l00125"></a>00125 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00126"></a>00126
|
||||
<a name="l00129"></a>00129 detail::fvec4SIMD <a class="code" href="a00292.html#ga427e341830f94e41ece21ea4ebc854c3" title="Returns x if x >= 0; otherwise, it returns -x.">abs</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00130"></a>00130
|
||||
<a name="l00133"></a>00133 detail::fvec4SIMD <a class="code" href="a00292.html#ga5a32ecd67af075293c5c8278f2938d4d" title="Returns 1.0 if x > 0, 0.0 if x = 0, or -1.0 if x < 0.">sign</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00134"></a>00134
|
||||
<a name="l00137"></a>00137 detail::fvec4SIMD <a class="code" href="a00292.html#gab7b1e6c9349aec87e1d3346e867588d6" title="Returns a value equal to the nearest integer that is less then or equal to x.">floor</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00138"></a>00138
|
||||
<a name="l00142"></a>00142 detail::fvec4SIMD <a class="code" href="a00292.html#ga4733720fa96ed2125f15e4b96578f486" title="Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolut...">trunc</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00143"></a>00143
|
||||
<a name="l00150"></a>00150 detail::fvec4SIMD <a class="code" href="a00292.html#gad17e750a691edfe51fd1f60d8cac2329" title="Returns a value equal to the nearest integer to x.">round</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00151"></a>00151
|
||||
<a name="l00156"></a>00156 <span class="comment">//detail::fvec4SIMD roundEven(detail::fvec4SIMD const & x);</span>
|
||||
<a name="l00157"></a>00157
|
||||
<a name="l00161"></a>00161 detail::fvec4SIMD <a class="code" href="a00292.html#ga3ce76f0bb739c0d5f04e7bfa4251993d" title="Returns a value equal to the nearest integer to x.">ceil</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00162"></a>00162
|
||||
<a name="l00165"></a>00165 detail::fvec4SIMD <a class="code" href="a00292.html#ga0a98f9d76fee0ca46c1f97861e3e366c" title="Return x - floor(x).">fract</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00166"></a>00166
|
||||
<a name="l00170"></a>00170 detail::fvec4SIMD <a class="code" href="a00292.html#gaf95a2c5c60a6f2a36911d32901e44aba" title="Modulus.">mod</a>(
|
||||
<a name="l00171"></a>00171 detail::fvec4SIMD <span class="keyword">const</span> & x,
|
||||
<a name="l00172"></a>00172 detail::fvec4SIMD <span class="keyword">const</span> & y);
|
||||
<a name="l00173"></a>00173
|
||||
<a name="l00177"></a>00177 detail::fvec4SIMD <a class="code" href="a00292.html#gaf95a2c5c60a6f2a36911d32901e44aba" title="Modulus.">mod</a>(
|
||||
<a name="l00178"></a>00178 detail::fvec4SIMD <span class="keyword">const</span> & x,
|
||||
<a name="l00179"></a>00179 <span class="keywordtype">float</span> <span class="keyword">const</span> & y);
|
||||
<a name="l00180"></a>00180
|
||||
<a name="l00186"></a>00186 <span class="comment">//detail::fvec4SIMD modf(</span>
|
||||
<a name="l00187"></a>00187 <span class="comment">// detail::fvec4SIMD const & x, </span>
|
||||
<a name="l00188"></a>00188 <span class="comment">// detail::fvec4SIMD & i);</span>
|
||||
<a name="l00189"></a>00189
|
||||
<a name="l00192"></a>00192 detail::fvec4SIMD <a class="code" href="a00292.html#gac8850ebd4ae655de76f375105cf7b3d8" title="Returns the fractional part of x and sets i to the integer part (as a whole number floating point val...">min</a>(
|
||||
<a name="l00193"></a>00193 detail::fvec4SIMD <span class="keyword">const</span> & x,
|
||||
<a name="l00194"></a>00194 detail::fvec4SIMD <span class="keyword">const</span> & y);
|
||||
<a name="l00195"></a>00195
|
||||
<a name="l00196"></a>00196 detail::fvec4SIMD <a class="code" href="a00292.html#gac8850ebd4ae655de76f375105cf7b3d8" title="Returns the fractional part of x and sets i to the integer part (as a whole number floating point val...">min</a>(
|
||||
<a name="l00197"></a>00197 detail::fvec4SIMD <span class="keyword">const</span> & x,
|
||||
<a name="l00198"></a>00198 <span class="keywordtype">float</span> <span class="keyword">const</span> & y);
|
||||
<a name="l00199"></a>00199
|
||||
<a name="l00202"></a>00202 detail::fvec4SIMD <a class="code" href="a00292.html#ga10dbe289232abf23c8d668c646ff05d6" title="Returns y if x < y; otherwise, it returns x.">max</a>(
|
||||
<a name="l00203"></a>00203 detail::fvec4SIMD <span class="keyword">const</span> & x,
|
||||
<a name="l00204"></a>00204 detail::fvec4SIMD <span class="keyword">const</span> & y);
|
||||
<a name="l00205"></a>00205
|
||||
<a name="l00206"></a>00206 detail::fvec4SIMD <a class="code" href="a00292.html#ga10dbe289232abf23c8d668c646ff05d6" title="Returns y if x < y; otherwise, it returns x.">max</a>(
|
||||
<a name="l00207"></a>00207 detail::fvec4SIMD <span class="keyword">const</span> & x,
|
||||
<a name="l00208"></a>00208 <span class="keywordtype">float</span> <span class="keyword">const</span> & y);
|
||||
<a name="l00209"></a>00209
|
||||
<a name="l00213"></a>00213 detail::fvec4SIMD <a class="code" href="a00292.html#ga73e895d1fdba2b620e84383517c552b0" title="Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal an...">clamp</a>(
|
||||
<a name="l00214"></a>00214 detail::fvec4SIMD <span class="keyword">const</span> & x,
|
||||
<a name="l00215"></a>00215 detail::fvec4SIMD <span class="keyword">const</span> & minVal,
|
||||
<a name="l00216"></a>00216 detail::fvec4SIMD <span class="keyword">const</span> & maxVal);
|
||||
<a name="l00217"></a>00217
|
||||
<a name="l00218"></a>00218 detail::fvec4SIMD <a class="code" href="a00292.html#ga73e895d1fdba2b620e84383517c552b0" title="Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal an...">clamp</a>(
|
||||
<a name="l00219"></a>00219 detail::fvec4SIMD <span class="keyword">const</span> & x,
|
||||
<a name="l00220"></a>00220 <span class="keywordtype">float</span> <span class="keyword">const</span> & minVal,
|
||||
<a name="l00221"></a>00221 <span class="keywordtype">float</span> <span class="keyword">const</span> & maxVal);
|
||||
<a name="l00222"></a>00222
|
||||
<a name="l00246"></a>00246 <span class="comment">// \todo Test when 'a' is a boolean.</span>
|
||||
<a name="l00248"></a>00248 <span class="comment"></span> detail::fvec4SIMD <a class="code" href="a00292.html#gafb120dd721c6b87f5f23c3edd159cfaa" title="(From GLM_GTX_simd_vec4 extension, common function)">mix</a>(
|
||||
<a name="l00249"></a>00249 detail::fvec4SIMD <span class="keyword">const</span> & x,
|
||||
<a name="l00250"></a>00250 detail::fvec4SIMD <span class="keyword">const</span> & y,
|
||||
<a name="l00251"></a>00251 detail::fvec4SIMD <span class="keyword">const</span> & a);
|
||||
<a name="l00252"></a>00252
|
||||
<a name="l00255"></a>00255 detail::fvec4SIMD <a class="code" href="a00292.html#ga459647604ac2aa0a97c4eb739a7302cb" title="Returns 0.0 if x < edge, otherwise it returns 1.0.">step</a>(
|
||||
<a name="l00256"></a>00256 detail::fvec4SIMD <span class="keyword">const</span> & edge,
|
||||
<a name="l00257"></a>00257 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00258"></a>00258
|
||||
<a name="l00259"></a>00259 detail::fvec4SIMD <a class="code" href="a00292.html#ga459647604ac2aa0a97c4eb739a7302cb" title="Returns 0.0 if x < edge, otherwise it returns 1.0.">step</a>(
|
||||
<a name="l00260"></a>00260 <span class="keywordtype">float</span> <span class="keyword">const</span> & edge,
|
||||
<a name="l00261"></a>00261 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00262"></a>00262
|
||||
<a name="l00273"></a>00273 detail::fvec4SIMD <a class="code" href="a00292.html#gaeadaacf6c87b0699292de98b7140a278" title="Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 a...">smoothstep</a>(
|
||||
<a name="l00274"></a>00274 detail::fvec4SIMD <span class="keyword">const</span> & edge0,
|
||||
<a name="l00275"></a>00275 detail::fvec4SIMD <span class="keyword">const</span> & edge1,
|
||||
<a name="l00276"></a>00276 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00277"></a>00277
|
||||
<a name="l00278"></a>00278 detail::fvec4SIMD <a class="code" href="a00292.html#gaeadaacf6c87b0699292de98b7140a278" title="Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 a...">smoothstep</a>(
|
||||
<a name="l00279"></a>00279 <span class="keywordtype">float</span> <span class="keyword">const</span> & edge0,
|
||||
<a name="l00280"></a>00280 <span class="keywordtype">float</span> <span class="keyword">const</span> & edge1,
|
||||
<a name="l00281"></a>00281 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00282"></a>00282
|
||||
<a name="l00289"></a>00289 <span class="comment">//bvec4 isnan(detail::fvec4SIMD const & x);</span>
|
||||
<a name="l00290"></a>00290
|
||||
<a name="l00297"></a>00297 <span class="comment">//bvec4 isinf(detail::fvec4SIMD const & x);</span>
|
||||
<a name="l00298"></a>00298
|
||||
<a name="l00303"></a>00303 <span class="comment">//detail::ivec4SIMD floatBitsToInt(detail::fvec4SIMD const & value);</span>
|
||||
<a name="l00304"></a>00304
|
||||
<a name="l00311"></a>00311 <span class="comment">//detail::fvec4SIMD intBitsToFloat(detail::ivec4SIMD const & value);</span>
|
||||
<a name="l00312"></a>00312
|
||||
<a name="l00315"></a>00315 detail::fvec4SIMD <a class="code" href="a00292.html#ga4b9f36f4524482b43324f4631944569d" title="Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of...">fma</a>(
|
||||
<a name="l00316"></a>00316 detail::fvec4SIMD <span class="keyword">const</span> & a,
|
||||
<a name="l00317"></a>00317 detail::fvec4SIMD <span class="keyword">const</span> & b,
|
||||
<a name="l00318"></a>00318 detail::fvec4SIMD <span class="keyword">const</span> & c);
|
||||
<a name="l00319"></a>00319
|
||||
<a name="l00329"></a>00329 <span class="comment">//detail::fvec4SIMD frexp(detail::fvec4SIMD const & x, detail::ivec4SIMD & exp);</span>
|
||||
<a name="l00330"></a>00330
|
||||
<a name="l00337"></a>00337 <span class="comment">//detail::fvec4SIMD ldexp(detail::fvec4SIMD const & x, detail::ivec4SIMD const & exp);</span>
|
||||
<a name="l00338"></a>00338
|
||||
<a name="l00341"></a>00341 <span class="keywordtype">float</span> <a class="code" href="a00292.html#gaf76a38ce8c466c9b0bc4c1b5db1a6faa" title="Splits x into a floating-point significand in the range [0.5, 1.0) and an integral exponent of two...">length</a>(
|
||||
<a name="l00342"></a>00342 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00343"></a>00343
|
||||
<a name="l00347"></a>00347 <span class="keywordtype">float</span> <a class="code" href="a00292.html#ga0d4469acfe98c8b2eab8696bf25a3dde" title="Returns the length of x, i.e., sqrt(x * x).">fastLength</a>(
|
||||
<a name="l00348"></a>00348 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00349"></a>00349
|
||||
<a name="l00353"></a>00353 <span class="keywordtype">float</span> <a class="code" href="a00292.html#ga97a71f5eed0feb541ea1131a46e4422e" title="Returns the length of x, i.e., sqrt(x * x).">niceLength</a>(
|
||||
<a name="l00354"></a>00354 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00355"></a>00355
|
||||
<a name="l00358"></a>00358 detail::fvec4SIMD <a class="code" href="a00292.html#ga6c7fffeb58db66f602585b24a8e4f2db" title="Returns the length of x, i.e., sqrt(x * x).">length4</a>(
|
||||
<a name="l00359"></a>00359 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00360"></a>00360
|
||||
<a name="l00364"></a>00364 detail::fvec4SIMD <a class="code" href="a00292.html#ga1c85830900d5d3f29902b12d46c60dd3" title="Returns the length of x, i.e., sqrt(x * x).">fastLength4</a>(
|
||||
<a name="l00365"></a>00365 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00366"></a>00366
|
||||
<a name="l00370"></a>00370 detail::fvec4SIMD <a class="code" href="a00292.html#ga159f5857abf0df4250bae94f95b9d015" title="Returns the length of x, i.e., sqrt(x * x).">niceLength4</a>(
|
||||
<a name="l00371"></a>00371 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00372"></a>00372
|
||||
<a name="l00375"></a>00375 <span class="keywordtype">float</span> <a class="code" href="a00292.html#gac514ca90bcc5a17bd7162ea32a220580" title="Returns the distance betwwen p0 and p1, i.e., length(p0 - p1).">distance</a>(
|
||||
<a name="l00376"></a>00376 detail::fvec4SIMD <span class="keyword">const</span> & p0,
|
||||
<a name="l00377"></a>00377 detail::fvec4SIMD <span class="keyword">const</span> & p1);
|
||||
<a name="l00378"></a>00378
|
||||
<a name="l00381"></a>00381 detail::fvec4SIMD <a class="code" href="a00292.html#gae9238f5011fd124d44dad7b39f0d5a0f" title="Returns the distance betwwen p0 and p1, i.e., length(p0 - p1).">distance4</a>(
|
||||
<a name="l00382"></a>00382 detail::fvec4SIMD <span class="keyword">const</span> & p0,
|
||||
<a name="l00383"></a>00383 detail::fvec4SIMD <span class="keyword">const</span> & p1);
|
||||
<a name="l00384"></a>00384
|
||||
<a name="l00387"></a>00387 <span class="keywordtype">float</span> <a class="code" href="a00292.html#ga44faf22be31f5809ed97bf611a56f3e9" title="Returns the dot product of x and y, i.e., result = x * y.">simdDot</a>(
|
||||
<a name="l00388"></a>00388 detail::fvec4SIMD <span class="keyword">const</span> & x,
|
||||
<a name="l00389"></a>00389 detail::fvec4SIMD <span class="keyword">const</span> & y);
|
||||
<a name="l00390"></a>00390
|
||||
<a name="l00393"></a>00393 detail::fvec4SIMD <a class="code" href="a00292.html#gaa50f94e3de246ea1a1914266aef2f74b" title="Returns the dot product of x and y, i.e., result = x * y.">dot4</a>(
|
||||
<a name="l00394"></a>00394 detail::fvec4SIMD <span class="keyword">const</span> & x,
|
||||
<a name="l00395"></a>00395 detail::fvec4SIMD <span class="keyword">const</span> & y);
|
||||
<a name="l00396"></a>00396
|
||||
<a name="l00399"></a>00399 detail::fvec4SIMD <a class="code" href="a00292.html#gabe4bd036ccfd0e1d53ea828d478cdd2c" title="Returns the cross product of x and y.">cross</a>(
|
||||
<a name="l00400"></a>00400 detail::fvec4SIMD <span class="keyword">const</span> & x,
|
||||
<a name="l00401"></a>00401 detail::fvec4SIMD <span class="keyword">const</span> & y);
|
||||
<a name="l00402"></a>00402
|
||||
<a name="l00405"></a>00405 detail::fvec4SIMD <a class="code" href="a00292.html#ga4e5cbc78bdd522b61ecd2154b50251af" title="Returns a vector in the same direction as x but with length of 1.">normalize</a>(
|
||||
<a name="l00406"></a>00406 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00407"></a>00407
|
||||
<a name="l00411"></a>00411 detail::fvec4SIMD <a class="code" href="a00292.html#ga58eeeead0d2b381f7d461dac26381125" title="Returns a vector in the same direction as x but with length of 1.">fastNormalize</a>(
|
||||
<a name="l00412"></a>00412 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00413"></a>00413
|
||||
<a name="l00416"></a>00416 detail::fvec4SIMD <a class="code" href="a00292.html#gac11cb08f6ba68f761b7146a60e72da55" title="If dot(Nref, I) < 0.0, return N, otherwise, return -N.">simdFaceforward</a>(
|
||||
<a name="l00417"></a>00417 detail::fvec4SIMD <span class="keyword">const</span> & N,
|
||||
<a name="l00418"></a>00418 detail::fvec4SIMD <span class="keyword">const</span> & I,
|
||||
<a name="l00419"></a>00419 detail::fvec4SIMD <span class="keyword">const</span> & Nref);
|
||||
<a name="l00420"></a>00420
|
||||
<a name="l00424"></a>00424 detail::fvec4SIMD <a class="code" href="a00292.html#ga42f1073cf493e7c299c72ae95180265d" title="For the incident vector I and surface orientation N, returns the reflection direction : result = I - ...">reflect</a>(
|
||||
<a name="l00425"></a>00425 detail::fvec4SIMD <span class="keyword">const</span> & I,
|
||||
<a name="l00426"></a>00426 detail::fvec4SIMD <span class="keyword">const</span> & N);
|
||||
<a name="l00427"></a>00427
|
||||
<a name="l00432"></a>00432 detail::fvec4SIMD <a class="code" href="a00292.html#ga894c3ec0524d03313dc9c72d36290c00" title="For the incident vector I and surface normal N, and the ratio of indices of refraction eta...">refract</a>(
|
||||
<a name="l00433"></a>00433 detail::fvec4SIMD <span class="keyword">const</span> & I,
|
||||
<a name="l00434"></a>00434 detail::fvec4SIMD <span class="keyword">const</span> & N,
|
||||
<a name="l00435"></a>00435 <span class="keywordtype">float</span> <span class="keyword">const</span> & eta);
|
||||
<a name="l00436"></a>00436
|
||||
<a name="l00439"></a>00439 detail::fvec4SIMD <a class="code" href="a00292.html#ga28dbd1d165fc4301de4fb16a049fcfb2" title="Returns the positive square root of x.">sqrt</a>(
|
||||
<a name="l00440"></a>00440 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00441"></a>00441
|
||||
<a name="l00445"></a>00445 detail::fvec4SIMD <a class="code" href="a00292.html#ga163877845325804cda05e8b5142822d5" title="Returns the positive square root of x with the nicest quality but very slow.">niceSqrt</a>(
|
||||
<a name="l00446"></a>00446 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00447"></a>00447
|
||||
<a name="l00451"></a>00451 detail::fvec4SIMD <a class="code" href="a00292.html#ga56465ed17cafbff1e225f82eeb7184e5" title="Returns the positive square root of x Less accurate but much faster than sqrt.">fastSqrt</a>(
|
||||
<a name="l00452"></a>00452 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00453"></a>00453
|
||||
<a name="l00456"></a>00456 detail::fvec4SIMD <a class="code" href="a00292.html#gaa4e215b72e48012a6388a1477c84e2ad" title="Returns the reciprocal of the positive square root of x.">inversesqrt</a>(
|
||||
<a name="l00457"></a>00457 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00458"></a>00458
|
||||
<a name="l00462"></a>00462 detail::fvec4SIMD <a class="code" href="a00292.html#gab299477526abc9646263950bfbe32b3f" title="Returns the reciprocal of the positive square root of x.">fastInversesqrt</a>(
|
||||
<a name="l00463"></a>00463 detail::fvec4SIMD <span class="keyword">const</span> & x);
|
||||
<a name="l00464"></a>00464
|
||||
<a name="l00466"></a>00466 }<span class="comment">//namespace simd_vec4</span>
|
||||
<a name="l00467"></a>00467 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00468"></a>00468 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00469"></a>00469
|
||||
<a name="l00470"></a>00470 <span class="preprocessor">#include "simd_vec4.inl"</span>
|
||||
<a name="l00471"></a>00471
|
||||
<a name="l00472"></a>00472 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::simd_vec4;}
|
||||
<a name="l00473"></a>00473
|
||||
<a name="l00474"></a>00474 <span class="preprocessor">#endif//glm_gtx_simd_vec4</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,104 +0,0 @@
|
||||
<!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>simplex.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">simplex.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2011-04-09</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2011-04-09</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/simplex.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_simplex</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_simplex</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_simplex extension included")</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a>00023 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00025"></a><a class="code" href="a00216.html">00025</a> <span class="keyword">namespace </span>spline
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00033"></a>00033 genType <a class="code" href="a00293.html#gaecb37259be4b2370eab845c6d531f55b" title="Return a point from a catmull rom curve.">catmullRom</a>(
|
||||
<a name="l00034"></a>00034 genType <span class="keyword">const</span> & v1,
|
||||
<a name="l00035"></a>00035 genType <span class="keyword">const</span> & v2,
|
||||
<a name="l00036"></a>00036 genType <span class="keyword">const</span> & v3,
|
||||
<a name="l00037"></a>00037 genType <span class="keyword">const</span> & v4,
|
||||
<a name="l00038"></a>00038 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00042"></a>00042 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00043"></a>00043 genType <a class="code" href="a00293.html#ga3ea772a4bdf8b3514ef12b47944c844c" title="Return a point from a hermite curve.">hermite</a>(
|
||||
<a name="l00044"></a>00044 genType <span class="keyword">const</span> & v1,
|
||||
<a name="l00045"></a>00045 genType <span class="keyword">const</span> & t1,
|
||||
<a name="l00046"></a>00046 genType <span class="keyword">const</span> & v2,
|
||||
<a name="l00047"></a>00047 genType <span class="keyword">const</span> & t2,
|
||||
<a name="l00048"></a>00048 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00049"></a>00049
|
||||
<a name="l00052"></a>00052 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00053"></a>00053 genType <a class="code" href="a00293.html#gaae38edb178e0256e966955b19b61f617" title="Return a point from a cubic curve.">cubic</a>(
|
||||
<a name="l00054"></a>00054 genType <span class="keyword">const</span> & v1,
|
||||
<a name="l00055"></a>00055 genType <span class="keyword">const</span> & v2,
|
||||
<a name="l00056"></a>00056 genType <span class="keyword">const</span> & v3,
|
||||
<a name="l00057"></a>00057 genType <span class="keyword">const</span> & v4,
|
||||
<a name="l00058"></a>00058 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00061"></a>00061 }<span class="comment">// namespace simplex</span>
|
||||
<a name="l00062"></a>00062 }<span class="comment">// namespace gtx</span>
|
||||
<a name="l00063"></a>00063 }<span class="comment">// namespace glm</span>
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00065"></a>00065 <span class="preprocessor">#include "simplex.inl"</span>
|
||||
<a name="l00066"></a>00066
|
||||
<a name="l00067"></a>00067 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span><a class="code" href="a00307.html#gaab96cbe99e3757bb55c7d830462fab94" title="Simplex noise.">gtx::simplex</a>;}
|
||||
<a name="l00068"></a>00068
|
||||
<a name="l00069"></a>00069 <span class="preprocessor">#endif//glm_gtx_spline</span>
|
||||
<a name="l00070"></a>00070 <span class="preprocessor"></span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,107 +0,0 @@
|
||||
<!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>spline.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">spline.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2007-01-25</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-02-19</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/spline.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_spline</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_spline</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../gtx/optimum_pow.hpp"</span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_spline extension included")</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span>
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00026"></a>00026 <span class="keyword">namespace </span>spline
|
||||
<a name="l00027"></a>00027 {
|
||||
<a name="l00028"></a>00028 <span class="keyword">using namespace </span>gtx::optimum_pow;
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00035"></a>00035 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00036"></a>00036 genType <a class="code" href="a00293.html#gaecb37259be4b2370eab845c6d531f55b" title="Return a point from a catmull rom curve.">catmullRom</a>(
|
||||
<a name="l00037"></a>00037 genType <span class="keyword">const</span> & v1,
|
||||
<a name="l00038"></a>00038 genType <span class="keyword">const</span> & v2,
|
||||
<a name="l00039"></a>00039 genType <span class="keyword">const</span> & v3,
|
||||
<a name="l00040"></a>00040 genType <span class="keyword">const</span> & v4,
|
||||
<a name="l00041"></a>00041 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00045"></a>00045 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00046"></a>00046 genType <a class="code" href="a00293.html#ga3ea772a4bdf8b3514ef12b47944c844c" title="Return a point from a hermite curve.">hermite</a>(
|
||||
<a name="l00047"></a>00047 genType <span class="keyword">const</span> & v1,
|
||||
<a name="l00048"></a>00048 genType <span class="keyword">const</span> & t1,
|
||||
<a name="l00049"></a>00049 genType <span class="keyword">const</span> & v2,
|
||||
<a name="l00050"></a>00050 genType <span class="keyword">const</span> & t2,
|
||||
<a name="l00051"></a>00051 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00055"></a>00055 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00056"></a>00056 genType <a class="code" href="a00293.html#gaae38edb178e0256e966955b19b61f617" title="Return a point from a cubic curve.">cubic</a>(
|
||||
<a name="l00057"></a>00057 genType <span class="keyword">const</span> & v1,
|
||||
<a name="l00058"></a>00058 genType <span class="keyword">const</span> & v2,
|
||||
<a name="l00059"></a>00059 genType <span class="keyword">const</span> & v3,
|
||||
<a name="l00060"></a>00060 genType <span class="keyword">const</span> & v4,
|
||||
<a name="l00061"></a>00061 <span class="keyword">typename</span> genType::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00062"></a>00062
|
||||
<a name="l00064"></a>00064 }<span class="comment">//namespace spline</span>
|
||||
<a name="l00065"></a>00065 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00066"></a>00066 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00068"></a>00068 <span class="preprocessor">#include "spline.inl"</span>
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00070"></a>00070 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::spline;}
|
||||
<a name="l00071"></a>00071
|
||||
<a name="l00072"></a>00072 <span class="preprocessor">#endif//glm_gtx_spline</span>
|
||||
<a name="l00073"></a>00073 <span class="preprocessor"></span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,115 +0,0 @@
|
||||
<!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>std_based_type.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">std_based_type.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-06-08</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-06-08</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/std_based_type.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtx_std_based_type</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_std_based_type</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include <cstdlib></span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_std_based_type extension included")</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span>
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00026"></a><a class="code" href="a00217.html">00026</a> <span class="keyword">namespace </span>std_based_type
|
||||
<a name="l00027"></a>00027 {
|
||||
<a name="l00028"></a>00028 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<std::size_t></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">size2</a>;
|
||||
<a name="l00029"></a>00029 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<std::size_t></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">size3</a>;
|
||||
<a name="l00030"></a>00030 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<std::size_t></a> <a class="code" href="a00022.html" title="Basic 4D vector type.">size4</a>;
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00032"></a>00032 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<signed char></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">scvec2</a>;
|
||||
<a name="l00033"></a>00033 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<signed char></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">scvec3</a>;
|
||||
<a name="l00034"></a>00034 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<signed char></a> <a class="code" href="a00022.html" title="Basic 4D vector type.">scvec4</a>;
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00036"></a>00036 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<unsigned char></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">ucvec2</a>;
|
||||
<a name="l00037"></a>00037 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<unsigned char></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">ucvec3</a>;
|
||||
<a name="l00038"></a>00038 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<unsigned char></a> <a class="code" href="a00022.html" title="Basic 4D vector type.">ucvec4</a>;
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<signed short></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">ssvec2</a>;
|
||||
<a name="l00041"></a>00041 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<signed short></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">ssvec3</a>;
|
||||
<a name="l00042"></a>00042 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<signed short></a> <a class="code" href="a00022.html" title="Basic 4D vector type.">ssvec4</a>;
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00044"></a>00044 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<unsigned short></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">usvec2</a>;
|
||||
<a name="l00045"></a>00045 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<unsigned short></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">usvec3</a>;
|
||||
<a name="l00046"></a>00046 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<unsigned short></a> <a class="code" href="a00022.html" title="Basic 4D vector type.">usvec4</a>;
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00048"></a>00048 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<signed int></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">sivec2</a>;
|
||||
<a name="l00049"></a>00049 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<signed int></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">sivec3</a>;
|
||||
<a name="l00050"></a>00050 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<signed int></a> <a class="code" href="a00022.html" title="Basic 4D vector type.">sivec4</a>;
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<unsigned int></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">uivec2</a>;
|
||||
<a name="l00053"></a>00053 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<unsigned int></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">uivec3</a>;
|
||||
<a name="l00054"></a>00054 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<unsigned int></a> <a class="code" href="a00022.html" title="Basic 4D vector type.">uivec4</a>;
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<signed long></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">slvec2</a>;
|
||||
<a name="l00057"></a>00057 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<signed long></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">slvec3</a>;
|
||||
<a name="l00058"></a>00058 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<signed long></a> <a class="code" href="a00022.html" title="Basic 4D vector type.">slvec4</a>;
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00060"></a>00060 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<unsigned long></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">ulvec2</a>;
|
||||
<a name="l00061"></a>00061 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<unsigned long></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">ulvec3</a>;
|
||||
<a name="l00062"></a>00062 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<unsigned long></a> <a class="code" href="a00022.html" title="Basic 4D vector type.">ulvec4</a>;
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064 }<span class="comment">//namespace std_based_type</span>
|
||||
<a name="l00065"></a>00065 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00066"></a>00066 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00068"></a>00068 <span class="preprocessor">#include "std_based_type.inl"</span>
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00070"></a>00070 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::std_based_type;}
|
||||
<a name="l00071"></a>00071
|
||||
<a name="l00072"></a>00072 <span class="preprocessor">#endif//glm_gtx_std_based_type</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,95 +0,0 @@
|
||||
<!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>string_cast.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">string_cast.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-04-26</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-01-28</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/string_cast.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTC_half_float</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">// - GLM_GTX_integer</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">// - GLM_GTX_quaternion</span>
|
||||
<a name="l00015"></a>00015 <span class="comment"></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#ifndef glm_gtx_string_cast</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_string_cast</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor"></span>
|
||||
<a name="l00019"></a>00019 <span class="comment">// Dependency:</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#include "../gtc/half_float.hpp"</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor">#include "../gtx/integer.hpp"</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor">#include "../gtx/unsigned_int.hpp"</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor">#include "../gtx/quaternion.hpp"</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor">#include <string></span>
|
||||
<a name="l00026"></a>00026
|
||||
<a name="l00027"></a>00027 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_string_cast extension included")</span>
|
||||
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00030"></a>00030 <span class="preprocessor"></span>
|
||||
<a name="l00031"></a>00031 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00032"></a>00032 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00033"></a><a class="code" href="a00218.html">00033</a> <span class="keyword">namespace </span>string_cast
|
||||
<a name="l00034"></a>00034 {
|
||||
<a name="l00035"></a>00035 <span class="keyword">using namespace </span>gtc::half_float;
|
||||
<a name="l00036"></a>00036 <span class="keyword">using namespace </span>gtx::integer;
|
||||
<a name="l00037"></a>00037 <span class="keyword">using namespace </span>gtx::unsigned_int;
|
||||
<a name="l00038"></a>00038 <span class="keyword">using namespace </span>gtx::quaternion;
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00045"></a>00045 <span class="keyword">template</span> <<span class="keyword">typename</span> genType>
|
||||
<a name="l00046"></a>00046 std::string <a class="code" href="a00294.html#ga9ab4dfc4ab5f29591638fb56d7752fff" title="Create a string from a GLM type value.">to_string</a>(genType <span class="keyword">const</span> & x);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00049"></a>00049 }<span class="comment">//namespace string_cast</span>
|
||||
<a name="l00050"></a>00050 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00051"></a>00051 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00053"></a>00053 <span class="preprocessor">#include "string_cast.inl"</span>
|
||||
<a name="l00054"></a>00054
|
||||
<a name="l00055"></a>00055 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::string_cast;}
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00057"></a>00057 <span class="preprocessor">#endif//glm_gtx_string_cast</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,397 +0,0 @@
|
||||
<!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>swizzle.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">swizzle.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2010-02-20</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-20</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtc/swizzle.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00012"></a>00012 <span class="comment"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef glm_gtc_swizzle</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtc_swizzle</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="comment">// Dependency:</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../gtc/type_precision.hpp"</span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTC_swizzle extension included")</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span>
|
||||
<a name="l00024"></a>00024 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>gtc{
|
||||
<a name="l00026"></a><a class="code" href="a00165.html">00026</a> <span class="keyword">namespace </span>swizzle
|
||||
<a name="l00027"></a>00027 {
|
||||
<a name="l00028"></a>00028 <span class="keyword">using namespace </span>gtc::half_float;
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00030"></a>00030 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00031"></a>00031 T <span class="keyword">const</span> & swizzle(
|
||||
<a name="l00032"></a>00032 vecType<T> <span class="keyword">const</span> & v,
|
||||
<a name="l00033"></a>00033 comp x);
|
||||
<a name="l00034"></a>00034
|
||||
<a name="l00035"></a>00035 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00036"></a>00036 <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<T></a> <span class="keyword">const</span> & swizzle(
|
||||
<a name="l00037"></a>00037 vecType<T> <span class="keyword">const</span> & v,
|
||||
<a name="l00038"></a>00038 comp x, comp y);
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00041"></a>00041 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & swizzle(
|
||||
<a name="l00042"></a>00042 vecType<T> <span class="keyword">const</span> & v,
|
||||
<a name="l00043"></a>00043 comp x, comp y, comp z);
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00046"></a>00046 <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<T></a> <span class="keyword">const</span> & swizzle(
|
||||
<a name="l00047"></a>00047 vecType<T> <span class="keyword">const</span> & v,
|
||||
<a name="l00048"></a>00048 comp x, comp y, comp z, comp w);
|
||||
<a name="l00049"></a>00049
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00051"></a>00051 T & swizzle(
|
||||
<a name="l00052"></a>00052 vecType<T> & v,
|
||||
<a name="l00053"></a>00053 comp x);
|
||||
<a name="l00054"></a>00054
|
||||
<a name="l00055"></a>00055 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00056"></a>00056 detail::tref2<T> swizzle(
|
||||
<a name="l00057"></a>00057 vecType<T> & v,
|
||||
<a name="l00058"></a>00058 comp x, comp y);
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00060"></a>00060 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00061"></a>00061 detail::tref3<T> swizzle(
|
||||
<a name="l00062"></a>00062 vecType<T> & v,
|
||||
<a name="l00063"></a>00063 comp x, comp y, comp z);
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00065"></a>00065 <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">template</span> <<span class="keyword">typename</span>> <span class="keyword">class </span>vecType>
|
||||
<a name="l00066"></a>00066 detail::tref4<T> swizzle(
|
||||
<a name="l00067"></a>00067 vecType<T> & v,
|
||||
<a name="l00068"></a>00068 comp x, comp y, comp z, comp w);
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00070"></a>00070 <span class="preprocessor"># define static_swizzle1_const(TYPE, SIZE) \</span>
|
||||
<a name="l00071"></a>00071 <span class="preprocessor"> template <comp x> \</span>
|
||||
<a name="l00072"></a>00072 <span class="preprocessor"> GLM_FUNC_QUALIFIER TYPE swizzle(detail::tvec##SIZE<TYPE> const & v) \</span>
|
||||
<a name="l00073"></a>00073 <span class="preprocessor"> {return v[x];} </span>
|
||||
<a name="l00074"></a>00074 <span class="preprocessor"></span>
|
||||
<a name="l00075"></a>00075 <span class="preprocessor"># define static_swizzle1_ref(TYPE, SIZE) \</span>
|
||||
<a name="l00076"></a>00076 <span class="preprocessor"> template <comp x> \</span>
|
||||
<a name="l00077"></a>00077 <span class="preprocessor"> GLM_FUNC_QUALIFIER TYPE& swizzle(detail::tvec##SIZE<TYPE> & v) \</span>
|
||||
<a name="l00078"></a>00078 <span class="preprocessor"> {return v[x];}</span>
|
||||
<a name="l00079"></a>00079 <span class="preprocessor"></span>
|
||||
<a name="l00080"></a>00080 static_swizzle1_ref(<a class="code" href="a00009.html" title="16-bit floating point type.">detail::float16</a>, 2)
|
||||
<a name="l00081"></a>00081 static_swizzle1_ref(<a class="code" href="a00009.html" title="16-bit floating point type.">detail::float16</a>, 3)
|
||||
<a name="l00082"></a>00082 static_swizzle1_ref(<a class="code" href="a00009.html" title="16-bit floating point type.">detail::float16</a>, 4)
|
||||
<a name="l00083"></a>00083 static_swizzle1_ref(detail::float32, 2)
|
||||
<a name="l00084"></a>00084 static_swizzle1_ref(detail::float32, 3)
|
||||
<a name="l00085"></a>00085 static_swizzle1_ref(detail::float32, 4)
|
||||
<a name="l00086"></a>00086 static_swizzle1_ref(detail::float64, 2)
|
||||
<a name="l00087"></a>00087 static_swizzle1_ref(detail::float64, 3)
|
||||
<a name="l00088"></a>00088 static_swizzle1_ref(detail::float64, 4)
|
||||
<a name="l00089"></a>00089
|
||||
<a name="l00090"></a>00090 static_swizzle1_ref(detail::int8, 2)
|
||||
<a name="l00091"></a>00091 static_swizzle1_ref(detail::int8, 3)
|
||||
<a name="l00092"></a>00092 static_swizzle1_ref(detail::int8, 4)
|
||||
<a name="l00093"></a>00093 static_swizzle1_ref(detail::int16, 2)
|
||||
<a name="l00094"></a>00094 static_swizzle1_ref(detail::int16, 3)
|
||||
<a name="l00095"></a>00095 static_swizzle1_ref(detail::int16, 4)
|
||||
<a name="l00096"></a>00096 static_swizzle1_ref(detail::int32, 2)
|
||||
<a name="l00097"></a>00097 static_swizzle1_ref(detail::int32, 3)
|
||||
<a name="l00098"></a>00098 static_swizzle1_ref(detail::int32, 4)
|
||||
<a name="l00099"></a>00099 static_swizzle1_ref(detail::int64, 2)
|
||||
<a name="l00100"></a>00100 static_swizzle1_ref(detail::int64, 3)
|
||||
<a name="l00101"></a>00101 static_swizzle1_ref(detail::int64, 4)
|
||||
<a name="l00102"></a>00102
|
||||
<a name="l00103"></a>00103 static_swizzle1_ref(detail::uint8, 2)
|
||||
<a name="l00104"></a>00104 static_swizzle1_ref(detail::uint8, 3)
|
||||
<a name="l00105"></a>00105 static_swizzle1_ref(detail::uint8, 4)
|
||||
<a name="l00106"></a>00106 static_swizzle1_ref(detail::uint16, 2)
|
||||
<a name="l00107"></a>00107 static_swizzle1_ref(detail::uint16, 3)
|
||||
<a name="l00108"></a>00108 static_swizzle1_ref(detail::uint16, 4)
|
||||
<a name="l00109"></a>00109 static_swizzle1_ref(detail::uint32, 2)
|
||||
<a name="l00110"></a>00110 static_swizzle1_ref(detail::uint32, 3)
|
||||
<a name="l00111"></a>00111 static_swizzle1_ref(detail::uint32, 4)
|
||||
<a name="l00112"></a>00112 static_swizzle1_ref(detail::uint64, 2)
|
||||
<a name="l00113"></a>00113 static_swizzle1_ref(detail::uint64, 3)
|
||||
<a name="l00114"></a>00114 static_swizzle1_ref(detail::uint64, 4)
|
||||
<a name="l00115"></a>00115 <span class="comment">/*</span>
|
||||
<a name="l00116"></a>00116 <span class="comment"># define static_swizzle2_const(TYPE) \</span>
|
||||
<a name="l00117"></a>00117 <span class="comment"> template <comp x, comp y> \</span>
|
||||
<a name="l00118"></a>00118 <span class="comment"> GLM_FUNC_QUALIFIER TYPE swizzle(TYPE const & v) \</span>
|
||||
<a name="l00119"></a>00119 <span class="comment"> {return TYPE(v[x], v[y]);}</span>
|
||||
<a name="l00120"></a>00120 <span class="comment"></span>
|
||||
<a name="l00121"></a>00121 <span class="comment"># define static_swizzle3_const(TYPE) \</span>
|
||||
<a name="l00122"></a>00122 <span class="comment"> template <comp x, comp y, comp z> \</span>
|
||||
<a name="l00123"></a>00123 <span class="comment"> GLM_FUNC_QUALIFIER TYPE swizzle(TYPE const & v) \</span>
|
||||
<a name="l00124"></a>00124 <span class="comment"> {return TYPE(v[x], v[y], v[z]);}</span>
|
||||
<a name="l00125"></a>00125 <span class="comment"></span>
|
||||
<a name="l00126"></a>00126 <span class="comment"># define static_swizzle4_const(TYPE) \</span>
|
||||
<a name="l00127"></a>00127 <span class="comment"> template <comp x, comp y, comp z, comp w> \</span>
|
||||
<a name="l00128"></a>00128 <span class="comment"> GLM_FUNC_QUALIFIER TYPE swizzle(TYPE const & v) \</span>
|
||||
<a name="l00129"></a>00129 <span class="comment"> {return TYPE(v[x], v[y], v[z], v[w]);}</span>
|
||||
<a name="l00130"></a>00130 <span class="comment">*/</span>
|
||||
<a name="l00131"></a>00131
|
||||
<a name="l00132"></a>00132 <span class="preprocessor"># define static_swizzle2_const(TYPE, SIZE) \</span>
|
||||
<a name="l00133"></a>00133 <span class="preprocessor"> template <comp x, comp y> \</span>
|
||||
<a name="l00134"></a>00134 <span class="preprocessor"> GLM_FUNC_QUALIFIER detail::tvec2<TYPE> swizzle(detail::tvec##SIZE<TYPE> const & v) \</span>
|
||||
<a name="l00135"></a>00135 <span class="preprocessor"> {return detail::tvec2<TYPE>(v[x], v[y]);}</span>
|
||||
<a name="l00136"></a>00136 <span class="preprocessor"></span>
|
||||
<a name="l00137"></a>00137 <span class="preprocessor"># define static_swizzle3_const(TYPE, SIZE) \</span>
|
||||
<a name="l00138"></a>00138 <span class="preprocessor"> template <comp x, comp y, comp z> \</span>
|
||||
<a name="l00139"></a>00139 <span class="preprocessor"> GLM_FUNC_QUALIFIER detail::tvec3<TYPE> swizzle(detail::tvec##SIZE<TYPE> const & v) \</span>
|
||||
<a name="l00140"></a>00140 <span class="preprocessor"> {return detail::tvec3<TYPE>(v[x], v[y], v[z]);}</span>
|
||||
<a name="l00141"></a>00141 <span class="preprocessor"></span>
|
||||
<a name="l00142"></a>00142 <span class="preprocessor"># define static_swizzle4_const(TYPE, SIZE) \</span>
|
||||
<a name="l00143"></a>00143 <span class="preprocessor"> template <comp x, comp y, comp z, comp w> \</span>
|
||||
<a name="l00144"></a>00144 <span class="preprocessor"> GLM_FUNC_QUALIFIER detail::tvec4<TYPE> swizzle(detail::tvec##SIZE<TYPE> const & v) \</span>
|
||||
<a name="l00145"></a>00145 <span class="preprocessor"> {return detail::tvec4<TYPE>(v[x], v[y], v[z], v[w]);}</span>
|
||||
<a name="l00146"></a>00146 <span class="preprocessor"></span>
|
||||
<a name="l00147"></a>00147
|
||||
<a name="l00148"></a>00148 static_swizzle2_const(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 2)
|
||||
<a name="l00149"></a>00149 static_swizzle2_const(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 3)
|
||||
<a name="l00150"></a>00150 static_swizzle2_const(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 4)
|
||||
<a name="l00151"></a>00151 static_swizzle2_const(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 2)
|
||||
<a name="l00152"></a>00152 static_swizzle2_const(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 3)
|
||||
<a name="l00153"></a>00153 static_swizzle2_const(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 4)
|
||||
<a name="l00154"></a>00154 static_swizzle2_const(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 2)
|
||||
<a name="l00155"></a>00155 static_swizzle2_const(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 3)
|
||||
<a name="l00156"></a>00156 static_swizzle2_const(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 4)
|
||||
<a name="l00157"></a>00157
|
||||
<a name="l00158"></a>00158 static_swizzle2_const(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 2)
|
||||
<a name="l00159"></a>00159 static_swizzle2_const(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 3)
|
||||
<a name="l00160"></a>00160 static_swizzle2_const(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 4)
|
||||
<a name="l00161"></a>00161 static_swizzle2_const(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 2)
|
||||
<a name="l00162"></a>00162 static_swizzle2_const(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 3)
|
||||
<a name="l00163"></a>00163 static_swizzle2_const(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 4)
|
||||
<a name="l00164"></a>00164 static_swizzle2_const(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 2)
|
||||
<a name="l00165"></a>00165 static_swizzle2_const(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 3)
|
||||
<a name="l00166"></a>00166 static_swizzle2_const(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 4)
|
||||
<a name="l00167"></a>00167 static_swizzle2_const(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 2)
|
||||
<a name="l00168"></a>00168 static_swizzle2_const(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 3)
|
||||
<a name="l00169"></a>00169 static_swizzle2_const(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 4)
|
||||
<a name="l00170"></a>00170
|
||||
<a name="l00171"></a>00171 static_swizzle2_const(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 2)
|
||||
<a name="l00172"></a>00172 static_swizzle2_const(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 3)
|
||||
<a name="l00173"></a>00173 static_swizzle2_const(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 4)
|
||||
<a name="l00174"></a>00174 static_swizzle2_const(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 2)
|
||||
<a name="l00175"></a>00175 static_swizzle2_const(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 3)
|
||||
<a name="l00176"></a>00176 static_swizzle2_const(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 4)
|
||||
<a name="l00177"></a>00177 static_swizzle2_const(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 2)
|
||||
<a name="l00178"></a>00178 static_swizzle2_const(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 3)
|
||||
<a name="l00179"></a>00179 static_swizzle2_const(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 4)
|
||||
<a name="l00180"></a>00180 static_swizzle2_const(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 2)
|
||||
<a name="l00181"></a>00181 static_swizzle2_const(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 3)
|
||||
<a name="l00182"></a>00182 static_swizzle2_const(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 4)
|
||||
<a name="l00183"></a>00183
|
||||
<a name="l00184"></a>00184 static_swizzle3_const(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 2)
|
||||
<a name="l00185"></a>00185 static_swizzle3_const(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 3)
|
||||
<a name="l00186"></a>00186 static_swizzle3_const(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 4)
|
||||
<a name="l00187"></a>00187 static_swizzle3_const(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 2)
|
||||
<a name="l00188"></a>00188 static_swizzle3_const(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 3)
|
||||
<a name="l00189"></a>00189 static_swizzle3_const(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 4)
|
||||
<a name="l00190"></a>00190 static_swizzle3_const(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 2)
|
||||
<a name="l00191"></a>00191 static_swizzle3_const(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 3)
|
||||
<a name="l00192"></a>00192 static_swizzle3_const(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 4)
|
||||
<a name="l00193"></a>00193
|
||||
<a name="l00194"></a>00194 static_swizzle3_const(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 2)
|
||||
<a name="l00195"></a>00195 static_swizzle3_const(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 3)
|
||||
<a name="l00196"></a>00196 static_swizzle3_const(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 4)
|
||||
<a name="l00197"></a>00197 static_swizzle3_const(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 2)
|
||||
<a name="l00198"></a>00198 static_swizzle3_const(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 3)
|
||||
<a name="l00199"></a>00199 static_swizzle3_const(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 4)
|
||||
<a name="l00200"></a>00200 static_swizzle3_const(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 2)
|
||||
<a name="l00201"></a>00201 static_swizzle3_const(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 3)
|
||||
<a name="l00202"></a>00202 static_swizzle3_const(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 4)
|
||||
<a name="l00203"></a>00203 static_swizzle3_const(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 2)
|
||||
<a name="l00204"></a>00204 static_swizzle3_const(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 3)
|
||||
<a name="l00205"></a>00205 static_swizzle3_const(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 4)
|
||||
<a name="l00206"></a>00206
|
||||
<a name="l00207"></a>00207 static_swizzle3_const(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 2)
|
||||
<a name="l00208"></a>00208 static_swizzle3_const(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 3)
|
||||
<a name="l00209"></a>00209 static_swizzle3_const(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 4)
|
||||
<a name="l00210"></a>00210 static_swizzle3_const(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 2)
|
||||
<a name="l00211"></a>00211 static_swizzle3_const(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 3)
|
||||
<a name="l00212"></a>00212 static_swizzle3_const(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 4)
|
||||
<a name="l00213"></a>00213 static_swizzle3_const(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 2)
|
||||
<a name="l00214"></a>00214 static_swizzle3_const(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 3)
|
||||
<a name="l00215"></a>00215 static_swizzle3_const(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 4)
|
||||
<a name="l00216"></a>00216 static_swizzle3_const(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 2)
|
||||
<a name="l00217"></a>00217 static_swizzle3_const(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 3)
|
||||
<a name="l00218"></a>00218 static_swizzle3_const(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 4)
|
||||
<a name="l00219"></a>00219
|
||||
<a name="l00220"></a>00220 static_swizzle4_const(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 2)
|
||||
<a name="l00221"></a>00221 static_swizzle4_const(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 3)
|
||||
<a name="l00222"></a>00222 static_swizzle4_const(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 4)
|
||||
<a name="l00223"></a>00223 static_swizzle4_const(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 2)
|
||||
<a name="l00224"></a>00224 static_swizzle4_const(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 3)
|
||||
<a name="l00225"></a>00225 static_swizzle4_const(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 4)
|
||||
<a name="l00226"></a>00226 static_swizzle4_const(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 2)
|
||||
<a name="l00227"></a>00227 static_swizzle4_const(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 3)
|
||||
<a name="l00228"></a>00228 static_swizzle4_const(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 4)
|
||||
<a name="l00229"></a>00229
|
||||
<a name="l00230"></a>00230 static_swizzle4_const(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 2)
|
||||
<a name="l00231"></a>00231 static_swizzle4_const(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 3)
|
||||
<a name="l00232"></a>00232 static_swizzle4_const(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 4)
|
||||
<a name="l00233"></a>00233 static_swizzle4_const(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 2)
|
||||
<a name="l00234"></a>00234 static_swizzle4_const(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 3)
|
||||
<a name="l00235"></a>00235 static_swizzle4_const(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 4)
|
||||
<a name="l00236"></a>00236 static_swizzle4_const(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 2)
|
||||
<a name="l00237"></a>00237 static_swizzle4_const(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 3)
|
||||
<a name="l00238"></a>00238 static_swizzle4_const(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 4)
|
||||
<a name="l00239"></a>00239 static_swizzle4_const(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 2)
|
||||
<a name="l00240"></a>00240 static_swizzle4_const(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 3)
|
||||
<a name="l00241"></a>00241 static_swizzle4_const(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 4)
|
||||
<a name="l00242"></a>00242
|
||||
<a name="l00243"></a>00243 static_swizzle4_const(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 2)
|
||||
<a name="l00244"></a>00244 static_swizzle4_const(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 3)
|
||||
<a name="l00245"></a>00245 static_swizzle4_const(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 4)
|
||||
<a name="l00246"></a>00246 static_swizzle4_const(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 2)
|
||||
<a name="l00247"></a>00247 static_swizzle4_const(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 3)
|
||||
<a name="l00248"></a>00248 static_swizzle4_const(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 4)
|
||||
<a name="l00249"></a>00249 static_swizzle4_const(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 2)
|
||||
<a name="l00250"></a>00250 static_swizzle4_const(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 3)
|
||||
<a name="l00251"></a>00251 static_swizzle4_const(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 4)
|
||||
<a name="l00252"></a>00252 static_swizzle4_const(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 2)
|
||||
<a name="l00253"></a>00253 static_swizzle4_const(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 3)
|
||||
<a name="l00254"></a>00254 static_swizzle4_const(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 4)
|
||||
<a name="l00255"></a>00255
|
||||
<a name="l00256"></a>00256 <span class="preprocessor"># define static_swizzle2_ref(TYPE, SIZE) \</span>
|
||||
<a name="l00257"></a>00257 <span class="preprocessor"> template <glm::comp x, glm::comp y> \</span>
|
||||
<a name="l00258"></a>00258 <span class="preprocessor"> GLM_FUNC_QUALIFIER glm::detail::tref2<TYPE> swizzle(detail::tvec##SIZE<TYPE> & v) \</span>
|
||||
<a name="l00259"></a>00259 <span class="preprocessor"> {return glm::detail::tref2<TYPE>(v[x], v[y]);} </span>
|
||||
<a name="l00260"></a>00260 <span class="preprocessor"></span>
|
||||
<a name="l00261"></a>00261 <span class="preprocessor"># define static_swizzle3_ref(TYPE, SIZE) \</span>
|
||||
<a name="l00262"></a>00262 <span class="preprocessor"> template <glm::comp x, glm::comp y, glm::comp z> \</span>
|
||||
<a name="l00263"></a>00263 <span class="preprocessor"> GLM_FUNC_QUALIFIER glm::detail::tref3<TYPE> swizzle(detail::tvec##SIZE<TYPE> & v) \</span>
|
||||
<a name="l00264"></a>00264 <span class="preprocessor"> {return glm::detail::tref3<TYPE>(v[x], v[y], v[z]);} </span>
|
||||
<a name="l00265"></a>00265 <span class="preprocessor"></span>
|
||||
<a name="l00266"></a>00266 <span class="preprocessor"># define static_swizzle4_ref(TYPE, SIZE) \</span>
|
||||
<a name="l00267"></a>00267 <span class="preprocessor"> template <glm::comp x, glm::comp y, glm::comp z, glm::comp w> \</span>
|
||||
<a name="l00268"></a>00268 <span class="preprocessor"> GLM_FUNC_QUALIFIER glm::detail::tref4<TYPE> swizzle(detail::tvec##SIZE<TYPE> & v) \</span>
|
||||
<a name="l00269"></a>00269 <span class="preprocessor"> {return glm::detail::tref4<TYPE>(v[x], v[y], v[z], v[w]);} </span>
|
||||
<a name="l00270"></a>00270 <span class="preprocessor"></span>
|
||||
<a name="l00271"></a>00271 static_swizzle2_ref(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 2)
|
||||
<a name="l00272"></a>00272 static_swizzle2_ref(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 3)
|
||||
<a name="l00273"></a>00273 static_swizzle2_ref(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 4)
|
||||
<a name="l00274"></a>00274 static_swizzle2_ref(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 2)
|
||||
<a name="l00275"></a>00275 static_swizzle2_ref(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 3)
|
||||
<a name="l00276"></a>00276 static_swizzle2_ref(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 4)
|
||||
<a name="l00277"></a>00277 static_swizzle2_ref(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 2)
|
||||
<a name="l00278"></a>00278 static_swizzle2_ref(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 3)
|
||||
<a name="l00279"></a>00279 static_swizzle2_ref(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 4)
|
||||
<a name="l00280"></a>00280
|
||||
<a name="l00281"></a>00281 static_swizzle2_ref(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 2)
|
||||
<a name="l00282"></a>00282 static_swizzle2_ref(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 3)
|
||||
<a name="l00283"></a>00283 static_swizzle2_ref(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 4)
|
||||
<a name="l00284"></a>00284 static_swizzle2_ref(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 2)
|
||||
<a name="l00285"></a>00285 static_swizzle2_ref(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 3)
|
||||
<a name="l00286"></a>00286 static_swizzle2_ref(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 4)
|
||||
<a name="l00287"></a>00287 static_swizzle2_ref(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 2)
|
||||
<a name="l00288"></a>00288 static_swizzle2_ref(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 3)
|
||||
<a name="l00289"></a>00289 static_swizzle2_ref(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 4)
|
||||
<a name="l00290"></a>00290 static_swizzle2_ref(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 2)
|
||||
<a name="l00291"></a>00291 static_swizzle2_ref(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 3)
|
||||
<a name="l00292"></a>00292 static_swizzle2_ref(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 4)
|
||||
<a name="l00293"></a>00293
|
||||
<a name="l00294"></a>00294 static_swizzle2_ref(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 2)
|
||||
<a name="l00295"></a>00295 static_swizzle2_ref(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 3)
|
||||
<a name="l00296"></a>00296 static_swizzle2_ref(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 4)
|
||||
<a name="l00297"></a>00297 static_swizzle2_ref(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 2)
|
||||
<a name="l00298"></a>00298 static_swizzle2_ref(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 3)
|
||||
<a name="l00299"></a>00299 static_swizzle2_ref(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 4)
|
||||
<a name="l00300"></a>00300 static_swizzle2_ref(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 2)
|
||||
<a name="l00301"></a>00301 static_swizzle2_ref(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 3)
|
||||
<a name="l00302"></a>00302 static_swizzle2_ref(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 4)
|
||||
<a name="l00303"></a>00303 static_swizzle2_ref(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 2)
|
||||
<a name="l00304"></a>00304 static_swizzle2_ref(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 3)
|
||||
<a name="l00305"></a>00305 static_swizzle2_ref(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 4)
|
||||
<a name="l00306"></a>00306
|
||||
<a name="l00307"></a>00307 static_swizzle3_ref(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 3)
|
||||
<a name="l00308"></a>00308 static_swizzle3_ref(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 4)
|
||||
<a name="l00309"></a>00309 static_swizzle3_ref(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 3)
|
||||
<a name="l00310"></a>00310 static_swizzle3_ref(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 4)
|
||||
<a name="l00311"></a>00311 static_swizzle3_ref(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 3)
|
||||
<a name="l00312"></a>00312 static_swizzle3_ref(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 4)
|
||||
<a name="l00313"></a>00313
|
||||
<a name="l00314"></a>00314 static_swizzle3_ref(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 3)
|
||||
<a name="l00315"></a>00315 static_swizzle3_ref(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 4)
|
||||
<a name="l00316"></a>00316 static_swizzle3_ref(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 3)
|
||||
<a name="l00317"></a>00317 static_swizzle3_ref(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 4)
|
||||
<a name="l00318"></a>00318 static_swizzle3_ref(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 3)
|
||||
<a name="l00319"></a>00319 static_swizzle3_ref(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 4)
|
||||
<a name="l00320"></a>00320 static_swizzle3_ref(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 3)
|
||||
<a name="l00321"></a>00321 static_swizzle3_ref(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 4)
|
||||
<a name="l00322"></a>00322
|
||||
<a name="l00323"></a>00323 static_swizzle3_ref(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 3)
|
||||
<a name="l00324"></a>00324 static_swizzle3_ref(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 4)
|
||||
<a name="l00325"></a>00325 static_swizzle3_ref(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 3)
|
||||
<a name="l00326"></a>00326 static_swizzle3_ref(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 4)
|
||||
<a name="l00327"></a>00327 static_swizzle3_ref(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 3)
|
||||
<a name="l00328"></a>00328 static_swizzle3_ref(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 4)
|
||||
<a name="l00329"></a>00329 static_swizzle3_ref(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 3)
|
||||
<a name="l00330"></a>00330 static_swizzle3_ref(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 4)
|
||||
<a name="l00331"></a>00331
|
||||
<a name="l00332"></a>00332 static_swizzle4_ref(<a class="code" href="a00009.html" title="16-bit floating point type.">glm::f16</a>, 4)
|
||||
<a name="l00333"></a>00333 static_swizzle4_ref(<a class="code" href="a00246.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f32</a>, 4)
|
||||
<a name="l00334"></a>00334 static_swizzle4_ref(<a class="code" href="a00246.html#ga1d794d240091678f602e8de225b8d8c9" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">glm::f64</a>, 4)
|
||||
<a name="l00335"></a>00335
|
||||
<a name="l00336"></a>00336 static_swizzle4_ref(<a class="code" href="a00246.html#ga112f99168645b5338136b72eddd12895" title="8bit signed integer. (from GLM_GTC_type_precision extension)">glm::i8</a>, 4)
|
||||
<a name="l00337"></a>00337 static_swizzle4_ref(<a class="code" href="a00246.html#ga47ad84e86d8eef23a5ebab2815242a0d" title="16bit signed integer. (from GLM_GTC_type_precision extension)">glm::i16</a>, 4)
|
||||
<a name="l00338"></a>00338 static_swizzle4_ref(<a class="code" href="a00246.html#ga324db08ffb2a193f9a10864288b94523" title="32bit signed integer. (from GLM_GTC_type_precision extension)">glm::i32</a>, 4)
|
||||
<a name="l00339"></a>00339 static_swizzle4_ref(<a class="code" href="a00246.html#ga60abe2e6e0bacb893a2d6d17cc50f753" title="64bit signed integer. (from GLM_GTC_type_precision extension)">glm::i64</a>, 4)
|
||||
<a name="l00340"></a>00340
|
||||
<a name="l00341"></a>00341 static_swizzle4_ref(<a class="code" href="a00246.html#gad8d9dbef83392da434801486bf814fe4" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u8</a>, 4)
|
||||
<a name="l00342"></a>00342 static_swizzle4_ref(<a class="code" href="a00246.html#ga91ec65f57d610f6902fd081f1d1e265a" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u16</a>, 4)
|
||||
<a name="l00343"></a>00343 static_swizzle4_ref(<a class="code" href="a00246.html#ga0bb0c4c53d0a5ea2c01d0bb363b56722" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u32</a>, 4)
|
||||
<a name="l00344"></a>00344 static_swizzle4_ref(<a class="code" href="a00246.html#ga02ecb7390e4c4515df2268d18f99abc0" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">glm::u64</a>, 4)
|
||||
<a name="l00345"></a>00345
|
||||
<a name="l00346"></a>00346 }<span class="comment">//namespace swizzle</span>
|
||||
<a name="l00347"></a>00347 }<span class="comment">//namespace gtc</span>
|
||||
<a name="l00348"></a>00348 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00349"></a>00349
|
||||
<a name="l00350"></a>00350 <span class="preprocessor">#include "swizzle.inl"</span>
|
||||
<a name="l00351"></a>00351
|
||||
<a name="l00352"></a>00352 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtc::swizzle;}
|
||||
<a name="l00353"></a>00353
|
||||
<a name="l00354"></a>00354 <span class="preprocessor">#endif//glm_gtc_swizzle</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,125 +0,0 @@
|
||||
<!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>transform.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">transform.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-04-29</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/transform.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTC_matric_transform</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_transform</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_transform</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "../gtc/matrix_transform.hpp"</span>
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_transform extension included")</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span>
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00026"></a>00026 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00027"></a><a class="code" href="a00219.html">00027</a> <span class="keyword">namespace </span>transform
|
||||
<a name="l00028"></a>00028 {
|
||||
<a name="l00029"></a>00029 <span class="keyword">using namespace </span>gtc::matrix_transform;
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00033"></a>00033
|
||||
<a name="l00036"></a>00036 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00037"></a>00037 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00295.html#ga982331dbdf3a14d1ed6601e67178cff3" title="Builds a translation 4 * 4 matrix created from 3 scalars.">translate</a>(
|
||||
<a name="l00038"></a>00038 T x, T y, T z);
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00042"></a>00042 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00043"></a>00043 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00295.html#ga982331dbdf3a14d1ed6601e67178cff3" title="Builds a translation 4 * 4 matrix created from 3 scalars.">translate</a>(
|
||||
<a name="l00044"></a>00044 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00045"></a>00045 T x, T y, T z);
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00049"></a>00049 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00050"></a>00050 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00295.html#ga982331dbdf3a14d1ed6601e67178cff3" title="Builds a translation 4 * 4 matrix created from 3 scalars.">translate</a>(
|
||||
<a name="l00051"></a>00051 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00055"></a>00055 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00056"></a>00056 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00295.html#ga6051e4c2205da027f721331b22f70d9d" title="Builds a rotation 4 * 4 matrix created from an axis of 3 scalars and an angle expressed in degrees...">rotate</a>(
|
||||
<a name="l00057"></a>00057 T <a class="code" href="a00286.html#ga6a3387a7d60728f60d86546b2f4d4d30" title="Returns the quaternion rotation angle.">angle</a>,
|
||||
<a name="l00058"></a>00058 T x, T y, T z);
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00062"></a>00062 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00063"></a>00063 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00295.html#ga6051e4c2205da027f721331b22f70d9d" title="Builds a rotation 4 * 4 matrix created from an axis of 3 scalars and an angle expressed in degrees...">rotate</a>(
|
||||
<a name="l00064"></a>00064 T angle,
|
||||
<a name="l00065"></a>00065 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00066"></a>00066
|
||||
<a name="l00069"></a>00069 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00070"></a>00070 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00295.html#ga6051e4c2205da027f721331b22f70d9d" title="Builds a rotation 4 * 4 matrix created from an axis of 3 scalars and an angle expressed in degrees...">rotate</a>(
|
||||
<a name="l00071"></a>00071 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00072"></a>00072 T angle,
|
||||
<a name="l00073"></a>00073 T x, T y, T z);
|
||||
<a name="l00074"></a>00074
|
||||
<a name="l00077"></a>00077 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00078"></a>00078 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00295.html#ga491ec926cfd56184de78ce4594e004a0" title="Builds a scale 4 * 4 matrix created from 3 scalars.">scale</a>(
|
||||
<a name="l00079"></a>00079 T x, T y, T z);
|
||||
<a name="l00080"></a>00080
|
||||
<a name="l00083"></a>00083 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00084"></a>00084 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00295.html#ga491ec926cfd56184de78ce4594e004a0" title="Builds a scale 4 * 4 matrix created from 3 scalars.">scale</a>(
|
||||
<a name="l00085"></a>00085 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00086"></a>00086 T x, T y, T z);
|
||||
<a name="l00087"></a>00087
|
||||
<a name="l00090"></a>00090 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00091"></a>00091 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00295.html#ga491ec926cfd56184de78ce4594e004a0" title="Builds a scale 4 * 4 matrix created from 3 scalars.">scale</a>(
|
||||
<a name="l00092"></a>00092 <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & v);
|
||||
<a name="l00093"></a>00093
|
||||
<a name="l00095"></a>00095 }<span class="comment">//namespace transform</span>
|
||||
<a name="l00096"></a>00096 }<span class="comment">//namespace gtx</span>
|
||||
<a name="l00097"></a>00097 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00098"></a>00098
|
||||
<a name="l00099"></a>00099 <span class="preprocessor">#include "transform.inl"</span>
|
||||
<a name="l00100"></a>00100
|
||||
<a name="l00101"></a>00101 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::transform;}
|
||||
<a name="l00102"></a>00102
|
||||
<a name="l00103"></a>00103 <span class="preprocessor">#endif//glm_gtx_transform</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,140 +0,0 @@
|
||||
<!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>transform2.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">transform2.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-12-21</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2006-11-13</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/transform2.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTX_transform</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_transform2</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_transform2</span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
||||
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "../gtx/transform.hpp"</span>
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_transform2 extension included")</span>
|
||||
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span>
|
||||
<a name="l00025"></a>00025 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00026"></a>00026 <span class="keyword">namespace </span>gtx{
|
||||
<a name="l00027"></a><a class="code" href="a00220.html">00027</a> <span class="keyword">namespace </span>transform2
|
||||
<a name="l00028"></a>00028 {
|
||||
<a name="l00029"></a>00029 <span class="keyword">using namespace </span>gtx::transform;
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00033"></a>00033
|
||||
<a name="l00036"></a>00036 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00037"></a>00037 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00296.html#gaf9900000ffffcb4e50f0f97101a35a27" title="Transforms a matrix with a shearing on X axis.">shearX2D</a>(
|
||||
<a name="l00038"></a>00038 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00039"></a>00039 T y);
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00043"></a>00043 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00044"></a>00044 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00296.html#ga73d1c5572f57bc69cd8296fa6411370a" title="Transforms a matrix with a shearing on Y axis.">shearY2D</a>(
|
||||
<a name="l00045"></a>00045 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00046"></a>00046 T x);
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00050"></a>00050 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00051"></a>00051 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00296.html#ga8b165c7be525526861e19675cca6e192" title="Transforms a matrix with a shearing on X axis From GLM_GTX_transform2 extension.">shearX3D</a>(
|
||||
<a name="l00052"></a>00052 <span class="keyword">const</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> & m,
|
||||
<a name="l00053"></a>00053 T y,
|
||||
<a name="l00054"></a>00054 T z);
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00058"></a>00058 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00059"></a>00059 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00296.html#gab059e40261cbfe782efb81aa866f1399" title="Transforms a matrix with a shearing on Y axis.">shearY3D</a>(
|
||||
<a name="l00060"></a>00060 <span class="keyword">const</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> & m,
|
||||
<a name="l00061"></a>00061 T x,
|
||||
<a name="l00062"></a>00062 T z);
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00066"></a>00066 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00067"></a>00067 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00296.html#ga3fbd91d387fea4c3f2d74e0ef2250996" title="Transforms a matrix with a shearing on Z axis.">shearZ3D</a>(
|
||||
<a name="l00068"></a>00068 <span class="keyword">const</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> & m,
|
||||
<a name="l00069"></a>00069 T x,
|
||||
<a name="l00070"></a>00070 T y);
|
||||
<a name="l00071"></a>00071
|
||||
<a name="l00072"></a>00072 <span class="comment">//template <typename T> GLM_FUNC_QUALIFIER detail::tmat4x4<T> shear(const detail::tmat4x4<T> & m, shearPlane, planePoint, angle)</span>
|
||||
<a name="l00073"></a>00073 <span class="comment">// Identity + tan(angle) * cross(Normal, OnPlaneVector) 0</span>
|
||||
<a name="l00074"></a>00074 <span class="comment">// - dot(PointOnPlane, normal) * OnPlaneVector 1</span>
|
||||
<a name="l00075"></a>00075
|
||||
<a name="l00076"></a>00076 <span class="comment">// Reflect functions seem to don't work</span>
|
||||
<a name="l00077"></a>00077 <span class="comment">//template <typename T> detail::tmat3x3<T> reflect2D(const detail::tmat3x3<T> & m, const detail::tvec3<T>& normal){return reflect2DGTX(m, normal);} //!< \brief Build a reflection matrix (from GLM_GTX_transform2 extension)</span>
|
||||
<a name="l00078"></a>00078 <span class="comment">//template <typename T> detail::tmat4x4<T> reflect3D(const detail::tmat4x4<T> & m, const detail::tvec3<T>& normal){return reflect3DGTX(m, normal);} //!< \brief Build a reflection matrix (from GLM_GTX_transform2 extension)</span>
|
||||
<a name="l00079"></a>00079
|
||||
<a name="l00082"></a>00082 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00083"></a>00083 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00296.html#gad67f97fe49fb1709d6d8b6810c7c52fb" title="Build planar projection matrix along normal axis.">proj2D</a>(
|
||||
<a name="l00084"></a>00084 <span class="keyword">const</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> & m,
|
||||
<a name="l00085"></a>00085 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& normal);
|
||||
<a name="l00086"></a>00086
|
||||
<a name="l00089"></a>00089 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00090"></a>00090 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00296.html#gabc160967cd323027f973976457590482" title="Build planar projection matrix along normal axis.">proj3D</a>(
|
||||
<a name="l00091"></a>00091 <span class="keyword">const</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> & m,
|
||||
<a name="l00092"></a>00092 <span class="keyword">const</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<T></a>& normal);
|
||||
<a name="l00093"></a>00093
|
||||
<a name="l00096"></a>00096 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00097"></a>00097 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00296.html#gae193c4807264f8454b1786ceeac02455" title="Build a scale bias matrix.">scaleBias</a>(
|
||||
<a name="l00098"></a>00098 valType <a class="code" href="a00244.html#ga6da77ee2c33d0d33de557a37ff35b197" title="Builds a scale 4 * 4 matrix created from 3 scalars.">scale</a>,
|
||||
<a name="l00099"></a>00099 valType bias);
|
||||
<a name="l00100"></a>00100
|
||||
<a name="l00103"></a>00103 <span class="keyword">template</span> <<span class="keyword">typename</span> valType>
|
||||
<a name="l00104"></a>00104 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <a class="code" href="a00296.html#gae193c4807264f8454b1786ceeac02455" title="Build a scale bias matrix.">scaleBias</a>(
|
||||
<a name="l00105"></a>00105 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<valType></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00106"></a>00106 valType scale,
|
||||
<a name="l00107"></a>00107 valType bias);
|
||||
<a name="l00108"></a>00108
|
||||
<a name="l00110"></a>00110 }<span class="comment">// namespace transform2</span>
|
||||
<a name="l00111"></a>00111 }<span class="comment">// namespace gtx</span>
|
||||
<a name="l00112"></a>00112 }<span class="comment">// namespace glm</span>
|
||||
<a name="l00113"></a>00113
|
||||
<a name="l00114"></a>00114 <span class="preprocessor">#include "transform2.inl"</span>
|
||||
<a name="l00115"></a>00115
|
||||
<a name="l00116"></a>00116 <span class="keyword">namespace </span>glm{<span class="keyword">using namespace </span>gtx::transform2;}
|
||||
<a name="l00117"></a>00117
|
||||
<a name="l00118"></a>00118 <span class="preprocessor">#endif//glm_gtx_transform2</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,253 +0,0 @@
|
||||
<!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>type.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">type.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-01-08</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-01-08</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/type.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_type</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_type</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "type_half.hpp"</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#include "type_float.hpp"</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor">#include "type_int.hpp"</span>
|
||||
<a name="l00016"></a>00016
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include "type_gentype.hpp"</span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019 <span class="preprocessor">#include "type_vec1.hpp"</span>
|
||||
<a name="l00020"></a>00020 <span class="preprocessor">#include "type_vec2.hpp"</span>
|
||||
<a name="l00021"></a>00021 <span class="preprocessor">#include "type_vec3.hpp"</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor">#include "type_vec4.hpp"</span>
|
||||
<a name="l00023"></a>00023
|
||||
<a name="l00024"></a>00024 <span class="preprocessor">#include "type_mat2x2.hpp"</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor">#include "type_mat2x3.hpp"</span>
|
||||
<a name="l00026"></a>00026 <span class="preprocessor">#include "type_mat2x4.hpp"</span>
|
||||
<a name="l00027"></a>00027 <span class="preprocessor">#include "type_mat3x2.hpp"</span>
|
||||
<a name="l00028"></a>00028 <span class="preprocessor">#include "type_mat3x3.hpp"</span>
|
||||
<a name="l00029"></a>00029 <span class="preprocessor">#include "type_mat3x4.hpp"</span>
|
||||
<a name="l00030"></a>00030 <span class="preprocessor">#include "type_mat4x2.hpp"</span>
|
||||
<a name="l00031"></a>00031 <span class="preprocessor">#include "type_mat4x3.hpp"</span>
|
||||
<a name="l00032"></a>00032 <span class="preprocessor">#include "type_mat4x4.hpp"</span>
|
||||
<a name="l00033"></a>00033
|
||||
<a name="l00034"></a>00034 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00035"></a>00035 <span class="keyword">namespace </span>core{
|
||||
<a name="l00036"></a><a class="code" href="a00155.html">00036</a> <span class="keyword">namespace </span>type
|
||||
<a name="l00037"></a>00037 {
|
||||
<a name="l00039"></a>00039 <span class="comment">// Float definition</span>
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00041"></a>00041 <span class="preprocessor">#if(defined(GLM_PRECISION_HIGHP_FLOAT))</span>
|
||||
<a name="l00042"></a>00042 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">precision::highp_vec2</a> <a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">vec2</a>;
|
||||
<a name="l00043"></a>00043 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">precision::highp_vec3</a> <a class="code" href="a00235.html#gac422c7058a7c9963b55ad70764c62752" title="3 components vector of floating-point numbers.">vec3</a>;
|
||||
<a name="l00044"></a>00044 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">precision::highp_vec4</a> <a class="code" href="a00235.html#ga8fad5ffc01ba6dea689f2a38bf30bda4" title="4 components vector of floating-point numbers.">vec4</a>;
|
||||
<a name="l00045"></a>00045 <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">precision::highp_mat2x2</a> <a class="code" href="a00235.html#gac0430f4e1a8747774bcfbd0ea7c7df7b" title="2 columns of 2 components matrix of floating-point numbers.">mat2x2</a>;
|
||||
<a name="l00046"></a>00046 <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">precision::highp_mat2x3</a> <a class="code" href="a00235.html#ga166bc1c922bedbb7f655bd348ff2f97b" title="2 columns of 3 components matrix of floating-point numbers.">mat2x3</a>;
|
||||
<a name="l00047"></a>00047 <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">precision::highp_mat2x4</a> <a class="code" href="a00235.html#ga0c9a783f321486534bd3a2fd3701a374" title="2 columns of 4 components matrix of floating-point numbers.">mat2x4</a>;
|
||||
<a name="l00048"></a>00048 <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">precision::highp_mat3x2</a> <a class="code" href="a00235.html#ga839dac056fcbc087c6c161eb0d7fbe1b" title="3 columns of 2 components matrix of floating-point numbers.">mat3x2</a>;
|
||||
<a name="l00049"></a>00049 <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">precision::highp_mat3x3</a> <a class="code" href="a00235.html#gaf188822f2db83067facc9fa922416ad9" title="3 columns of 3 components matrix of floating-point numbers.">mat3x3</a>;
|
||||
<a name="l00050"></a>00050 <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">precision::highp_mat3x4</a> <a class="code" href="a00235.html#ga70f8918f1c21ead733c8f089c09d353a" title="3 columns of 4 components matrix of floating-point numbers.">mat3x4</a>;
|
||||
<a name="l00051"></a>00051 <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">precision::highp_mat4x2</a> <a class="code" href="a00235.html#ga2c797007acc18027b65dad6e1f2d7b77" title="4 columns of 2 components matrix of floating-point numbers.">mat4x2</a>;
|
||||
<a name="l00052"></a>00052 <span class="keyword">typedef</span> <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">precision::highp_mat4x3</a> <a class="code" href="a00235.html#ga73f97cdfb274c84ac7115b8e03c6b54a" title="4 columns of 3 components matrix of floating-point numbers.">mat4x3</a>;
|
||||
<a name="l00053"></a>00053 <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">precision::highp_mat4x4</a> <a class="code" href="a00235.html#ga214f3d771188cb5b9ec6b5485ac082dc" title="4 columns of 4 components matrix of floating-point numbers.">mat4x4</a>;
|
||||
<a name="l00054"></a>00054 <span class="preprocessor">#elif(defined(GLM_PRECISION_MEDIUMP_FLOAT))</span>
|
||||
<a name="l00055"></a>00055 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">precision::mediump_vec2</a> <a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">vec2</a>;
|
||||
<a name="l00056"></a>00056 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">precision::mediump_vec3</a> <a class="code" href="a00235.html#gac422c7058a7c9963b55ad70764c62752" title="3 components vector of floating-point numbers.">vec3</a>;
|
||||
<a name="l00057"></a>00057 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">precision::mediump_vec4</a> <a class="code" href="a00235.html#ga8fad5ffc01ba6dea689f2a38bf30bda4" title="4 components vector of floating-point numbers.">vec4</a>;
|
||||
<a name="l00058"></a>00058 <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">precision::mediump_mat2x2</a> <a class="code" href="a00235.html#gac0430f4e1a8747774bcfbd0ea7c7df7b" title="2 columns of 2 components matrix of floating-point numbers.">mat2x2</a>;
|
||||
<a name="l00059"></a>00059 <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">precision::mediump_mat2x3</a> <a class="code" href="a00235.html#ga166bc1c922bedbb7f655bd348ff2f97b" title="2 columns of 3 components matrix of floating-point numbers.">mat2x3</a>;
|
||||
<a name="l00060"></a>00060 <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">precision::mediump_mat2x4</a> <a class="code" href="a00235.html#ga0c9a783f321486534bd3a2fd3701a374" title="2 columns of 4 components matrix of floating-point numbers.">mat2x4</a>;
|
||||
<a name="l00061"></a>00061 <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">precision::mediump_mat3x2</a> <a class="code" href="a00235.html#ga839dac056fcbc087c6c161eb0d7fbe1b" title="3 columns of 2 components matrix of floating-point numbers.">mat3x2</a>;
|
||||
<a name="l00062"></a>00062 <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">precision::mediump_mat3x3</a> <a class="code" href="a00235.html#gaf188822f2db83067facc9fa922416ad9" title="3 columns of 3 components matrix of floating-point numbers.">mat3x3</a>;
|
||||
<a name="l00063"></a>00063 <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">precision::mediump_mat3x4</a> <a class="code" href="a00235.html#ga70f8918f1c21ead733c8f089c09d353a" title="3 columns of 4 components matrix of floating-point numbers.">mat3x4</a>;
|
||||
<a name="l00064"></a>00064 <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">precision::mediump_mat4x2</a> <a class="code" href="a00235.html#ga2c797007acc18027b65dad6e1f2d7b77" title="4 columns of 2 components matrix of floating-point numbers.">mat4x2</a>;
|
||||
<a name="l00065"></a>00065 <span class="keyword">typedef</span> <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">precision::mediump_mat4x3</a> <a class="code" href="a00235.html#ga73f97cdfb274c84ac7115b8e03c6b54a" title="4 columns of 3 components matrix of floating-point numbers.">mat4x3</a>;
|
||||
<a name="l00066"></a>00066 <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">precision::mediump_mat4x4</a> <a class="code" href="a00235.html#ga214f3d771188cb5b9ec6b5485ac082dc" title="4 columns of 4 components matrix of floating-point numbers.">mat4x4</a>;
|
||||
<a name="l00067"></a>00067 <span class="preprocessor">#elif(defined(GLM_PRECISION_LOWP_FLOAT))</span>
|
||||
<a name="l00068"></a>00068 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">precision::lowp_vec2</a> <a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">vec2</a>;
|
||||
<a name="l00069"></a>00069 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">precision::lowp_vec3</a> <a class="code" href="a00235.html#gac422c7058a7c9963b55ad70764c62752" title="3 components vector of floating-point numbers.">vec3</a>;
|
||||
<a name="l00070"></a>00070 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">precision::lowp_vec4</a> <a class="code" href="a00235.html#ga8fad5ffc01ba6dea689f2a38bf30bda4" title="4 components vector of floating-point numbers.">vec4</a>;
|
||||
<a name="l00071"></a>00071 <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">precision::lowp_mat2x2</a> <a class="code" href="a00235.html#gac0430f4e1a8747774bcfbd0ea7c7df7b" title="2 columns of 2 components matrix of floating-point numbers.">mat2x2</a>;
|
||||
<a name="l00072"></a>00072 <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">precision::lowp_mat2x3</a> <a class="code" href="a00235.html#ga166bc1c922bedbb7f655bd348ff2f97b" title="2 columns of 3 components matrix of floating-point numbers.">mat2x3</a>;
|
||||
<a name="l00073"></a>00073 <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">precision::lowp_mat2x4</a> <a class="code" href="a00235.html#ga0c9a783f321486534bd3a2fd3701a374" title="2 columns of 4 components matrix of floating-point numbers.">mat2x4</a>;
|
||||
<a name="l00074"></a>00074 <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">precision::lowp_mat3x2</a> <a class="code" href="a00235.html#ga839dac056fcbc087c6c161eb0d7fbe1b" title="3 columns of 2 components matrix of floating-point numbers.">mat3x2</a>;
|
||||
<a name="l00075"></a>00075 <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">precision::lowp_mat3x3</a> <a class="code" href="a00235.html#gaf188822f2db83067facc9fa922416ad9" title="3 columns of 3 components matrix of floating-point numbers.">mat3x3</a>;
|
||||
<a name="l00076"></a>00076 <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">precision::lowp_mat3x4</a> <a class="code" href="a00235.html#ga70f8918f1c21ead733c8f089c09d353a" title="3 columns of 4 components matrix of floating-point numbers.">mat3x4</a>;
|
||||
<a name="l00077"></a>00077 <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">precision::lowp_mat4x2</a> <a class="code" href="a00235.html#ga2c797007acc18027b65dad6e1f2d7b77" title="4 columns of 2 components matrix of floating-point numbers.">mat4x2</a>;
|
||||
<a name="l00078"></a>00078 <span class="keyword">typedef</span> <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">precision::lowp_mat4x3</a> <a class="code" href="a00235.html#ga73f97cdfb274c84ac7115b8e03c6b54a" title="4 columns of 3 components matrix of floating-point numbers.">mat4x3</a>;
|
||||
<a name="l00079"></a>00079 <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">precision::lowp_mat4x4</a> <a class="code" href="a00235.html#ga214f3d771188cb5b9ec6b5485ac082dc" title="4 columns of 4 components matrix of floating-point numbers.">mat4x4</a>;
|
||||
<a name="l00080"></a>00080 <span class="preprocessor">#else</span>
|
||||
<a name="l00081"></a>00081 <span class="preprocessor"></span>
|
||||
<a name="l00082"></a>00082
|
||||
<a name="l00083"></a>00083
|
||||
<a name="l00084"></a><a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60">00084</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">precision::mediump_vec2</a> <a class="code" href="a00235.html#gae0d1080e37fc58255cac2d521704ec60" title="2 components vector of floating-point numbers.">vec2</a>;
|
||||
<a name="l00085"></a>00085
|
||||
<a name="l00089"></a><a class="code" href="a00235.html#gac422c7058a7c9963b55ad70764c62752">00089</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">precision::mediump_vec3</a> <a class="code" href="a00235.html#gac422c7058a7c9963b55ad70764c62752" title="3 components vector of floating-point numbers.">vec3</a>;
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00094"></a><a class="code" href="a00235.html#ga8fad5ffc01ba6dea689f2a38bf30bda4">00094</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">precision::mediump_vec4</a> <a class="code" href="a00235.html#ga8fad5ffc01ba6dea689f2a38bf30bda4" title="4 components vector of floating-point numbers.">vec4</a>;
|
||||
<a name="l00095"></a>00095
|
||||
<a name="l00099"></a><a class="code" href="a00235.html#gac0430f4e1a8747774bcfbd0ea7c7df7b">00099</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">precision::mediump_mat2x2</a> <a class="code" href="a00235.html#gac0430f4e1a8747774bcfbd0ea7c7df7b" title="2 columns of 2 components matrix of floating-point numbers.">mat2x2</a>;
|
||||
<a name="l00100"></a>00100
|
||||
<a name="l00104"></a><a class="code" href="a00235.html#ga166bc1c922bedbb7f655bd348ff2f97b">00104</a> <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">precision::mediump_mat2x3</a> <a class="code" href="a00235.html#ga166bc1c922bedbb7f655bd348ff2f97b" title="2 columns of 3 components matrix of floating-point numbers.">mat2x3</a>;
|
||||
<a name="l00105"></a>00105
|
||||
<a name="l00109"></a><a class="code" href="a00235.html#ga0c9a783f321486534bd3a2fd3701a374">00109</a> <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">precision::mediump_mat2x4</a> <a class="code" href="a00235.html#ga0c9a783f321486534bd3a2fd3701a374" title="2 columns of 4 components matrix of floating-point numbers.">mat2x4</a>;
|
||||
<a name="l00110"></a>00110
|
||||
<a name="l00114"></a><a class="code" href="a00235.html#ga839dac056fcbc087c6c161eb0d7fbe1b">00114</a> <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">precision::mediump_mat3x2</a> <a class="code" href="a00235.html#ga839dac056fcbc087c6c161eb0d7fbe1b" title="3 columns of 2 components matrix of floating-point numbers.">mat3x2</a>;
|
||||
<a name="l00115"></a>00115
|
||||
<a name="l00119"></a><a class="code" href="a00235.html#gaf188822f2db83067facc9fa922416ad9">00119</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">precision::mediump_mat3x3</a> <a class="code" href="a00235.html#gaf188822f2db83067facc9fa922416ad9" title="3 columns of 3 components matrix of floating-point numbers.">mat3x3</a>;
|
||||
<a name="l00120"></a>00120
|
||||
<a name="l00124"></a><a class="code" href="a00235.html#ga70f8918f1c21ead733c8f089c09d353a">00124</a> <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">precision::mediump_mat3x4</a> <a class="code" href="a00235.html#ga70f8918f1c21ead733c8f089c09d353a" title="3 columns of 4 components matrix of floating-point numbers.">mat3x4</a>;
|
||||
<a name="l00125"></a>00125
|
||||
<a name="l00129"></a><a class="code" href="a00235.html#ga2c797007acc18027b65dad6e1f2d7b77">00129</a> <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">precision::mediump_mat4x2</a> <a class="code" href="a00235.html#ga2c797007acc18027b65dad6e1f2d7b77" title="4 columns of 2 components matrix of floating-point numbers.">mat4x2</a>;
|
||||
<a name="l00130"></a>00130
|
||||
<a name="l00134"></a><a class="code" href="a00235.html#ga73f97cdfb274c84ac7115b8e03c6b54a">00134</a> <span class="keyword">typedef</span> <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">precision::mediump_mat4x3</a> <a class="code" href="a00235.html#ga73f97cdfb274c84ac7115b8e03c6b54a" title="4 columns of 3 components matrix of floating-point numbers.">mat4x3</a>;
|
||||
<a name="l00135"></a>00135
|
||||
<a name="l00139"></a><a class="code" href="a00235.html#ga214f3d771188cb5b9ec6b5485ac082dc">00139</a> <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">precision::mediump_mat4x4</a> <a class="code" href="a00235.html#ga214f3d771188cb5b9ec6b5485ac082dc" title="4 columns of 4 components matrix of floating-point numbers.">mat4x4</a>;
|
||||
<a name="l00140"></a>00140
|
||||
<a name="l00141"></a>00141 <span class="preprocessor">#endif//GLM_PRECISION</span>
|
||||
<a name="l00142"></a>00142 <span class="preprocessor"></span>
|
||||
<a name="l00146"></a><a class="code" href="a00235.html#ga6e30cfba068ebc3c71fe1f8b3110e450">00146</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">mat2x2</a> <a class="code" href="a00235.html#ga6e30cfba068ebc3c71fe1f8b3110e450" title="2 columns of 2 components matrix of floating-point numbers.">mat2</a>;
|
||||
<a name="l00147"></a>00147
|
||||
<a name="l00151"></a><a class="code" href="a00235.html#ga6dd3ec98a548755676267e59142911f8">00151</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">mat3x3</a> <a class="code" href="a00235.html#ga6dd3ec98a548755676267e59142911f8" title="3 columns of 3 components matrix of floating-point numbers.">mat3</a>;
|
||||
<a name="l00152"></a>00152
|
||||
<a name="l00156"></a><a class="code" href="a00235.html#gade0eb47c01f79384a6f38017ede17446">00156</a> <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">mat4x4</a> <a class="code" href="a00235.html#gade0eb47c01f79384a6f38017ede17446" title="4 columns of 4 components matrix of floating-point numbers.">mat4</a>;
|
||||
<a name="l00157"></a>00157
|
||||
<a name="l00159"></a>00159 <span class="comment">// Signed integer definition</span>
|
||||
<a name="l00160"></a>00160
|
||||
<a name="l00161"></a>00161 <span class="preprocessor">#if(defined(GLM_PRECISION_HIGHP_INT))</span>
|
||||
<a name="l00162"></a>00162 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">precision::highp_ivec2</a> <a class="code" href="a00235.html#gae34ec1dcb70458421c150176537dca90" title="2 components vector of signed integer numbers.">ivec2</a>;
|
||||
<a name="l00163"></a>00163 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">precision::highp_ivec3</a> <a class="code" href="a00235.html#ga8772f4d0808ec3571b0b21c7514ae626" title="3 components vector of signed integer numbers.">ivec3</a>;
|
||||
<a name="l00164"></a>00164 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">precision::highp_ivec4</a> <a class="code" href="a00235.html#ga4ca78493e6bc3274eb996a783f6336ec" title="4 components vector of signed integer numbers.">ivec4</a>;
|
||||
<a name="l00165"></a>00165 <span class="preprocessor">#elif(defined(GLM_PRECISION_MEDIUMP_INT))</span>
|
||||
<a name="l00166"></a>00166 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">precision::mediump_ivec2</a> <a class="code" href="a00235.html#gae34ec1dcb70458421c150176537dca90" title="2 components vector of signed integer numbers.">ivec2</a>;
|
||||
<a name="l00167"></a>00167 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">precision::mediump_ivec3</a> <a class="code" href="a00235.html#ga8772f4d0808ec3571b0b21c7514ae626" title="3 components vector of signed integer numbers.">ivec3</a>;
|
||||
<a name="l00168"></a>00168 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">precision::mediump_ivec4</a> <a class="code" href="a00235.html#ga4ca78493e6bc3274eb996a783f6336ec" title="4 components vector of signed integer numbers.">ivec4</a>;
|
||||
<a name="l00169"></a>00169 <span class="preprocessor">#elif(defined(GLM_PRECISION_LOWP_INT))</span>
|
||||
<a name="l00170"></a>00170 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">precision::lowp_ivec2</a> <a class="code" href="a00235.html#gae34ec1dcb70458421c150176537dca90" title="2 components vector of signed integer numbers.">ivec2</a>;
|
||||
<a name="l00171"></a>00171 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">precision::lowp_ivec3</a> <a class="code" href="a00235.html#ga8772f4d0808ec3571b0b21c7514ae626" title="3 components vector of signed integer numbers.">ivec3</a>;
|
||||
<a name="l00172"></a>00172 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">precision::lowp_ivec4</a> <a class="code" href="a00235.html#ga4ca78493e6bc3274eb996a783f6336ec" title="4 components vector of signed integer numbers.">ivec4</a>;
|
||||
<a name="l00173"></a>00173 <span class="preprocessor">#else</span>
|
||||
<a name="l00174"></a>00174 <span class="preprocessor"></span>
|
||||
<a name="l00175"></a>00175
|
||||
<a name="l00176"></a>00176
|
||||
<a name="l00177"></a><a class="code" href="a00235.html#gae34ec1dcb70458421c150176537dca90">00177</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">precision::mediump_ivec2</a> <a class="code" href="a00235.html#gae34ec1dcb70458421c150176537dca90" title="2 components vector of signed integer numbers.">ivec2</a>;
|
||||
<a name="l00178"></a>00178
|
||||
<a name="l00182"></a><a class="code" href="a00235.html#ga8772f4d0808ec3571b0b21c7514ae626">00182</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">precision::mediump_ivec3</a> <a class="code" href="a00235.html#ga8772f4d0808ec3571b0b21c7514ae626" title="3 components vector of signed integer numbers.">ivec3</a>;
|
||||
<a name="l00183"></a>00183
|
||||
<a name="l00187"></a><a class="code" href="a00235.html#ga4ca78493e6bc3274eb996a783f6336ec">00187</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">precision::mediump_ivec4</a> <a class="code" href="a00235.html#ga4ca78493e6bc3274eb996a783f6336ec" title="4 components vector of signed integer numbers.">ivec4</a>;
|
||||
<a name="l00188"></a>00188 <span class="preprocessor">#endif//GLM_PRECISION</span>
|
||||
<a name="l00189"></a>00189 <span class="preprocessor"></span>
|
||||
<a name="l00191"></a>00191 <span class="comment">// Unsigned integer definition</span>
|
||||
<a name="l00192"></a>00192
|
||||
<a name="l00193"></a>00193 <span class="preprocessor">#if(defined(GLM_PRECISION_HIGHP_UINT))</span>
|
||||
<a name="l00194"></a>00194 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">precision::highp_uvec2</a> <a class="code" href="a00235.html#ga3fae7e520beaa9bca6625b98d782f47e" title="2 components vector of unsigned integer numbers.">uvec2</a>;
|
||||
<a name="l00195"></a>00195 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">precision::highp_uvec3</a> <a class="code" href="a00235.html#ga48a100077cb128b9c790c71ac1d1d7d2" title="3 components vector of unsigned integer numbers.">uvec3</a>;
|
||||
<a name="l00196"></a>00196 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">precision::highp_uvec4</a> <a class="code" href="a00235.html#gafbb266d616ea71ad5099994980f8651d" title="4 components vector of unsigned integer numbers.">uvec4</a>;
|
||||
<a name="l00197"></a>00197 <span class="preprocessor">#elif(defined(GLM_PRECISION_MEDIUMP_UINT))</span>
|
||||
<a name="l00198"></a>00198 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">precision::mediump_uvec2</a> <a class="code" href="a00235.html#ga3fae7e520beaa9bca6625b98d782f47e" title="2 components vector of unsigned integer numbers.">uvec2</a>;
|
||||
<a name="l00199"></a>00199 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">precision::mediump_uvec3</a> <a class="code" href="a00235.html#ga48a100077cb128b9c790c71ac1d1d7d2" title="3 components vector of unsigned integer numbers.">uvec3</a>;
|
||||
<a name="l00200"></a>00200 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">precision::mediump_uvec4</a> <a class="code" href="a00235.html#gafbb266d616ea71ad5099994980f8651d" title="4 components vector of unsigned integer numbers.">uvec4</a>;
|
||||
<a name="l00201"></a>00201 <span class="preprocessor">#elif(defined(GLM_PRECISION_LOWP_UINT))</span>
|
||||
<a name="l00202"></a>00202 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">precision::lowp_uvec2</a> <a class="code" href="a00235.html#ga3fae7e520beaa9bca6625b98d782f47e" title="2 components vector of unsigned integer numbers.">uvec2</a>;
|
||||
<a name="l00203"></a>00203 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">precision::lowp_uvec3</a> <a class="code" href="a00235.html#ga48a100077cb128b9c790c71ac1d1d7d2" title="3 components vector of unsigned integer numbers.">uvec3</a>;
|
||||
<a name="l00204"></a>00204 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">precision::lowp_uvec4</a> <a class="code" href="a00235.html#gafbb266d616ea71ad5099994980f8651d" title="4 components vector of unsigned integer numbers.">uvec4</a>;
|
||||
<a name="l00205"></a>00205 <span class="preprocessor">#else</span>
|
||||
<a name="l00206"></a>00206 <span class="preprocessor"></span>
|
||||
<a name="l00207"></a>00207
|
||||
<a name="l00208"></a>00208
|
||||
<a name="l00209"></a><a class="code" href="a00235.html#ga3fae7e520beaa9bca6625b98d782f47e">00209</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">precision::mediump_uvec2</a> <a class="code" href="a00235.html#ga3fae7e520beaa9bca6625b98d782f47e" title="2 components vector of unsigned integer numbers.">uvec2</a>;
|
||||
<a name="l00210"></a>00210
|
||||
<a name="l00214"></a><a class="code" href="a00235.html#ga48a100077cb128b9c790c71ac1d1d7d2">00214</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">precision::mediump_uvec3</a> <a class="code" href="a00235.html#ga48a100077cb128b9c790c71ac1d1d7d2" title="3 components vector of unsigned integer numbers.">uvec3</a>;
|
||||
<a name="l00215"></a>00215
|
||||
<a name="l00219"></a><a class="code" href="a00235.html#gafbb266d616ea71ad5099994980f8651d">00219</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">precision::mediump_uvec4</a> <a class="code" href="a00235.html#gafbb266d616ea71ad5099994980f8651d" title="4 components vector of unsigned integer numbers.">uvec4</a>;
|
||||
<a name="l00220"></a>00220 <span class="preprocessor">#endif//GLM_PRECISION</span>
|
||||
<a name="l00221"></a>00221 <span class="preprocessor"></span>
|
||||
<a name="l00223"></a>00223 <span class="comment">// Boolean definition</span>
|
||||
<a name="l00224"></a>00224
|
||||
<a name="l00228"></a><a class="code" href="a00235.html#ga3bdc45d8289530ec60f8b0afd86dec9d">00228</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<bool></a> <a class="code" href="a00235.html#ga3bdc45d8289530ec60f8b0afd86dec9d" title="2 components vector of boolean.">bvec2</a>;
|
||||
<a name="l00229"></a>00229
|
||||
<a name="l00233"></a><a class="code" href="a00235.html#gaa6930ec345061c66a5fcb4839bbc23b2">00233</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<bool></a> <a class="code" href="a00235.html#gaa6930ec345061c66a5fcb4839bbc23b2" title="3 components vector of boolean.">bvec3</a>;
|
||||
<a name="l00234"></a>00234
|
||||
<a name="l00238"></a><a class="code" href="a00235.html#ga3b7e171999130bbe808335a4e41356a0">00238</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<bool></a> <a class="code" href="a00235.html#ga3b7e171999130bbe808335a4e41356a0" title="4 components vector of boolean.">bvec4</a>;
|
||||
<a name="l00239"></a>00239
|
||||
<a name="l00241"></a>00241 <span class="comment">// Double definition</span>
|
||||
<a name="l00242"></a>00242
|
||||
<a name="l00246"></a><a class="code" href="a00235.html#ga88bf1a60f35314a6b3f2c5adc97004cf">00246</a> <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">detail::tvec2<double></a> <a class="code" href="a00235.html#ga88bf1a60f35314a6b3f2c5adc97004cf" title="Vector of 2 double-precision floating-point numbers.">dvec2</a>;
|
||||
<a name="l00247"></a>00247
|
||||
<a name="l00251"></a><a class="code" href="a00235.html#ga0f0fcb7b631cbbac4341badb01d84218">00251</a> <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">detail::tvec3<double></a> <a class="code" href="a00235.html#ga0f0fcb7b631cbbac4341badb01d84218" title="Vector of 3 double-precision floating-point numbers.">dvec3</a>;
|
||||
<a name="l00252"></a>00252
|
||||
<a name="l00256"></a><a class="code" href="a00235.html#ga6f62aca8ddbdb3badf9d52885e7dcfb6">00256</a> <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">detail::tvec4<double></a> <a class="code" href="a00235.html#ga6f62aca8ddbdb3badf9d52885e7dcfb6" title="Vector of 4 double-precision floating-point numbers.">dvec4</a>;
|
||||
<a name="l00257"></a>00257
|
||||
<a name="l00261"></a><a class="code" href="a00235.html#gac47a6148fdae0fe40858fb357aa9e9c5">00261</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<double></a> <a class="code" href="a00235.html#gac47a6148fdae0fe40858fb357aa9e9c5" title="2 * 2 matrix of double-precision floating-point numbers.">dmat2</a>;
|
||||
<a name="l00262"></a>00262
|
||||
<a name="l00266"></a><a class="code" href="a00235.html#ga92c12ba0463edf4aa5d6d0e506591cf0">00266</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<double></a> <a class="code" href="a00235.html#ga92c12ba0463edf4aa5d6d0e506591cf0" title="3 * 3 matrix of double-precision floating-point numbers.">dmat3</a>;
|
||||
<a name="l00267"></a>00267
|
||||
<a name="l00271"></a><a class="code" href="a00235.html#ga5db20fe7521b2e5bfa67a3131bdd0623">00271</a> <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<double></a> <a class="code" href="a00235.html#ga5db20fe7521b2e5bfa67a3131bdd0623" title="4 * 4 matrix of double-precision floating-point numbers.">dmat4</a>;
|
||||
<a name="l00272"></a>00272
|
||||
<a name="l00276"></a><a class="code" href="a00235.html#ga154eeba579bb2792509d4f68d7269116">00276</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<double></a> <a class="code" href="a00235.html#ga154eeba579bb2792509d4f68d7269116" title="2 * 2 matrix of double-precision floating-point numbers.">dmat2x2</a>;
|
||||
<a name="l00277"></a>00277
|
||||
<a name="l00281"></a><a class="code" href="a00235.html#ga6722002d2b3591b9617696009cb92d7d">00281</a> <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3<double></a> <a class="code" href="a00235.html#ga6722002d2b3591b9617696009cb92d7d" title="2 * 3 matrix of double-precision floating-point numbers.">dmat2x3</a>;
|
||||
<a name="l00282"></a>00282
|
||||
<a name="l00286"></a><a class="code" href="a00235.html#ga839ae2cf7dd0064e97529dfe10017ad2">00286</a> <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4<double></a> <a class="code" href="a00235.html#ga839ae2cf7dd0064e97529dfe10017ad2" title="2 * 4 matrix of double-precision floating-point numbers.">dmat2x4</a>;
|
||||
<a name="l00287"></a>00287
|
||||
<a name="l00291"></a><a class="code" href="a00235.html#ga94c2f5b05e0be254d81b53fdea6602d7">00291</a> <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2<double></a> <a class="code" href="a00235.html#ga94c2f5b05e0be254d81b53fdea6602d7" title="3 * 2 matrix of double-precision floating-point numbers.">dmat3x2</a>;
|
||||
<a name="l00292"></a>00292
|
||||
<a name="l00296"></a><a class="code" href="a00235.html#gaf72ab1d43dc5d437d2c9ea53ea038e3b">00296</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<double></a> <a class="code" href="a00235.html#gaf72ab1d43dc5d437d2c9ea53ea038e3b" title="3 * 3 matrix of double-precision floating-point numbers.">dmat3x3</a>;
|
||||
<a name="l00297"></a>00297
|
||||
<a name="l00301"></a><a class="code" href="a00235.html#ga04f2a951763897578c4c08e61989f1d1">00301</a> <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4<double></a> <a class="code" href="a00235.html#ga04f2a951763897578c4c08e61989f1d1" title="3 * 4 matrix of double-precision floating-point numbers.">dmat3x4</a>;
|
||||
<a name="l00302"></a>00302
|
||||
<a name="l00306"></a><a class="code" href="a00235.html#ga1c381a2410bbabe8464254b1ff76173c">00306</a> <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2<double></a> <a class="code" href="a00235.html#ga1c381a2410bbabe8464254b1ff76173c" title="4 * 2 matrix of double-precision floating-point numbers.">dmat4x2</a>;
|
||||
<a name="l00307"></a>00307
|
||||
<a name="l00311"></a><a class="code" href="a00235.html#ga250ca1110cb3df02e122705e0df801f3">00311</a> <span class="keyword">typedef</span> <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">detail::tmat4x3<double></a> <a class="code" href="a00235.html#ga250ca1110cb3df02e122705e0df801f3" title="4 * 3 matrix of double-precision floating-point numbers.">dmat4x3</a>;
|
||||
<a name="l00312"></a>00312
|
||||
<a name="l00316"></a><a class="code" href="a00235.html#gae2cf7fdac82b788e8f4d4145f6c963f1">00316</a> <span class="keyword">typedef</span> <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<double></a> <a class="code" href="a00235.html#gae2cf7fdac82b788e8f4d4145f6c963f1" title="4 * 4 matrix of double-precision floating-point numbers.">dmat4x4</a>;
|
||||
<a name="l00317"></a>00317
|
||||
<a name="l00318"></a>00318 }<span class="comment">//namespace type</span>
|
||||
<a name="l00319"></a>00319 }<span class="comment">//namespace core</span>
|
||||
<a name="l00320"></a>00320 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00321"></a>00321
|
||||
<a name="l00322"></a>00322 <span class="preprocessor">#endif//glm_core_type</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,106 +0,0 @@
|
||||
<!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>type_float.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">type_float.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-08-22</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-08</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/type_float.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_type_float</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_type_float</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "type_half.hpp"</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#include "setup.hpp"</span>
|
||||
<a name="l00015"></a>00015
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>glm
|
||||
<a name="l00017"></a>00017 {
|
||||
<a name="l00018"></a>00018 <span class="keyword">namespace </span>detail
|
||||
<a name="l00019"></a>00019 {
|
||||
<a name="l00020"></a>00020 GLM_DETAIL_IS_FLOAT(detail::thalf);
|
||||
<a name="l00021"></a>00021 GLM_DETAIL_IS_FLOAT(<span class="keywordtype">float</span>);
|
||||
<a name="l00022"></a>00022 GLM_DETAIL_IS_FLOAT(<span class="keywordtype">double</span>);
|
||||
<a name="l00023"></a>00023 GLM_DETAIL_IS_FLOAT(<span class="keywordtype">long</span> <span class="keywordtype">double</span>);
|
||||
<a name="l00024"></a>00024 }
|
||||
<a name="l00025"></a>00025 <span class="comment">//namespace detail</span>
|
||||
<a name="l00026"></a>00026
|
||||
<a name="l00027"></a>00027 <span class="keyword">namespace </span>core{
|
||||
<a name="l00028"></a>00028 <span class="keyword">namespace </span>type{
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00030"></a><a class="code" href="a00156.html">00030</a> <span class="keyword">namespace </span>precision
|
||||
<a name="l00031"></a>00031 {
|
||||
<a name="l00032"></a>00032 <span class="preprocessor">#ifdef GLM_USE_HALF_SCALAR</span>
|
||||
<a name="l00033"></a>00033 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00009.html" title="16-bit floating point type.">detail::thalf</a> lowp_float_t;
|
||||
<a name="l00034"></a>00034 <span class="preprocessor">#else//GLM_USE_HALF_SCALAR</span>
|
||||
<a name="l00035"></a>00035 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keywordtype">float</span> lowp_float_t;
|
||||
<a name="l00036"></a>00036 <span class="preprocessor">#endif//GLM_USE_HALF_SCALAR</span>
|
||||
<a name="l00037"></a>00037 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keywordtype">float</span> mediump_float_t;
|
||||
<a name="l00038"></a>00038 <span class="keyword">typedef</span> <span class="keywordtype">double</span> highp_float_t;
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00044"></a><a class="code" href="a00236.html#ga358d69e11b1c0f6c7c469e0d39ab7fd1">00044</a> <span class="keyword">typedef</span> lowp_float_t <a class="code" href="a00236.html#ga358d69e11b1c0f6c7c469e0d39ab7fd1" title="Low precision floating-point numbers.">lowp_float</a>;
|
||||
<a name="l00049"></a><a class="code" href="a00236.html#ga280c68f537f4b1e03a00b23e62573b98">00049</a> <span class="keyword">typedef</span> mediump_float_t <a class="code" href="a00236.html#ga280c68f537f4b1e03a00b23e62573b98" title="Medium precision floating-point numbers.">mediump_float</a>;
|
||||
<a name="l00054"></a><a class="code" href="a00236.html#ga6e95694987ba35af6f736638be39626a">00054</a> <span class="keyword">typedef</span> highp_float_t <a class="code" href="a00236.html#ga6e95694987ba35af6f736638be39626a" title="High precision floating-point numbers.">highp_float</a>;
|
||||
<a name="l00055"></a>00055 }
|
||||
<a name="l00056"></a>00056 <span class="comment">//namespace precision</span>
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00058"></a>00058 <span class="preprocessor">#if(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))</span>
|
||||
<a name="l00059"></a>00059 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00236.html#ga280c68f537f4b1e03a00b23e62573b98" title="Medium precision floating-point numbers.">precision::mediump_float</a> float_t;
|
||||
<a name="l00060"></a>00060 <span class="preprocessor">#elif(defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))</span>
|
||||
<a name="l00061"></a>00061 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00236.html#ga6e95694987ba35af6f736638be39626a" title="High precision floating-point numbers.">precision::highp_float</a> float_t;
|
||||
<a name="l00062"></a>00062 <span class="preprocessor">#elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))</span>
|
||||
<a name="l00063"></a>00063 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00236.html#ga280c68f537f4b1e03a00b23e62573b98" title="Medium precision floating-point numbers.">precision::mediump_float</a> float_t;
|
||||
<a name="l00064"></a>00064 <span class="preprocessor">#elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT))</span>
|
||||
<a name="l00065"></a>00065 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00236.html#ga358d69e11b1c0f6c7c469e0d39ab7fd1" title="Low precision floating-point numbers.">precision::lowp_float</a> float_t;
|
||||
<a name="l00066"></a>00066 <span class="preprocessor">#else</span>
|
||||
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor"># error "GLM error: multiple default precision requested for floating-point types"</span>
|
||||
<a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00069"></a>00069 <span class="preprocessor"></span>
|
||||
<a name="l00070"></a>00070 }<span class="comment">//namespace type</span>
|
||||
<a name="l00071"></a>00071 }<span class="comment">//namespace core</span>
|
||||
<a name="l00072"></a>00072 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00073"></a>00073
|
||||
<a name="l00074"></a>00074 <span class="preprocessor">#endif//glm_core_type_float</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,120 +0,0 @@
|
||||
<!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>type_half.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">type_half.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-08-17</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-17</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/type_half.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_type_half</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_type_half</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include <cstdlib></span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>detail
|
||||
<a name="l00017"></a>00017 {
|
||||
<a name="l00018"></a>00018 <span class="keyword">typedef</span> <span class="keywordtype">short</span> hdata;
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="keywordtype">float</span> toFloat32(hdata value);
|
||||
<a name="l00021"></a>00021 hdata toFloat16(<span class="keywordtype">float</span> <span class="keyword">const</span> & value);
|
||||
<a name="l00022"></a>00022
|
||||
<a name="l00025"></a><a class="code" href="a00009.html">00025</a> <span class="keyword">class </span><a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a>
|
||||
<a name="l00026"></a>00026 {
|
||||
<a name="l00027"></a>00027 <span class="keyword">public</span>:
|
||||
<a name="l00028"></a>00028 <span class="comment">// Constructors</span>
|
||||
<a name="l00029"></a>00029 GLM_FUNC_DECL <a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a>();
|
||||
<a name="l00030"></a>00030 GLM_FUNC_DECL thalf(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00032"></a>00032 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00033"></a>00033 GLM_FUNC_DECL <span class="keyword">explicit</span> thalf(U <span class="keyword">const</span> & s);
|
||||
<a name="l00034"></a>00034
|
||||
<a name="l00035"></a>00035 <span class="comment">// Cast</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//operator float();</span>
|
||||
<a name="l00037"></a>00037 GLM_FUNC_DECL operator float() <span class="keyword">const</span>;
|
||||
<a name="l00038"></a>00038 <span class="comment">//operator double();</span>
|
||||
<a name="l00039"></a>00039 <span class="comment">//operator double() const;</span>
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00041"></a>00041 <span class="comment">// Unary updatable operators</span>
|
||||
<a name="l00042"></a>00042 GLM_FUNC_DECL thalf& operator= (thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00043"></a>00043 GLM_FUNC_DECL thalf& operator+=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00044"></a>00044 GLM_FUNC_DECL thalf& operator-=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00045"></a>00045 GLM_FUNC_DECL thalf& operator*=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00046"></a>00046 GLM_FUNC_DECL thalf& operator/=(thalf <span class="keyword">const</span> & s);
|
||||
<a name="l00047"></a>00047 GLM_FUNC_DECL thalf& operator++();
|
||||
<a name="l00048"></a>00048 GLM_FUNC_DECL thalf& operator--();
|
||||
<a name="l00049"></a>00049
|
||||
<a name="l00050"></a>00050 GLM_FUNC_DECL <span class="keywordtype">float</span> toFloat()<span class="keyword"> const</span>{<span class="keywordflow">return</span> toFloat32(data);}
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 GLM_FUNC_DECL hdata _data()<span class="keyword"> const</span>{<span class="keywordflow">return</span> data;}
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00054"></a>00054 <span class="keyword">private</span>:
|
||||
<a name="l00055"></a>00055 hdata data;
|
||||
<a name="l00056"></a>00056 };
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00058"></a>00058 <a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> operator+ (<a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> <span class="keyword">const</span> & s1, <a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> <span class="keyword">const</span> & s2);
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00060"></a>00060 <a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> operator- (<a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> <span class="keyword">const</span> & s1, <a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> <span class="keyword">const</span> & s2);
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00062"></a>00062 <a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> operator* (<a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> <span class="keyword">const</span> & s1, <a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> <span class="keyword">const</span> & s2);
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064 <a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> operator/ (<a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> <span class="keyword">const</span> & s1, <a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> <span class="keyword">const</span> & s2);
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00066"></a>00066 <span class="comment">// Unary constant operators</span>
|
||||
<a name="l00067"></a>00067 <a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> operator- (<a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> <span class="keyword">const</span> & s);
|
||||
<a name="l00068"></a>00068
|
||||
<a name="l00069"></a>00069 <a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> operator-- (<a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> <span class="keyword">const</span> & s, <span class="keywordtype">int</span>);
|
||||
<a name="l00070"></a>00070
|
||||
<a name="l00071"></a>00071 <a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> operator++ (<a class="code" href="a00009.html" title="16-bit floating point type.">thalf</a> <span class="keyword">const</span> & s, <span class="keywordtype">int</span>);
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00073"></a>00073 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00074"></a>00074 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00075"></a>00075
|
||||
<a name="l00076"></a>00076 <span class="preprocessor">#include "type_half.inl"</span>
|
||||
<a name="l00077"></a>00077
|
||||
<a name="l00078"></a>00078 <span class="preprocessor">#endif//glm_core_type_half</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,127 +0,0 @@
|
||||
<!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>type_int.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">type_int.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2008-08-22</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2008-09-17</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/type_int.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_type_int</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_type_int</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "setup.hpp"</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#include "_detail.hpp"</span>
|
||||
<a name="l00015"></a>00015
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00017"></a>00017 <span class="keyword">namespace </span>detail
|
||||
<a name="l00018"></a>00018 {
|
||||
<a name="l00019"></a>00019 <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">short</span> lowp_int_t;
|
||||
<a name="l00020"></a>00020 <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">int</span> mediump_int_t;
|
||||
<a name="l00021"></a>00021 <span class="keyword">typedef</span> sint64 highp_int_t;
|
||||
<a name="l00022"></a>00022
|
||||
<a name="l00023"></a>00023 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> lowp_uint_t;
|
||||
<a name="l00024"></a>00024 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mediump_uint_t;
|
||||
<a name="l00025"></a>00025 <span class="keyword">typedef</span> <a class="code" href="a00246.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a> highp_uint_t;
|
||||
<a name="l00026"></a>00026
|
||||
<a name="l00027"></a>00027 GLM_DETAIL_IS_INT(<span class="keywordtype">signed</span> <span class="keywordtype">char</span>);
|
||||
<a name="l00028"></a>00028 GLM_DETAIL_IS_INT(<span class="keywordtype">signed</span> <span class="keywordtype">short</span>);
|
||||
<a name="l00029"></a>00029 GLM_DETAIL_IS_INT(<span class="keywordtype">signed</span> <span class="keywordtype">int</span>);
|
||||
<a name="l00030"></a>00030 GLM_DETAIL_IS_INT(<span class="keywordtype">signed</span> <span class="keywordtype">long</span>);
|
||||
<a name="l00031"></a>00031 GLM_DETAIL_IS_INT(highp_int_t);
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00033"></a>00033 GLM_DETAIL_IS_UINT(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>);
|
||||
<a name="l00034"></a>00034 GLM_DETAIL_IS_UINT(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>);
|
||||
<a name="l00035"></a>00035 GLM_DETAIL_IS_UINT(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>);
|
||||
<a name="l00036"></a>00036 GLM_DETAIL_IS_UINT(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>);
|
||||
<a name="l00037"></a>00037 GLM_DETAIL_IS_UINT(highp_uint_t);
|
||||
<a name="l00038"></a>00038 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 <span class="keyword">namespace </span>core{
|
||||
<a name="l00041"></a>00041 <span class="keyword">namespace </span>type{
|
||||
<a name="l00042"></a>00042 <span class="keyword">namespace </span>precision
|
||||
<a name="l00043"></a>00043 {
|
||||
<a name="l00048"></a><a class="code" href="a00236.html#gad0fa1e32e8b3552ed63556eca51c620e">00048</a> <span class="keyword">typedef</span> detail::lowp_int_t <a class="code" href="a00236.html#gad0fa1e32e8b3552ed63556eca51c620e" title="Low precision signed integer.">lowp_int</a>;
|
||||
<a name="l00053"></a><a class="code" href="a00236.html#ga212ef8f883878cb7430228a279a7d866">00053</a> <span class="keyword">typedef</span> detail::mediump_int_t <a class="code" href="a00236.html#ga212ef8f883878cb7430228a279a7d866" title="Medium precision signed integer.">mediump_int</a>;
|
||||
<a name="l00058"></a><a class="code" href="a00236.html#gaaabe7eb044941ebf308b53a447d692dc">00058</a> <span class="keyword">typedef</span> detail::highp_int_t <a class="code" href="a00236.html#gaaabe7eb044941ebf308b53a447d692dc" title="High precision signed integer.">highp_int</a>;
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00064"></a><a class="code" href="a00236.html#ga25ebc60727fc8b4a1167665f9ecdca97">00064</a> <span class="keyword">typedef</span> detail::lowp_uint_t <a class="code" href="a00236.html#ga25ebc60727fc8b4a1167665f9ecdca97" title="Low precision unsigned integer.">lowp_uint</a>;
|
||||
<a name="l00069"></a><a class="code" href="a00236.html#ga0b7e01c52b9e5bf3369761b79b5f4f8e">00069</a> <span class="keyword">typedef</span> detail::mediump_uint_t <a class="code" href="a00236.html#ga0b7e01c52b9e5bf3369761b79b5f4f8e" title="Medium precision unsigned integer.">mediump_uint</a>;
|
||||
<a name="l00074"></a><a class="code" href="a00236.html#ga73e8a694d7fc69143cf25161d18d1dcf">00074</a> <span class="keyword">typedef</span> detail::highp_uint_t <a class="code" href="a00236.html#ga73e8a694d7fc69143cf25161d18d1dcf" title="High precision unsigned integer.">highp_uint</a>;
|
||||
<a name="l00075"></a>00075 }<span class="comment">//namespace precision</span>
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00077"></a>00077 <span class="preprocessor">#if(!defined(GLM_PRECISION_HIGHP_INT) && !defined(GLM_PRECISION_MEDIUMP_INT) && !defined(GLM_PRECISION_LOWP_INT))</span>
|
||||
<a name="l00078"></a>00078 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00236.html#ga212ef8f883878cb7430228a279a7d866" title="Medium precision signed integer.">precision::mediump_int</a> int_t;
|
||||
<a name="l00079"></a>00079 <span class="preprocessor">#elif(defined(GLM_PRECISION_HIGHP_INT) && !defined(GLM_PRECISION_MEDIUMP_INT) && !defined(GLM_PRECISION_LOWP_INT))</span>
|
||||
<a name="l00080"></a>00080 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00236.html#gaaabe7eb044941ebf308b53a447d692dc" title="High precision signed integer.">precision::highp_int</a> int_t;
|
||||
<a name="l00081"></a>00081 <span class="preprocessor">#elif(!defined(GLM_PRECISION_HIGHP_INT) && defined(GLM_PRECISION_MEDIUMP_INT) && !defined(GLM_PRECISION_LOWP_INT))</span>
|
||||
<a name="l00082"></a>00082 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00236.html#ga212ef8f883878cb7430228a279a7d866" title="Medium precision signed integer.">precision::mediump_int</a> int_t;
|
||||
<a name="l00083"></a>00083 <span class="preprocessor">#elif(!defined(GLM_PRECISION_HIGHP_INT) && !defined(GLM_PRECISION_MEDIUMP_INT) && defined(GLM_PRECISION_LOWP_INT))</span>
|
||||
<a name="l00084"></a>00084 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00236.html#gad0fa1e32e8b3552ed63556eca51c620e" title="Low precision signed integer.">precision::lowp_int</a> int_t;
|
||||
<a name="l00085"></a>00085 <span class="preprocessor">#else</span>
|
||||
<a name="l00086"></a>00086 <span class="preprocessor"></span><span class="preprocessor"># error "GLM error: multiple default precision requested for signed interger types"</span>
|
||||
<a name="l00087"></a>00087 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00088"></a>00088 <span class="preprocessor"></span>
|
||||
<a name="l00089"></a>00089 <span class="preprocessor">#if(!defined(GLM_PRECISION_HIGHP_UINT) && !defined(GLM_PRECISION_MEDIUMP_UINT) && !defined(GLM_PRECISION_LOWP_UINT))</span>
|
||||
<a name="l00090"></a>00090 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00236.html#ga0b7e01c52b9e5bf3369761b79b5f4f8e" title="Medium precision unsigned integer.">precision::mediump_uint</a> uint_t;
|
||||
<a name="l00091"></a>00091 <span class="preprocessor">#elif(defined(GLM_PRECISION_HIGHP_UINT) && !defined(GLM_PRECISION_MEDIUMP_UINT) && !defined(GLM_PRECISION_LOWP_UINT))</span>
|
||||
<a name="l00092"></a>00092 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00236.html#ga73e8a694d7fc69143cf25161d18d1dcf" title="High precision unsigned integer.">precision::highp_uint</a> uint_t;
|
||||
<a name="l00093"></a>00093 <span class="preprocessor">#elif(!defined(GLM_PRECISION_HIGHP_UINT) && defined(GLM_PRECISION_MEDIUMP_UINT) && !defined(GLM_PRECISION_LOWP_UINT))</span>
|
||||
<a name="l00094"></a>00094 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00236.html#ga0b7e01c52b9e5bf3369761b79b5f4f8e" title="Medium precision unsigned integer.">precision::mediump_uint</a> uint_t;
|
||||
<a name="l00095"></a>00095 <span class="preprocessor">#elif(!defined(GLM_PRECISION_HIGHP_UINT) && !defined(GLM_PRECISION_MEDIUMP_UINT) && defined(GLM_PRECISION_LOWP_UINT))</span>
|
||||
<a name="l00096"></a>00096 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00236.html#ga25ebc60727fc8b4a1167665f9ecdca97" title="Low precision unsigned integer.">precision::lowp_uint</a> uint_t;
|
||||
<a name="l00097"></a>00097 <span class="preprocessor">#else</span>
|
||||
<a name="l00098"></a>00098 <span class="preprocessor"></span><span class="preprocessor"># error "GLM error: multiple default precision requested for unsigned interger types"</span>
|
||||
<a name="l00099"></a>00099 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
<a name="l00100"></a>00100 <span class="preprocessor"></span>
|
||||
<a name="l00103"></a><a class="code" href="a00155.html#a4d16da297112d05af72fc456a1c4f386">00103</a> <span class="keyword">typedef</span> uint_t <a class="code" href="a00155.html#a4d16da297112d05af72fc456a1c4f386" title="Unsigned integer.">uint</a>;
|
||||
<a name="l00104"></a>00104
|
||||
<a name="l00105"></a>00105 }<span class="comment">//namespace type</span>
|
||||
<a name="l00106"></a>00106 }<span class="comment">//namespace core</span>
|
||||
<a name="l00107"></a>00107 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00108"></a>00108
|
||||
<a name="l00109"></a>00109 <span class="preprocessor">#endif//glm_core_type_int</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,100 +0,0 @@
|
||||
<!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>type_mat.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">type_mat.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2010-01-26</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-01-26</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/type_mat.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_type_mat</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_type_mat</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "type_gentype.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>detail
|
||||
<a name="l00017"></a>00017 {
|
||||
<a name="l00018"></a>00018 <span class="comment">//template </span>
|
||||
<a name="l00019"></a>00019 <span class="comment">//<</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">// typename T, </span>
|
||||
<a name="l00021"></a>00021 <span class="comment">// template <typename> class C, </span>
|
||||
<a name="l00022"></a>00022 <span class="comment">// template <typename> class R</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">//></span>
|
||||
<a name="l00024"></a>00024 <span class="comment">//struct matType</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">//{</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">// enum ctor{null};</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">// typedef T value_type;</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">// typedef std::size_t size_type;</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">// typedef C<T> col_type;</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">// typedef R<T> row_type;</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">// static size_type const col_size;</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">// static size_type const row_size;</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">//};</span>
|
||||
<a name="l00034"></a>00034
|
||||
<a name="l00035"></a>00035 <span class="comment">//template </span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//<</span>
|
||||
<a name="l00037"></a>00037 <span class="comment">// typename T, </span>
|
||||
<a name="l00038"></a>00038 <span class="comment">// template <typename> class C, </span>
|
||||
<a name="l00039"></a>00039 <span class="comment">// template <typename> class R</span>
|
||||
<a name="l00040"></a>00040 <span class="comment">//></span>
|
||||
<a name="l00041"></a>00041 <span class="comment">//typename matType<T, C, R>::size_type const </span>
|
||||
<a name="l00042"></a>00042 <span class="comment">//matType<T, C, R>::col_size = matType<T, C, R>::col_type::value_size;</span>
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00044"></a>00044 <span class="comment">//template </span>
|
||||
<a name="l00045"></a>00045 <span class="comment">//<</span>
|
||||
<a name="l00046"></a>00046 <span class="comment">// typename T, </span>
|
||||
<a name="l00047"></a>00047 <span class="comment">// template <typename> class C, </span>
|
||||
<a name="l00048"></a>00048 <span class="comment">// template <typename> class R</span>
|
||||
<a name="l00049"></a>00049 <span class="comment">//></span>
|
||||
<a name="l00050"></a>00050 <span class="comment">//typename matType<T, C, R>::size_type const </span>
|
||||
<a name="l00051"></a>00051 <span class="comment">//matType<T, C, R>::row_size = matType<T, C, R>::row_type::value_size;</span>
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00053"></a>00053 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00054"></a>00054 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056 <span class="preprocessor">#endif//glm_core_type_mat</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,294 +0,0 @@
|
||||
<!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>type_mat2x2.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">type_mat2x2.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-01-27</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-11</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/type_mat2x2.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_type_mat2x2</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_type_mat2x2</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "type_mat.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>detail
|
||||
<a name="l00017"></a>00017 {
|
||||
<a name="l00018"></a>00018 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec1;
|
||||
<a name="l00019"></a>00019 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec2;
|
||||
<a name="l00020"></a>00020 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec3;
|
||||
<a name="l00021"></a>00021 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec4;
|
||||
<a name="l00022"></a>00022 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x2;
|
||||
<a name="l00023"></a>00023 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x3;
|
||||
<a name="l00024"></a>00024 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x4;
|
||||
<a name="l00025"></a>00025 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x2;
|
||||
<a name="l00026"></a>00026 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x3;
|
||||
<a name="l00027"></a>00027 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x4;
|
||||
<a name="l00028"></a>00028 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x2;
|
||||
<a name="l00029"></a>00029 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x3;
|
||||
<a name="l00030"></a>00030 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x4;
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00034"></a>00034 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00035"></a><a class="code" href="a00010.html">00035</a> <span class="keyword">struct </span><a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2</a>
|
||||
<a name="l00036"></a>00036 {
|
||||
<a name="l00037"></a>00037 <span class="keyword">enum</span> ctor{null};
|
||||
<a name="l00038"></a>00038 <span class="keyword">typedef</span> T value_type;
|
||||
<a name="l00039"></a>00039 <span class="keyword">typedef</span> std::size_t size_type;
|
||||
<a name="l00040"></a>00040 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<T></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a>;
|
||||
<a name="l00041"></a>00041 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<T></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">row_type</a>;
|
||||
<a name="l00042"></a>00042 <span class="keyword">static</span> GLM_FUNC_DECL size_type col_size();
|
||||
<a name="l00043"></a>00043 <span class="keyword">static</span> GLM_FUNC_DECL size_type row_size();
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">type</a>;
|
||||
<a name="l00046"></a>00046 <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">transpose_type</a>;
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00048"></a>00048 <span class="keyword">public</span>:
|
||||
<a name="l00049"></a>00049 <span class="comment">// Implementation detail</span>
|
||||
<a name="l00050"></a>00050 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> _inverse() <span class="keyword">const</span>;
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="keyword">private</span>:
|
||||
<a name="l00054"></a>00054 <span class="comment">// Data </span>
|
||||
<a name="l00055"></a>00055 <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> value[2];
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00057"></a>00057 <span class="keyword">public</span>:
|
||||
<a name="l00059"></a>00059 <span class="comment">// Constructors</span>
|
||||
<a name="l00060"></a>00060 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2</a>();
|
||||
<a name="l00061"></a>00061 GLM_FUNC_DECL tmat2x2(
|
||||
<a name="l00062"></a>00062 tmat2x2 <span class="keyword">const</span> & m);
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(
|
||||
<a name="l00065"></a>00065 ctor Null);
|
||||
<a name="l00066"></a>00066 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(
|
||||
<a name="l00067"></a>00067 value_type <span class="keyword">const</span> & x);
|
||||
<a name="l00068"></a>00068 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(
|
||||
<a name="l00069"></a>00069 value_type <span class="keyword">const</span> & x1, value_type <span class="keyword">const</span> & y1,
|
||||
<a name="l00070"></a>00070 value_type <span class="keyword">const</span> & x2, value_type <span class="keyword">const</span> & y2);
|
||||
<a name="l00071"></a>00071 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(
|
||||
<a name="l00072"></a>00072 <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> <span class="keyword">const</span> & v1,
|
||||
<a name="l00073"></a>00073 <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> <span class="keyword">const</span> & v2);
|
||||
<a name="l00074"></a>00074
|
||||
<a name="l00076"></a>00076 <span class="comment">// Conversions</span>
|
||||
<a name="l00077"></a>00077 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00078"></a>00078 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(
|
||||
<a name="l00079"></a>00079 U <span class="keyword">const</span> & x);
|
||||
<a name="l00080"></a>00080
|
||||
<a name="l00081"></a>00081 <span class="keyword">template</span> <<span class="keyword">typename</span> U, <span class="keyword">typename</span> V, <span class="keyword">typename</span> M, <span class="keyword">typename</span> N>
|
||||
<a name="l00082"></a>00082 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(
|
||||
<a name="l00083"></a>00083 U <span class="keyword">const</span> & x1, V <span class="keyword">const</span> & y1,
|
||||
<a name="l00084"></a>00084 M <span class="keyword">const</span> & x2, N <span class="keyword">const</span> & y2);
|
||||
<a name="l00085"></a>00085
|
||||
<a name="l00086"></a>00086 <span class="keyword">template</span> <<span class="keyword">typename</span> U, <span class="keyword">typename</span> V>
|
||||
<a name="l00087"></a>00087 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(
|
||||
<a name="l00088"></a>00088 <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<U></a> <span class="keyword">const</span> & v1,
|
||||
<a name="l00089"></a>00089 <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<V></a> <span class="keyword">const</span> & v2);
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00092"></a>00092 <span class="comment">// Matrix conversions</span>
|
||||
<a name="l00093"></a>00093 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00094"></a>00094 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(<a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00095"></a>00095
|
||||
<a name="l00096"></a>00096 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(<a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00097"></a>00097 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">tmat4x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00098"></a>00098 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(<a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00099"></a>00099 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(<a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00100"></a>00100 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(<a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00101"></a>00101 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(<a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00102"></a>00102 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(<a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00103"></a>00103 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x2(<a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">tmat4x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00104"></a>00104
|
||||
<a name="l00106"></a>00106 <span class="comment">// Accesses</span>
|
||||
<a name="l00107"></a>00107
|
||||
<a name="l00108"></a>00108 GLM_FUNC_DECL <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> & operator[](size_type i);
|
||||
<a name="l00109"></a>00109 GLM_FUNC_DECL <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> <span class="keyword">const</span> & operator[](size_type i) <span class="keyword">const</span>;
|
||||
<a name="l00110"></a>00110
|
||||
<a name="l00111"></a>00111 <span class="comment">// Unary updatable operators</span>
|
||||
<a name="l00112"></a>00112 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> & operator=(<a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00113"></a>00113 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00114"></a>00114 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> & operator=(<a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00115"></a>00115 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00116"></a>00116 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> & operator+=(U <span class="keyword">const</span> & s);
|
||||
<a name="l00117"></a>00117 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00118"></a>00118 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> & operator+=(<a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00119"></a>00119 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00120"></a>00120 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> & operator-=(U <span class="keyword">const</span> & s);
|
||||
<a name="l00121"></a>00121 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00122"></a>00122 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> & operator-=(<a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00123"></a>00123 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00124"></a>00124 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> & operator*=(U <span class="keyword">const</span> & s);
|
||||
<a name="l00125"></a>00125 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00126"></a>00126 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> & operator*=(<a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00127"></a>00127 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00128"></a>00128 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> & operator/=(U <span class="keyword">const</span> & s);
|
||||
<a name="l00129"></a>00129 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00130"></a>00130 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> & operator/=(<a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00131"></a>00131 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> & operator++();
|
||||
<a name="l00132"></a>00132 GLM_FUNC_DECL <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> & operator--();
|
||||
<a name="l00133"></a>00133 };
|
||||
<a name="l00134"></a>00134
|
||||
<a name="l00135"></a>00135 <span class="comment">// Binary operators</span>
|
||||
<a name="l00136"></a>00136 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00137"></a>00137 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator+ (
|
||||
<a name="l00138"></a>00138 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00139"></a>00139 <span class="keyword">typename</span> tmat2x2<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00140"></a>00140
|
||||
<a name="l00141"></a>00141 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00142"></a>00142 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator+ (
|
||||
<a name="l00143"></a>00143 <span class="keyword">typename</span> tmat2x2<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00144"></a>00144 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00145"></a>00145
|
||||
<a name="l00146"></a>00146 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00147"></a>00147 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator+ (
|
||||
<a name="l00148"></a>00148 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00149"></a>00149 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00150"></a>00150
|
||||
<a name="l00151"></a>00151 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00152"></a>00152 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator- (
|
||||
<a name="l00153"></a>00153 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00154"></a>00154 <span class="keyword">typename</span> tmat2x2<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00155"></a>00155
|
||||
<a name="l00156"></a>00156 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00157"></a>00157 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator- (
|
||||
<a name="l00158"></a>00158 <span class="keyword">typename</span> tmat2x2<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00159"></a>00159 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00160"></a>00160
|
||||
<a name="l00161"></a>00161 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00162"></a>00162 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator- (
|
||||
<a name="l00163"></a>00163 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00164"></a>00164 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00165"></a>00165
|
||||
<a name="l00166"></a>00166 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00167"></a>00167 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator* (
|
||||
<a name="l00168"></a>00168 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00169"></a>00169 <span class="keyword">typename</span> tmat2x2<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00170"></a>00170
|
||||
<a name="l00171"></a>00171 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00172"></a>00172 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator* (
|
||||
<a name="l00173"></a>00173 <span class="keyword">typename</span> tmat2x2<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00174"></a>00174 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00175"></a>00175
|
||||
<a name="l00176"></a>00176 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00177"></a>00177 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat2x2<T>::col_type</a> operator* (
|
||||
<a name="l00178"></a>00178 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00179"></a>00179 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat2x2<T>::row_type</a> <span class="keyword">const</span> & v);
|
||||
<a name="l00180"></a>00180
|
||||
<a name="l00181"></a>00181 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00182"></a>00182 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat2x2<T>::row_type</a> operator* (
|
||||
<a name="l00183"></a>00183 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat2x2<T>::col_type</a> <span class="keyword">const</span> & v,
|
||||
<a name="l00184"></a>00184 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00185"></a>00185
|
||||
<a name="l00186"></a>00186 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00187"></a>00187 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator* (
|
||||
<a name="l00188"></a>00188 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00189"></a>00189 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00190"></a>00190
|
||||
<a name="l00191"></a>00191 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00192"></a>00192 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator/ (
|
||||
<a name="l00193"></a>00193 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00194"></a>00194 <span class="keyword">typename</span> tmat2x2<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00195"></a>00195
|
||||
<a name="l00196"></a>00196 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00197"></a>00197 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator/ (
|
||||
<a name="l00198"></a>00198 <span class="keyword">typename</span> tmat2x2<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00199"></a>00199 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00200"></a>00200
|
||||
<a name="l00201"></a>00201 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00202"></a>00202 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat2x2<T>::col_type</a> operator/ (
|
||||
<a name="l00203"></a>00203 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00204"></a>00204 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat2x2<T>::row_type</a> <span class="keyword">const</span> & v);
|
||||
<a name="l00205"></a>00205
|
||||
<a name="l00206"></a>00206 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00207"></a>00207 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat2x2<T>::row_type</a> operator/ (
|
||||
<a name="l00208"></a>00208 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat2x2<T>::col_type</a> <span class="keyword">const</span> & v,
|
||||
<a name="l00209"></a>00209 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00210"></a>00210
|
||||
<a name="l00211"></a>00211 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00212"></a>00212 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator/ (
|
||||
<a name="l00213"></a>00213 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00214"></a>00214 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00215"></a>00215
|
||||
<a name="l00216"></a>00216 <span class="comment">// Unary constant operators</span>
|
||||
<a name="l00217"></a>00217 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00218"></a>00218 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> operator- (
|
||||
<a name="l00219"></a>00219 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00220"></a>00220
|
||||
<a name="l00221"></a>00221 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00222"></a>00222 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> operator-- (
|
||||
<a name="l00223"></a>00223 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00224"></a>00224 <span class="keywordtype">int</span>);
|
||||
<a name="l00225"></a>00225
|
||||
<a name="l00226"></a>00226 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00227"></a>00227 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> operator++ (
|
||||
<a name="l00228"></a>00228 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00229"></a>00229 <span class="keywordtype">int</span>);
|
||||
<a name="l00230"></a>00230 } <span class="comment">//namespace detail</span>
|
||||
<a name="l00231"></a>00231
|
||||
<a name="l00232"></a>00232 <span class="keyword">namespace </span>core{
|
||||
<a name="l00233"></a>00233 <span class="keyword">namespace </span>type{
|
||||
<a name="l00234"></a>00234 <span class="keyword">namespace </span>precision
|
||||
<a name="l00235"></a>00235 {
|
||||
<a name="l00240"></a><a class="code" href="a00236.html#gaee10b4a3cac178528f8e56c90313094a">00240</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<lowp_float></a> <a class="code" href="a00236.html#gaee10b4a3cac178528f8e56c90313094a" title="2 columns of 2 components matrix of low precision floating-point numbers.">lowp_mat2</a>;
|
||||
<a name="l00241"></a>00241
|
||||
<a name="l00246"></a><a class="code" href="a00236.html#ga42f1426987103b15613671b323e90e5c">00246</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<mediump_float></a> <a class="code" href="a00236.html#ga42f1426987103b15613671b323e90e5c" title="2 columns of 2 components matrix of medium precision floating-point numbers.">mediump_mat2</a>;
|
||||
<a name="l00247"></a>00247
|
||||
<a name="l00252"></a><a class="code" href="a00236.html#gaeedb9e4f01fefcd5a47356b476b6890c">00252</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<highp_float></a> <a class="code" href="a00236.html#gaeedb9e4f01fefcd5a47356b476b6890c" title="2 columns of 2 components matrix of high precision floating-point numbers.">highp_mat2</a>;
|
||||
<a name="l00253"></a>00253
|
||||
<a name="l00258"></a><a class="code" href="a00236.html#ga8b49c3aa6665011440c32c281b2032c0">00258</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<lowp_float></a> <a class="code" href="a00236.html#ga8b49c3aa6665011440c32c281b2032c0" title="2 columns of 2 components matrix of low precision floating-point numbers.">lowp_mat2x2</a>;
|
||||
<a name="l00259"></a>00259
|
||||
<a name="l00264"></a><a class="code" href="a00236.html#gaa5970a6f98990c15b7a3be7cc7b79f4f">00264</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<mediump_float></a> <a class="code" href="a00236.html#gaa5970a6f98990c15b7a3be7cc7b79f4f" title="2 columns of 2 components matrix of medium precision floating-point numbers.">mediump_mat2x2</a>;
|
||||
<a name="l00265"></a>00265
|
||||
<a name="l00270"></a><a class="code" href="a00236.html#ga9aa0c5dce81439aa15a0d5b5e5006d81">00270</a> <span class="keyword">typedef</span> <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<highp_float></a> <a class="code" href="a00236.html#ga9aa0c5dce81439aa15a0d5b5e5006d81" title="2 columns of 2 components matrix of high precision floating-point numbers.">highp_mat2x2</a>;
|
||||
<a name="l00271"></a>00271
|
||||
<a name="l00272"></a>00272 }<span class="comment">//namespace precision</span>
|
||||
<a name="l00273"></a>00273 }<span class="comment">//namespace type</span>
|
||||
<a name="l00274"></a>00274 }<span class="comment">//namespace core</span>
|
||||
<a name="l00275"></a>00275 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00276"></a>00276
|
||||
<a name="l00277"></a>00277 <span class="preprocessor">#ifndef GLM_EXTERNAL_TEMPLATE</span>
|
||||
<a name="l00278"></a>00278 <span class="preprocessor"></span><span class="preprocessor">#include "type_mat2x2.inl"</span>
|
||||
<a name="l00279"></a>00279 <span class="preprocessor">#endif</span>
|
||||
<a name="l00280"></a>00280 <span class="preprocessor"></span>
|
||||
<a name="l00281"></a>00281 <span class="preprocessor">#endif //glm_core_type_mat2x2</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,255 +0,0 @@
|
||||
<!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>type_mat2x3.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">type_mat2x3.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2006-10-01</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-03</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/type_mat2x3.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_type_mat2x3</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_type_mat2x3</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "type_mat.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>detail
|
||||
<a name="l00017"></a>00017 {
|
||||
<a name="l00018"></a>00018 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec1;
|
||||
<a name="l00019"></a>00019 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec2;
|
||||
<a name="l00020"></a>00020 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec3;
|
||||
<a name="l00021"></a>00021 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec4;
|
||||
<a name="l00022"></a>00022 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x2;
|
||||
<a name="l00023"></a>00023 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x3;
|
||||
<a name="l00024"></a>00024 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x4;
|
||||
<a name="l00025"></a>00025 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x2;
|
||||
<a name="l00026"></a>00026 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x3;
|
||||
<a name="l00027"></a>00027 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x4;
|
||||
<a name="l00028"></a>00028 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x2;
|
||||
<a name="l00029"></a>00029 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x3;
|
||||
<a name="l00030"></a>00030 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x4;
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00034"></a>00034 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00035"></a><a class="code" href="a00011.html">00035</a> <span class="keyword">struct </span><a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3</a>
|
||||
<a name="l00036"></a>00036 {
|
||||
<a name="l00037"></a>00037 <span class="keyword">enum</span> ctor{null};
|
||||
<a name="l00038"></a>00038 <span class="keyword">typedef</span> T value_type;
|
||||
<a name="l00039"></a>00039 <span class="keyword">typedef</span> std::size_t size_type;
|
||||
<a name="l00040"></a>00040 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tvec3<T></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">col_type</a>;
|
||||
<a name="l00041"></a>00041 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<T></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">row_type</a>;
|
||||
<a name="l00042"></a>00042 <span class="keyword">static</span> GLM_FUNC_DECL size_type col_size();
|
||||
<a name="l00043"></a>00043 <span class="keyword">static</span> GLM_FUNC_DECL size_type row_size();
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">type</a>;
|
||||
<a name="l00046"></a>00046 <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">transpose_type</a>;
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00048"></a>00048 <span class="keyword">private</span>:
|
||||
<a name="l00049"></a>00049 <span class="comment">// Data </span>
|
||||
<a name="l00050"></a>00050 <a class="code" href="a00021.html" title="Basic 3D vector type.">col_type</a> value[2];
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="keyword">public</span>:
|
||||
<a name="l00053"></a>00053 <span class="comment">// Constructors</span>
|
||||
<a name="l00054"></a>00054 GLM_FUNC_DECL <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3</a>();
|
||||
<a name="l00055"></a>00055 GLM_FUNC_DECL tmat2x3(tmat2x3 <span class="keyword">const</span> & m);
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00057"></a>00057 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(
|
||||
<a name="l00058"></a>00058 ctor);
|
||||
<a name="l00059"></a>00059 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(
|
||||
<a name="l00060"></a>00060 value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00061"></a>00061 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(
|
||||
<a name="l00062"></a>00062 value_type <span class="keyword">const</span> & x0, value_type <span class="keyword">const</span> & y0, value_type <span class="keyword">const</span> & z0,
|
||||
<a name="l00063"></a>00063 value_type <span class="keyword">const</span> & x1, value_type <span class="keyword">const</span> & y1, value_type <span class="keyword">const</span> & z1);
|
||||
<a name="l00064"></a>00064 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(
|
||||
<a name="l00065"></a>00065 <a class="code" href="a00021.html" title="Basic 3D vector type.">col_type</a> <span class="keyword">const</span> & v0,
|
||||
<a name="l00066"></a>00066 <a class="code" href="a00021.html" title="Basic 3D vector type.">col_type</a> <span class="keyword">const</span> & v1);
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00068"></a>00068
|
||||
<a name="l00070"></a>00070 <span class="comment">// Conversions</span>
|
||||
<a name="l00071"></a>00071 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00072"></a>00072 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(
|
||||
<a name="l00073"></a>00073 U <span class="keyword">const</span> & x);
|
||||
<a name="l00074"></a>00074
|
||||
<a name="l00075"></a>00075 <span class="keyword">template</span> <<span class="keyword">typename</span> X1, <span class="keyword">typename</span> Y1, <span class="keyword">typename</span> Z1, <span class="keyword">typename</span> X2, <span class="keyword">typename</span> Y2, <span class="keyword">typename</span> Z2>
|
||||
<a name="l00076"></a>00076 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(
|
||||
<a name="l00077"></a>00077 X1 <span class="keyword">const</span> & x1, Y1 <span class="keyword">const</span> & y1, Z1 <span class="keyword">const</span> & z1,
|
||||
<a name="l00078"></a>00078 X2 <span class="keyword">const</span> & x2, Y2 <span class="keyword">const</span> & y2, Z2 <span class="keyword">const</span> & z2);
|
||||
<a name="l00079"></a>00079
|
||||
<a name="l00080"></a>00080 <span class="keyword">template</span> <<span class="keyword">typename</span> U, <span class="keyword">typename</span> V>
|
||||
<a name="l00081"></a>00081 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(
|
||||
<a name="l00082"></a>00082 <a class="code" href="a00021.html" title="Basic 3D vector type.">tvec3<U></a> <span class="keyword">const</span> & v1,
|
||||
<a name="l00083"></a>00083 <a class="code" href="a00021.html" title="Basic 3D vector type.">tvec3<V></a> <span class="keyword">const</span> & v2);
|
||||
<a name="l00084"></a>00084
|
||||
<a name="l00086"></a>00086 <span class="comment">// Matrix conversion</span>
|
||||
<a name="l00087"></a>00087 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00088"></a>00088 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(<a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00089"></a>00089
|
||||
<a name="l00090"></a>00090 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(<a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00091"></a>00091 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(<a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00092"></a>00092 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">tmat4x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00093"></a>00093 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(<a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00094"></a>00094 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(<a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00095"></a>00095 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(<a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00096"></a>00096 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(<a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00097"></a>00097 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x3(<a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">tmat4x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00098"></a>00098
|
||||
<a name="l00099"></a>00099 <span class="comment">// Accesses</span>
|
||||
<a name="l00100"></a>00100 <a class="code" href="a00021.html" title="Basic 3D vector type.">col_type</a> & operator[](size_type i);
|
||||
<a name="l00101"></a>00101 <a class="code" href="a00021.html" title="Basic 3D vector type.">col_type</a> <span class="keyword">const</span> & operator[](size_type i) <span class="keyword">const</span>;
|
||||
<a name="l00102"></a>00102
|
||||
<a name="l00103"></a>00103 <span class="comment">// Unary updatable operators</span>
|
||||
<a name="l00104"></a>00104 GLM_FUNC_DECL <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> & operator= (<a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00105"></a>00105 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00106"></a>00106 GLM_FUNC_DECL <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> & operator= (<a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00107"></a>00107 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00108"></a>00108 GLM_FUNC_DECL <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> & operator+= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00109"></a>00109 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00110"></a>00110 GLM_FUNC_DECL <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> & operator+= (<a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00111"></a>00111 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00112"></a>00112 GLM_FUNC_DECL <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> & operator-= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00113"></a>00113 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00114"></a>00114 GLM_FUNC_DECL <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> & operator-= (<a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00115"></a>00115 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00116"></a>00116 GLM_FUNC_DECL <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> & operator*= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00117"></a>00117 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00118"></a>00118 GLM_FUNC_DECL <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> & operator*= (<a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00119"></a>00119 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00120"></a>00120 GLM_FUNC_DECL <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> & operator/= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00121"></a>00121
|
||||
<a name="l00122"></a>00122 GLM_FUNC_DECL <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> & operator++ ();
|
||||
<a name="l00123"></a>00123 GLM_FUNC_DECL <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> & operator-- ();
|
||||
<a name="l00124"></a>00124 };
|
||||
<a name="l00125"></a>00125
|
||||
<a name="l00126"></a>00126 <span class="comment">// Binary operators</span>
|
||||
<a name="l00127"></a>00127 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00128"></a>00128 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> operator+ (
|
||||
<a name="l00129"></a>00129 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00130"></a>00130 <span class="keyword">typename</span> tmat2x3<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00131"></a>00131
|
||||
<a name="l00132"></a>00132 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00133"></a>00133 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> operator+ (
|
||||
<a name="l00134"></a>00134 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00135"></a>00135 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00136"></a>00136
|
||||
<a name="l00137"></a>00137 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00138"></a>00138 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> operator- (
|
||||
<a name="l00139"></a>00139 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00140"></a>00140 <span class="keyword">typename</span> tmat2x3<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00141"></a>00141
|
||||
<a name="l00142"></a>00142 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00143"></a>00143 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> operator- (
|
||||
<a name="l00144"></a>00144 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00145"></a>00145 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00146"></a>00146
|
||||
<a name="l00147"></a>00147 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00148"></a>00148 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> operator* (
|
||||
<a name="l00149"></a>00149 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00150"></a>00150 <span class="keyword">typename</span> tmat2x3<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00151"></a>00151
|
||||
<a name="l00152"></a>00152 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00153"></a>00153 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> operator* (
|
||||
<a name="l00154"></a>00154 <span class="keyword">typename</span> tmat2x3<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00155"></a>00155 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00156"></a>00156
|
||||
<a name="l00157"></a>00157 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00158"></a>00158 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat2x3<T>::col_type</a> operator* (
|
||||
<a name="l00159"></a>00159 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00160"></a>00160 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat2x3<T>::row_type</a> <span class="keyword">const</span> & v);
|
||||
<a name="l00161"></a>00161
|
||||
<a name="l00162"></a>00162 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00163"></a>00163 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat2x3<T>::row_type</a> operator* (
|
||||
<a name="l00164"></a>00164 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat2x3<T>::col_type</a> <span class="keyword">const</span> & v,
|
||||
<a name="l00165"></a>00165 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00166"></a>00166
|
||||
<a name="l00167"></a>00167 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00168"></a>00168 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> operator* (
|
||||
<a name="l00169"></a>00169 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00170"></a>00170 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00171"></a>00171
|
||||
<a name="l00172"></a>00172 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00173"></a>00173 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> operator/ (
|
||||
<a name="l00174"></a>00174 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00175"></a>00175 <span class="keyword">typename</span> tmat2x3<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00176"></a>00176
|
||||
<a name="l00177"></a>00177 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00178"></a>00178 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> operator/ (
|
||||
<a name="l00179"></a>00179 <span class="keyword">typename</span> tmat2x3<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00180"></a>00180 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00181"></a>00181
|
||||
<a name="l00182"></a>00182 <span class="comment">// Unary constant operators</span>
|
||||
<a name="l00183"></a>00183 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00184"></a>00184 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> operator- (
|
||||
<a name="l00185"></a>00185 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00186"></a>00186
|
||||
<a name="l00187"></a>00187 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00188"></a>00188 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> operator-- (
|
||||
<a name="l00189"></a>00189 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00190"></a>00190 <span class="keywordtype">int</span>);
|
||||
<a name="l00191"></a>00191
|
||||
<a name="l00192"></a>00192 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00193"></a>00193 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> operator++ (
|
||||
<a name="l00194"></a>00194 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00195"></a>00195 <span class="keywordtype">int</span>);
|
||||
<a name="l00196"></a>00196
|
||||
<a name="l00197"></a>00197 } <span class="comment">//namespace detail</span>
|
||||
<a name="l00198"></a>00198
|
||||
<a name="l00199"></a>00199 <span class="keyword">namespace </span>core{
|
||||
<a name="l00200"></a>00200 <span class="keyword">namespace </span>type{
|
||||
<a name="l00201"></a>00201 <span class="keyword">namespace </span>precision
|
||||
<a name="l00202"></a>00202 {
|
||||
<a name="l00207"></a><a class="code" href="a00236.html#ga0b32355a31b4c14e98f69b43a9077456">00207</a> <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3<lowp_float></a> <a class="code" href="a00236.html#ga0b32355a31b4c14e98f69b43a9077456" title="2 columns of 3 components matrix of low precision floating-point numbers.">lowp_mat2x3</a>;
|
||||
<a name="l00212"></a><a class="code" href="a00236.html#gacceeb5355767eb306c12ea961b31e808">00212</a> <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3<mediump_float></a> <a class="code" href="a00236.html#gacceeb5355767eb306c12ea961b31e808" title="2 columns of 3 components matrix of medium precision floating-point numbers.">mediump_mat2x3</a>;
|
||||
<a name="l00217"></a><a class="code" href="a00236.html#ga895ba4ec32bd7cfb0d07572556572069">00217</a> <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3<highp_float></a> <a class="code" href="a00236.html#ga895ba4ec32bd7cfb0d07572556572069" title="2 columns of 3 components matrix of high precision floating-point numbers.">highp_mat2x3</a>;
|
||||
<a name="l00218"></a>00218 }<span class="comment">//namespace precision</span>
|
||||
<a name="l00219"></a>00219 }<span class="comment">//namespace type</span>
|
||||
<a name="l00220"></a>00220 }<span class="comment">//namespace core</span>
|
||||
<a name="l00221"></a>00221 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00222"></a>00222
|
||||
<a name="l00223"></a>00223 <span class="preprocessor">#ifndef GLM_EXTERNAL_TEMPLATE</span>
|
||||
<a name="l00224"></a>00224 <span class="preprocessor"></span><span class="preprocessor">#include "type_mat2x3.inl"</span>
|
||||
<a name="l00225"></a>00225 <span class="preprocessor">#endif</span>
|
||||
<a name="l00226"></a>00226 <span class="preprocessor"></span>
|
||||
<a name="l00227"></a>00227 <span class="preprocessor">#endif //glm_core_type_mat2x3</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,256 +0,0 @@
|
||||
<!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>type_mat2x4.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">type_mat2x4.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2006-08-05</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-11</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/type_mat2x4.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_type_mat2x4</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_type_mat2x4</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "type_mat.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>detail
|
||||
<a name="l00017"></a>00017 {
|
||||
<a name="l00018"></a>00018 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec1;
|
||||
<a name="l00019"></a>00019 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec2;
|
||||
<a name="l00020"></a>00020 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec3;
|
||||
<a name="l00021"></a>00021 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec4;
|
||||
<a name="l00022"></a>00022 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x2;
|
||||
<a name="l00023"></a>00023 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x3;
|
||||
<a name="l00024"></a>00024 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x4;
|
||||
<a name="l00025"></a>00025 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x2;
|
||||
<a name="l00026"></a>00026 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x3;
|
||||
<a name="l00027"></a>00027 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x4;
|
||||
<a name="l00028"></a>00028 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x2;
|
||||
<a name="l00029"></a>00029 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x3;
|
||||
<a name="l00030"></a>00030 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x4;
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00034"></a>00034 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00035"></a><a class="code" href="a00012.html">00035</a> <span class="keyword">struct </span><a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4</a>
|
||||
<a name="l00036"></a>00036 {
|
||||
<a name="l00037"></a>00037 <span class="keyword">enum</span> ctor{null};
|
||||
<a name="l00038"></a>00038 <span class="keyword">typedef</span> T value_type;
|
||||
<a name="l00039"></a>00039 <span class="keyword">typedef</span> std::size_t size_type;
|
||||
<a name="l00040"></a>00040 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">tvec4<T></a> <a class="code" href="a00022.html" title="Basic 4D vector type.">col_type</a>;
|
||||
<a name="l00041"></a>00041 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<T></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">row_type</a>;
|
||||
<a name="l00042"></a>00042 <span class="keyword">static</span> GLM_FUNC_DECL size_type col_size();
|
||||
<a name="l00043"></a>00043 <span class="keyword">static</span> GLM_FUNC_DECL size_type row_size();
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">type</a>;
|
||||
<a name="l00046"></a>00046 <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">transpose_type</a>;
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00048"></a>00048 <span class="keyword">private</span>:
|
||||
<a name="l00049"></a>00049 <span class="comment">// Data </span>
|
||||
<a name="l00050"></a>00050 <a class="code" href="a00022.html" title="Basic 4D vector type.">col_type</a> value[2];
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="keyword">public</span>:
|
||||
<a name="l00053"></a>00053 <span class="comment">// Constructors</span>
|
||||
<a name="l00054"></a>00054 GLM_FUNC_DECL <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4</a>();
|
||||
<a name="l00055"></a>00055 GLM_FUNC_DECL tmat2x4(tmat2x4 <span class="keyword">const</span> & m);
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00057"></a>00057 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(
|
||||
<a name="l00058"></a>00058 ctor);
|
||||
<a name="l00059"></a>00059 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(
|
||||
<a name="l00060"></a>00060 value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00061"></a>00061 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(
|
||||
<a name="l00062"></a>00062 value_type <span class="keyword">const</span> & x0, value_type <span class="keyword">const</span> & y0, value_type <span class="keyword">const</span> & z0, value_type <span class="keyword">const</span> & w0,
|
||||
<a name="l00063"></a>00063 value_type <span class="keyword">const</span> & x1, value_type <span class="keyword">const</span> & y1, value_type <span class="keyword">const</span> & z1, value_type <span class="keyword">const</span> & w1);
|
||||
<a name="l00064"></a>00064 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(
|
||||
<a name="l00065"></a>00065 <a class="code" href="a00022.html" title="Basic 4D vector type.">col_type</a> <span class="keyword">const</span> & v0,
|
||||
<a name="l00066"></a>00066 <a class="code" href="a00022.html" title="Basic 4D vector type.">col_type</a> <span class="keyword">const</span> & v1);
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00069"></a>00069 <span class="comment">// Conversions</span>
|
||||
<a name="l00070"></a>00070 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00071"></a>00071 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(
|
||||
<a name="l00072"></a>00072 U <span class="keyword">const</span> & x);
|
||||
<a name="l00073"></a>00073
|
||||
<a name="l00074"></a>00074 <span class="keyword">template</span> <
|
||||
<a name="l00075"></a>00075 <span class="keyword">typename</span> X1, <span class="keyword">typename</span> Y1, <span class="keyword">typename</span> Z1, <span class="keyword">typename</span> W1,
|
||||
<a name="l00076"></a>00076 <span class="keyword">typename</span> X2, <span class="keyword">typename</span> Y2, <span class="keyword">typename</span> Z2, <span class="keyword">typename</span> W2>
|
||||
<a name="l00077"></a>00077 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(
|
||||
<a name="l00078"></a>00078 X1 <span class="keyword">const</span> & x1, Y1 <span class="keyword">const</span> & y1, Z1 <span class="keyword">const</span> & z1, W1 <span class="keyword">const</span> & w1,
|
||||
<a name="l00079"></a>00079 X2 <span class="keyword">const</span> & x2, Y2 <span class="keyword">const</span> & y2, Z2 <span class="keyword">const</span> & z2, W2 <span class="keyword">const</span> & w2);
|
||||
<a name="l00080"></a>00080
|
||||
<a name="l00081"></a>00081 <span class="keyword">template</span> <<span class="keyword">typename</span> U, <span class="keyword">typename</span> V>
|
||||
<a name="l00082"></a>00082 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(
|
||||
<a name="l00083"></a>00083 <a class="code" href="a00022.html" title="Basic 4D vector type.">tvec4<U></a> <span class="keyword">const</span> & v1,
|
||||
<a name="l00084"></a>00084 <a class="code" href="a00022.html" title="Basic 4D vector type.">tvec4<V></a> <span class="keyword">const</span> & v2);
|
||||
<a name="l00085"></a>00085
|
||||
<a name="l00087"></a>00087 <span class="comment">// Matrix conversions</span>
|
||||
<a name="l00088"></a>00088 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00089"></a>00089 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(<a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00091"></a>00091 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(<a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00092"></a>00092 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(<a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00093"></a>00093 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">tmat4x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00094"></a>00094 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(<a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00095"></a>00095 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(<a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00096"></a>00096 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(<a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00097"></a>00097 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(<a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00098"></a>00098 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat2x4(<a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">tmat4x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00099"></a>00099
|
||||
<a name="l00100"></a>00100 <span class="comment">// Accesses</span>
|
||||
<a name="l00101"></a>00101 GLM_FUNC_DECL <a class="code" href="a00022.html" title="Basic 4D vector type.">col_type</a> & operator[](size_type i);
|
||||
<a name="l00102"></a>00102 GLM_FUNC_DECL <a class="code" href="a00022.html" title="Basic 4D vector type.">col_type</a> <span class="keyword">const</span> & operator[](size_type i) <span class="keyword">const</span>;
|
||||
<a name="l00103"></a>00103
|
||||
<a name="l00104"></a>00104 <span class="comment">// Unary updatable operators</span>
|
||||
<a name="l00105"></a>00105 GLM_FUNC_DECL <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a>& operator= (<a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00106"></a>00106 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00107"></a>00107 GLM_FUNC_DECL <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a>& operator= (<a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00108"></a>00108 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00109"></a>00109 GLM_FUNC_DECL <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a>& operator+= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00110"></a>00110 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00111"></a>00111 GLM_FUNC_DECL <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a>& operator+= (<a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00112"></a>00112 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00113"></a>00113 GLM_FUNC_DECL <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a>& operator-= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00114"></a>00114 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00115"></a>00115 GLM_FUNC_DECL <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a>& operator-= (<a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00116"></a>00116 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00117"></a>00117 GLM_FUNC_DECL <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a>& operator*= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00118"></a>00118 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00119"></a>00119 GLM_FUNC_DECL <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a>& operator*= (<a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00120"></a>00120 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00121"></a>00121 GLM_FUNC_DECL <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a>& operator/= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00122"></a>00122
|
||||
<a name="l00123"></a>00123 GLM_FUNC_DECL <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a>& operator++ ();
|
||||
<a name="l00124"></a>00124 GLM_FUNC_DECL <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a>& operator-- ();
|
||||
<a name="l00125"></a>00125 };
|
||||
<a name="l00126"></a>00126
|
||||
<a name="l00127"></a>00127 <span class="comment">// Binary operators</span>
|
||||
<a name="l00128"></a>00128 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00129"></a>00129 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> operator+ (
|
||||
<a name="l00130"></a>00130 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00131"></a>00131 <span class="keyword">typename</span> tmat2x4<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00132"></a>00132
|
||||
<a name="l00133"></a>00133 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00134"></a>00134 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> operator+ (
|
||||
<a name="l00135"></a>00135 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00136"></a>00136 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00137"></a>00137
|
||||
<a name="l00138"></a>00138 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00139"></a>00139 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> operator- (
|
||||
<a name="l00140"></a>00140 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00141"></a>00141 <span class="keyword">typename</span> tmat2x4<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00142"></a>00142
|
||||
<a name="l00143"></a>00143 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00144"></a>00144 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> operator- (
|
||||
<a name="l00145"></a>00145 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00146"></a>00146 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00147"></a>00147
|
||||
<a name="l00148"></a>00148 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00149"></a>00149 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> operator* (
|
||||
<a name="l00150"></a>00150 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00151"></a>00151 <span class="keyword">typename</span> tmat2x4<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00152"></a>00152
|
||||
<a name="l00153"></a>00153 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00154"></a>00154 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> operator* (
|
||||
<a name="l00155"></a>00155 <span class="keyword">typename</span> tmat2x4<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00156"></a>00156 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00157"></a>00157
|
||||
<a name="l00158"></a>00158 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00159"></a>00159 <span class="keyword">typename</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">tmat2x4<T>::col_type</a> operator* (
|
||||
<a name="l00160"></a>00160 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00161"></a>00161 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat2x4<T>::row_type</a> <span class="keyword">const</span> & v);
|
||||
<a name="l00162"></a>00162
|
||||
<a name="l00163"></a>00163 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00164"></a>00164 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat2x4<T>::row_type</a> operator* (
|
||||
<a name="l00165"></a>00165 <span class="keyword">typename</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">tmat2x4<T>::col_type</a> <span class="keyword">const</span> & v,
|
||||
<a name="l00166"></a>00166 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00167"></a>00167
|
||||
<a name="l00168"></a>00168 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00169"></a>00169 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> operator* (
|
||||
<a name="l00170"></a>00170 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00171"></a>00171 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00172"></a>00172
|
||||
<a name="l00173"></a>00173 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00174"></a>00174 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> operator/ (
|
||||
<a name="l00175"></a>00175 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00176"></a>00176 <span class="keyword">typename</span> tmat2x4<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00177"></a>00177
|
||||
<a name="l00178"></a>00178 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00179"></a>00179 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> operator/ (
|
||||
<a name="l00180"></a>00180 <span class="keyword">typename</span> tmat2x4<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00181"></a>00181 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00182"></a>00182
|
||||
<a name="l00183"></a>00183 <span class="comment">// Unary constant operators</span>
|
||||
<a name="l00184"></a>00184 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00185"></a>00185 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> operator- (
|
||||
<a name="l00186"></a>00186 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00187"></a>00187
|
||||
<a name="l00188"></a>00188 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00189"></a>00189 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> operator-- (
|
||||
<a name="l00190"></a>00190 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00191"></a>00191 <span class="keywordtype">int</span>);
|
||||
<a name="l00192"></a>00192
|
||||
<a name="l00193"></a>00193 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00194"></a>00194 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> operator++ (
|
||||
<a name="l00195"></a>00195 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00196"></a>00196 <span class="keywordtype">int</span>);
|
||||
<a name="l00197"></a>00197
|
||||
<a name="l00198"></a>00198 } <span class="comment">//namespace detail</span>
|
||||
<a name="l00199"></a>00199
|
||||
<a name="l00200"></a>00200 <span class="keyword">namespace </span>core{
|
||||
<a name="l00201"></a>00201 <span class="keyword">namespace </span>type{
|
||||
<a name="l00202"></a>00202 <span class="keyword">namespace </span>precision
|
||||
<a name="l00203"></a>00203 {
|
||||
<a name="l00207"></a><a class="code" href="a00156.html#af95b55f8954834b05b5463bc153deae5">00207</a> <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4<lowp_float></a> <a class="code" href="a00156.html#af95b55f8954834b05b5463bc153deae5" title="2 columns of 4 components matrix of low precision floating-point numbers.">lowp_mat2x4</a>;
|
||||
<a name="l00211"></a><a class="code" href="a00156.html#abbec32a495b527df1796bb46f8cce516">00211</a> <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4<mediump_float></a> <a class="code" href="a00156.html#abbec32a495b527df1796bb46f8cce516" title="2 columns of 4 components matrix of medium precision floating-point numbers.">mediump_mat2x4</a>;
|
||||
<a name="l00215"></a><a class="code" href="a00156.html#af8816ff880fbae96a59c543904333109">00215</a> <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4<highp_float></a> <a class="code" href="a00156.html#af8816ff880fbae96a59c543904333109" title="2 columns of 4 components matrix of high precision floating-point numbers.">highp_mat2x4</a>;
|
||||
<a name="l00216"></a>00216 }<span class="comment">//namespace precision</span>
|
||||
<a name="l00217"></a>00217 }<span class="comment">//namespace type</span>
|
||||
<a name="l00218"></a>00218 }<span class="comment">//namespace core</span>
|
||||
<a name="l00219"></a>00219 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00220"></a>00220
|
||||
<a name="l00221"></a>00221 <span class="preprocessor">#ifndef GLM_EXTERNAL_TEMPLATE</span>
|
||||
<a name="l00222"></a>00222 <span class="preprocessor"></span><span class="preprocessor">#include "type_mat2x4.inl"</span>
|
||||
<a name="l00223"></a>00223 <span class="preprocessor">#endif</span>
|
||||
<a name="l00224"></a>00224 <span class="preprocessor"></span>
|
||||
<a name="l00225"></a>00225 <span class="preprocessor">#endif //glm_core_type_mat2x4</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,263 +0,0 @@
|
||||
<!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>type_mat3x2.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">type_mat3x2.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2006-08-05</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-05</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/type_mat3x2.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_type_mat3x2</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_type_mat3x2</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "type_mat.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>detail
|
||||
<a name="l00017"></a>00017 {
|
||||
<a name="l00018"></a>00018 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec1;
|
||||
<a name="l00019"></a>00019 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec2;
|
||||
<a name="l00020"></a>00020 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec3;
|
||||
<a name="l00021"></a>00021 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec4;
|
||||
<a name="l00022"></a>00022 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x2;
|
||||
<a name="l00023"></a>00023 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x3;
|
||||
<a name="l00024"></a>00024 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x4;
|
||||
<a name="l00025"></a>00025 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x2;
|
||||
<a name="l00026"></a>00026 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x3;
|
||||
<a name="l00027"></a>00027 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x4;
|
||||
<a name="l00028"></a>00028 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x2;
|
||||
<a name="l00029"></a>00029 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x3;
|
||||
<a name="l00030"></a>00030 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x4;
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00034"></a>00034 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00035"></a><a class="code" href="a00013.html">00035</a> <span class="keyword">struct </span><a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2</a>
|
||||
<a name="l00036"></a>00036 {
|
||||
<a name="l00037"></a>00037 <span class="keyword">enum</span> ctor{null};
|
||||
<a name="l00038"></a>00038 <span class="keyword">typedef</span> T value_type;
|
||||
<a name="l00039"></a>00039 <span class="keyword">typedef</span> std::size_t size_type;
|
||||
<a name="l00040"></a>00040 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<T></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a>;
|
||||
<a name="l00041"></a>00041 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tvec3<T></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">row_type</a>;
|
||||
<a name="l00042"></a>00042 <span class="keyword">static</span> GLM_FUNC_DECL size_type col_size();
|
||||
<a name="l00043"></a>00043 <span class="keyword">static</span> GLM_FUNC_DECL size_type row_size();
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">type</a>;
|
||||
<a name="l00046"></a>00046 <span class="keyword">typedef</span> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">transpose_type</a>;
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00048"></a>00048 <span class="keyword">private</span>:
|
||||
<a name="l00049"></a>00049 <span class="comment">// Data</span>
|
||||
<a name="l00050"></a>00050 <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> value[3];
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="keyword">public</span>:
|
||||
<a name="l00053"></a>00053 <span class="comment">// Constructors</span>
|
||||
<a name="l00054"></a>00054 GLM_FUNC_DECL <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2</a>();
|
||||
<a name="l00055"></a>00055 GLM_FUNC_DECL tmat3x2(tmat3x2 <span class="keyword">const</span> & m);
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00057"></a>00057 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(
|
||||
<a name="l00058"></a>00058 ctor);
|
||||
<a name="l00059"></a>00059 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(
|
||||
<a name="l00060"></a>00060 value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00061"></a>00061 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(
|
||||
<a name="l00062"></a>00062 value_type <span class="keyword">const</span> & x0, value_type <span class="keyword">const</span> & y0,
|
||||
<a name="l00063"></a>00063 value_type <span class="keyword">const</span> & x1, value_type <span class="keyword">const</span> & y1,
|
||||
<a name="l00064"></a>00064 value_type <span class="keyword">const</span> & x2, value_type <span class="keyword">const</span> & y2);
|
||||
<a name="l00065"></a>00065 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(
|
||||
<a name="l00066"></a>00066 <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> <span class="keyword">const</span> & v0,
|
||||
<a name="l00067"></a>00067 <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> <span class="keyword">const</span> & v1,
|
||||
<a name="l00068"></a>00068 <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> <span class="keyword">const</span> & v2);
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00071"></a>00071 <span class="comment">// Conversions</span>
|
||||
<a name="l00072"></a>00072 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00073"></a>00073 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(
|
||||
<a name="l00074"></a>00074 U <span class="keyword">const</span> & x);
|
||||
<a name="l00075"></a>00075
|
||||
<a name="l00076"></a>00076 <span class="keyword">template</span>
|
||||
<a name="l00077"></a>00077 <
|
||||
<a name="l00078"></a>00078 <span class="keyword">typename</span> X1, <span class="keyword">typename</span> Y1,
|
||||
<a name="l00079"></a>00079 <span class="keyword">typename</span> X2, <span class="keyword">typename</span> Y2,
|
||||
<a name="l00080"></a>00080 <span class="keyword">typename</span> X3, <span class="keyword">typename</span> Y3
|
||||
<a name="l00081"></a>00081 >
|
||||
<a name="l00082"></a>00082 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(
|
||||
<a name="l00083"></a>00083 X1 <span class="keyword">const</span> & x1, Y1 <span class="keyword">const</span> & y1,
|
||||
<a name="l00084"></a>00084 X2 <span class="keyword">const</span> & x2, Y2 <span class="keyword">const</span> & y2,
|
||||
<a name="l00085"></a>00085 X3 <span class="keyword">const</span> & x3, Y3 <span class="keyword">const</span> & y3);
|
||||
<a name="l00086"></a>00086
|
||||
<a name="l00087"></a>00087 <span class="keyword">template</span> <<span class="keyword">typename</span> V1, <span class="keyword">typename</span> V2, <span class="keyword">typename</span> V3>
|
||||
<a name="l00088"></a>00088 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(
|
||||
<a name="l00089"></a>00089 <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<V1></a> <span class="keyword">const</span> & v1,
|
||||
<a name="l00090"></a>00090 <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<V2></a> <span class="keyword">const</span> & v2,
|
||||
<a name="l00091"></a>00091 <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<V3></a> <span class="keyword">const</span> & v3);
|
||||
<a name="l00092"></a>00092
|
||||
<a name="l00093"></a>00093 <span class="comment">// Matrix conversions</span>
|
||||
<a name="l00094"></a>00094 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00095"></a>00095 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(<a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00096"></a>00096
|
||||
<a name="l00097"></a>00097 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(<a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00098"></a>00098 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(<a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00099"></a>00099 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">tmat4x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00100"></a>00100 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(<a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00101"></a>00101 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(<a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00102"></a>00102 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(<a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00103"></a>00103 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(<a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00104"></a>00104 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x2(<a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">tmat4x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00105"></a>00105
|
||||
<a name="l00106"></a>00106 <span class="comment">// Accesses</span>
|
||||
<a name="l00107"></a>00107 GLM_FUNC_DECL <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> & operator[](size_type i);
|
||||
<a name="l00108"></a>00108 GLM_FUNC_DECL <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> <span class="keyword">const</span> & operator[](size_type i) <span class="keyword">const</span>;
|
||||
<a name="l00109"></a>00109
|
||||
<a name="l00110"></a>00110 <span class="comment">// Unary updatable operators</span>
|
||||
<a name="l00111"></a>00111 GLM_FUNC_DECL <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> & operator= (<a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00112"></a>00112 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00113"></a>00113 GLM_FUNC_DECL <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> & operator= (<a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00114"></a>00114 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00115"></a>00115 GLM_FUNC_DECL <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> & operator+= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00116"></a>00116 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00117"></a>00117 GLM_FUNC_DECL <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> & operator+= (<a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00118"></a>00118 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00119"></a>00119 GLM_FUNC_DECL <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> & operator-= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00120"></a>00120 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00121"></a>00121 GLM_FUNC_DECL <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> & operator-= (<a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00122"></a>00122 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00123"></a>00123 GLM_FUNC_DECL <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> & operator*= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00124"></a>00124 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00125"></a>00125 GLM_FUNC_DECL <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> & operator*= (<a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00126"></a>00126 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00127"></a>00127 GLM_FUNC_DECL <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> & operator/= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00128"></a>00128
|
||||
<a name="l00129"></a>00129 GLM_FUNC_DECL <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> & operator++ ();
|
||||
<a name="l00130"></a>00130 GLM_FUNC_DECL <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> & operator-- ();
|
||||
<a name="l00131"></a>00131 };
|
||||
<a name="l00132"></a>00132
|
||||
<a name="l00133"></a>00133 <span class="comment">// Binary operators</span>
|
||||
<a name="l00134"></a>00134 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00135"></a>00135 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> operator+ (
|
||||
<a name="l00136"></a>00136 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00137"></a>00137 <span class="keyword">typename</span> tmat3x2<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00138"></a>00138
|
||||
<a name="l00139"></a>00139 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00140"></a>00140 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> operator+ (
|
||||
<a name="l00141"></a>00141 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00142"></a>00142 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00143"></a>00143
|
||||
<a name="l00144"></a>00144 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00145"></a>00145 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> operator- (
|
||||
<a name="l00146"></a>00146 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00147"></a>00147 <span class="keyword">typename</span> tmat3x2<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00148"></a>00148
|
||||
<a name="l00149"></a>00149 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00150"></a>00150 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> operator- (
|
||||
<a name="l00151"></a>00151 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00152"></a>00152 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00153"></a>00153
|
||||
<a name="l00154"></a>00154 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00155"></a>00155 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> operator* (
|
||||
<a name="l00156"></a>00156 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00157"></a>00157 <span class="keyword">typename</span> tmat3x2<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00158"></a>00158
|
||||
<a name="l00159"></a>00159 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00160"></a>00160 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> operator* (
|
||||
<a name="l00161"></a>00161 <span class="keyword">typename</span> tmat3x2<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00162"></a>00162 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00163"></a>00163
|
||||
<a name="l00164"></a>00164 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00165"></a>00165 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat3x2<T>::col_type</a> operator* (
|
||||
<a name="l00166"></a>00166 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00167"></a>00167 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat3x2<T>::row_type</a> <span class="keyword">const</span> & v);
|
||||
<a name="l00168"></a>00168
|
||||
<a name="l00169"></a>00169 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00170"></a>00170 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat3x2<T>::row_type</a> operator* (
|
||||
<a name="l00171"></a>00171 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat3x2<T>::col_type</a> <span class="keyword">const</span> & v,
|
||||
<a name="l00172"></a>00172 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00173"></a>00173
|
||||
<a name="l00174"></a>00174 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00175"></a>00175 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator* (
|
||||
<a name="l00176"></a>00176 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00177"></a>00177 <a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00178"></a>00178
|
||||
<a name="l00179"></a>00179 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00180"></a>00180 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> operator/ (
|
||||
<a name="l00181"></a>00181 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00182"></a>00182 <span class="keyword">typename</span> tmat3x2<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00183"></a>00183
|
||||
<a name="l00184"></a>00184 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00185"></a>00185 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> operator/ (
|
||||
<a name="l00186"></a>00186 <span class="keyword">typename</span> tmat3x2<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00187"></a>00187 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00188"></a>00188
|
||||
<a name="l00189"></a>00189 <span class="comment">// Unary constant operators</span>
|
||||
<a name="l00190"></a>00190 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00191"></a>00191 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> operator- (
|
||||
<a name="l00192"></a>00192 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00193"></a>00193
|
||||
<a name="l00194"></a>00194 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00195"></a>00195 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> operator-- (
|
||||
<a name="l00196"></a>00196 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00197"></a>00197 <span class="keywordtype">int</span>);
|
||||
<a name="l00198"></a>00198
|
||||
<a name="l00199"></a>00199 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00200"></a>00200 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> operator++ (
|
||||
<a name="l00201"></a>00201 <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00202"></a>00202 <span class="keywordtype">int</span>);
|
||||
<a name="l00203"></a>00203
|
||||
<a name="l00204"></a>00204 } <span class="comment">//namespace detail</span>
|
||||
<a name="l00205"></a>00205
|
||||
<a name="l00206"></a>00206 <span class="keyword">namespace </span>core{
|
||||
<a name="l00207"></a>00207 <span class="keyword">namespace </span>type{
|
||||
<a name="l00208"></a>00208 <span class="keyword">namespace </span>precision
|
||||
<a name="l00209"></a>00209 {
|
||||
<a name="l00213"></a><a class="code" href="a00156.html#a745259412efbd5e07b1a4062190e3135">00213</a> <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2<lowp_float></a> <a class="code" href="a00156.html#a745259412efbd5e07b1a4062190e3135" title="3 columns of 2 components matrix of low precision floating-point numbers.">lowp_mat3x2</a>;
|
||||
<a name="l00217"></a><a class="code" href="a00156.html#a08c1cebbdb2cdfa0a62b23981db1c059">00217</a> <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2<mediump_float></a> <a class="code" href="a00156.html#a08c1cebbdb2cdfa0a62b23981db1c059" title="3 columns of 2 components matrix of medium precision floating-point numbers.">mediump_mat3x2</a>;
|
||||
<a name="l00221"></a><a class="code" href="a00156.html#ae5e017b25e88ff5c61f4538a2dd5647a">00221</a> <span class="keyword">typedef</span> <a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2<highp_float></a> <a class="code" href="a00156.html#ae5e017b25e88ff5c61f4538a2dd5647a" title="3 columns of 2 components matrix of high precision floating-point numbers.">highp_mat3x2</a>;
|
||||
<a name="l00222"></a>00222 }<span class="comment">//namespace precision</span>
|
||||
<a name="l00223"></a>00223 }<span class="comment">//namespace type</span>
|
||||
<a name="l00224"></a>00224 }<span class="comment">//namespace core</span>
|
||||
<a name="l00225"></a>00225 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00226"></a>00226
|
||||
<a name="l00227"></a>00227 <span class="preprocessor">#ifndef GLM_EXTERNAL_TEMPLATE</span>
|
||||
<a name="l00228"></a>00228 <span class="preprocessor"></span><span class="preprocessor">#include "type_mat3x2.inl"</span>
|
||||
<a name="l00229"></a>00229 <span class="preprocessor">#endif</span>
|
||||
<a name="l00230"></a>00230 <span class="preprocessor"></span>
|
||||
<a name="l00231"></a>00231 <span class="preprocessor">#endif //glm_core_type_mat3x2</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,300 +0,0 @@
|
||||
<!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>type_mat3x3.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">type_mat3x3.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-01-27</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-03</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/type_mat3x3.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_type_mat3x3</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_type_mat3x3</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "type_mat.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>detail
|
||||
<a name="l00017"></a>00017 {
|
||||
<a name="l00018"></a>00018 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec1;
|
||||
<a name="l00019"></a>00019 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec2;
|
||||
<a name="l00020"></a>00020 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec3;
|
||||
<a name="l00021"></a>00021 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec4;
|
||||
<a name="l00022"></a>00022 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x2;
|
||||
<a name="l00023"></a>00023 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x3;
|
||||
<a name="l00024"></a>00024 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x4;
|
||||
<a name="l00025"></a>00025 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x2;
|
||||
<a name="l00026"></a>00026 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x3;
|
||||
<a name="l00027"></a>00027 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x4;
|
||||
<a name="l00028"></a>00028 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x2;
|
||||
<a name="l00029"></a>00029 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x3;
|
||||
<a name="l00030"></a>00030 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x4;
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00034"></a>00034 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00035"></a><a class="code" href="a00014.html">00035</a> <span class="keyword">struct </span><a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3</a>
|
||||
<a name="l00036"></a>00036 {
|
||||
<a name="l00037"></a>00037 <span class="keyword">enum</span> ctor{null};
|
||||
<a name="l00038"></a>00038 <span class="keyword">typedef</span> T value_type;
|
||||
<a name="l00039"></a>00039 <span class="keyword">typedef</span> std::size_t size_type;
|
||||
<a name="l00040"></a>00040 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tvec3<T></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">col_type</a>;
|
||||
<a name="l00041"></a>00041 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tvec3<T></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">row_type</a>;
|
||||
<a name="l00042"></a>00042 <span class="keyword">static</span> GLM_FUNC_DECL size_type col_size();
|
||||
<a name="l00043"></a>00043 <span class="keyword">static</span> GLM_FUNC_DECL size_type row_size();
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">type</a>;
|
||||
<a name="l00046"></a>00046 <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">transpose_type</a>;
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00048"></a>00048 <span class="keyword">public</span>:
|
||||
<a name="l00049"></a>00049 <span class="comment">// Implementation detail</span>
|
||||
<a name="l00050"></a>00050 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> _inverse() <span class="keyword">const</span>;
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="keyword">private</span>:
|
||||
<a name="l00053"></a>00053 <span class="comment">// Data</span>
|
||||
<a name="l00054"></a>00054 <a class="code" href="a00021.html" title="Basic 3D vector type.">col_type</a> value[3];
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056 <span class="keyword">public</span>:
|
||||
<a name="l00057"></a>00057 <span class="comment">// Constructors</span>
|
||||
<a name="l00058"></a>00058 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3</a>();
|
||||
<a name="l00059"></a>00059 GLM_FUNC_DECL tmat3x3(tmat3x3 <span class="keyword">const</span> & m);
|
||||
<a name="l00060"></a>00060
|
||||
<a name="l00061"></a>00061 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(
|
||||
<a name="l00062"></a>00062 ctor Null);
|
||||
<a name="l00063"></a>00063 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(
|
||||
<a name="l00064"></a>00064 value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00065"></a>00065 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(
|
||||
<a name="l00066"></a>00066 value_type <span class="keyword">const</span> & x0, value_type <span class="keyword">const</span> & y0, value_type <span class="keyword">const</span> & z0,
|
||||
<a name="l00067"></a>00067 value_type <span class="keyword">const</span> & x1, value_type <span class="keyword">const</span> & y1, value_type <span class="keyword">const</span> & z1,
|
||||
<a name="l00068"></a>00068 value_type <span class="keyword">const</span> & x2, value_type <span class="keyword">const</span> & y2, value_type <span class="keyword">const</span> & z2);
|
||||
<a name="l00069"></a>00069 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(
|
||||
<a name="l00070"></a>00070 <a class="code" href="a00021.html" title="Basic 3D vector type.">col_type</a> <span class="keyword">const</span> & v0,
|
||||
<a name="l00071"></a>00071 <a class="code" href="a00021.html" title="Basic 3D vector type.">col_type</a> <span class="keyword">const</span> & v1,
|
||||
<a name="l00072"></a>00072 <a class="code" href="a00021.html" title="Basic 3D vector type.">col_type</a> <span class="keyword">const</span> & v2);
|
||||
<a name="l00073"></a>00073
|
||||
<a name="l00075"></a>00075 <span class="comment">// Conversions</span>
|
||||
<a name="l00076"></a>00076 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00077"></a>00077 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(
|
||||
<a name="l00078"></a>00078 U <span class="keyword">const</span> & x);
|
||||
<a name="l00079"></a>00079
|
||||
<a name="l00080"></a>00080 <span class="keyword">template</span>
|
||||
<a name="l00081"></a>00081 <
|
||||
<a name="l00082"></a>00082 <span class="keyword">typename</span> X1, <span class="keyword">typename</span> Y1, <span class="keyword">typename</span> Z1,
|
||||
<a name="l00083"></a>00083 <span class="keyword">typename</span> X2, <span class="keyword">typename</span> Y2, <span class="keyword">typename</span> Z2,
|
||||
<a name="l00084"></a>00084 <span class="keyword">typename</span> X3, <span class="keyword">typename</span> Y3, <span class="keyword">typename</span> Z3
|
||||
<a name="l00085"></a>00085 >
|
||||
<a name="l00086"></a>00086 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(
|
||||
<a name="l00087"></a>00087 X1 <span class="keyword">const</span> & x1, Y1 <span class="keyword">const</span> & y1, Z1 <span class="keyword">const</span> & z1,
|
||||
<a name="l00088"></a>00088 X2 <span class="keyword">const</span> & x2, Y2 <span class="keyword">const</span> & y2, Z2 <span class="keyword">const</span> & z2,
|
||||
<a name="l00089"></a>00089 X3 <span class="keyword">const</span> & x3, Y3 <span class="keyword">const</span> & y3, Z3 <span class="keyword">const</span> & z3);
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00091"></a>00091 <span class="keyword">template</span> <<span class="keyword">typename</span> V1, <span class="keyword">typename</span> V2, <span class="keyword">typename</span> V3>
|
||||
<a name="l00092"></a>00092 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(
|
||||
<a name="l00093"></a>00093 <a class="code" href="a00021.html" title="Basic 3D vector type.">tvec3<V1></a> <span class="keyword">const</span> & v1,
|
||||
<a name="l00094"></a>00094 <a class="code" href="a00021.html" title="Basic 3D vector type.">tvec3<V2></a> <span class="keyword">const</span> & v2,
|
||||
<a name="l00095"></a>00095 <a class="code" href="a00021.html" title="Basic 3D vector type.">tvec3<V3></a> <span class="keyword">const</span> & v3);
|
||||
<a name="l00096"></a>00096
|
||||
<a name="l00097"></a>00097 <span class="comment">// Matrix conversions</span>
|
||||
<a name="l00098"></a>00098 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00099"></a>00099 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(<a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00100"></a>00100
|
||||
<a name="l00101"></a>00101 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(<a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00102"></a>00102 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">tmat4x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00103"></a>00103 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(<a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00104"></a>00104 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(<a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00105"></a>00105 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(<a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00106"></a>00106 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(<a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00107"></a>00107 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(<a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00108"></a>00108 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x3(<a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">tmat4x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00109"></a>00109
|
||||
<a name="l00110"></a>00110 <span class="comment">// Accesses</span>
|
||||
<a name="l00111"></a>00111 GLM_FUNC_DECL <a class="code" href="a00021.html" title="Basic 3D vector type.">col_type</a> & operator[](size_type i);
|
||||
<a name="l00112"></a>00112 GLM_FUNC_DECL <a class="code" href="a00021.html" title="Basic 3D vector type.">col_type</a> <span class="keyword">const</span> & operator[](size_type i) <span class="keyword">const</span>;
|
||||
<a name="l00113"></a>00113
|
||||
<a name="l00114"></a>00114 <span class="comment">// Unary updatable operators</span>
|
||||
<a name="l00115"></a>00115 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a>& operator= (<a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00116"></a>00116 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00117"></a>00117 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a>& operator= (<a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00118"></a>00118 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00119"></a>00119 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a>& operator+= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00120"></a>00120 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00121"></a>00121 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a>& operator+= (<a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00122"></a>00122 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00123"></a>00123 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a>& operator-= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00124"></a>00124 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00125"></a>00125 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a>& operator-= (<a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00126"></a>00126 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00127"></a>00127 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a>& operator*= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00128"></a>00128 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00129"></a>00129 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a>& operator*= (<a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00130"></a>00130 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00131"></a>00131 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a>& operator/= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00132"></a>00132 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00133"></a>00133 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a>& operator/= (<a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00134"></a>00134 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a>& operator++ ();
|
||||
<a name="l00135"></a>00135 GLM_FUNC_DECL <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a>& operator-- ();
|
||||
<a name="l00136"></a>00136 };
|
||||
<a name="l00137"></a>00137
|
||||
<a name="l00138"></a>00138 <span class="comment">// Binary operators</span>
|
||||
<a name="l00139"></a>00139 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00140"></a>00140 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> operator+ (
|
||||
<a name="l00141"></a>00141 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00142"></a>00142 <span class="keyword">typename</span> tmat3x3<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00143"></a>00143
|
||||
<a name="l00144"></a>00144 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00145"></a>00145 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> operator+ (
|
||||
<a name="l00146"></a>00146 <span class="keyword">typename</span> tmat3x3<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00147"></a>00147 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00148"></a>00148
|
||||
<a name="l00149"></a>00149 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00150"></a>00150 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> operator+ (
|
||||
<a name="l00151"></a>00151 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00152"></a>00152 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00153"></a>00153
|
||||
<a name="l00154"></a>00154 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00155"></a>00155 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> operator- (
|
||||
<a name="l00156"></a>00156 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00157"></a>00157 <span class="keyword">typename</span> tmat3x3<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00158"></a>00158
|
||||
<a name="l00159"></a>00159 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00160"></a>00160 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> operator- (
|
||||
<a name="l00161"></a>00161 <span class="keyword">typename</span> tmat3x3<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00162"></a>00162 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00163"></a>00163
|
||||
<a name="l00164"></a>00164 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00165"></a>00165 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> operator- (
|
||||
<a name="l00166"></a>00166 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00167"></a>00167 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00168"></a>00168
|
||||
<a name="l00169"></a>00169 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00170"></a>00170 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> operator* (
|
||||
<a name="l00171"></a>00171 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00172"></a>00172 <span class="keyword">typename</span> tmat3x3<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00173"></a>00173
|
||||
<a name="l00174"></a>00174 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00175"></a>00175 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> operator* (
|
||||
<a name="l00176"></a>00176 <span class="keyword">typename</span> tmat3x3<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00177"></a>00177 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00178"></a>00178
|
||||
<a name="l00179"></a>00179 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00180"></a>00180 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat3x3<T>::col_type</a> operator* (
|
||||
<a name="l00181"></a>00181 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00182"></a>00182 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat3x3<T>::row_type</a> <span class="keyword">const</span> & v);
|
||||
<a name="l00183"></a>00183
|
||||
<a name="l00184"></a>00184 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00185"></a>00185 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat3x3<T>::row_type</a> operator* (
|
||||
<a name="l00186"></a>00186 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat3x3<T>::col_type</a> <span class="keyword">const</span> & v,
|
||||
<a name="l00187"></a>00187 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00188"></a>00188
|
||||
<a name="l00189"></a>00189 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00190"></a>00190 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> operator* (
|
||||
<a name="l00191"></a>00191 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00192"></a>00192 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00193"></a>00193
|
||||
<a name="l00194"></a>00194 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00195"></a>00195 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> operator/ (
|
||||
<a name="l00196"></a>00196 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00197"></a>00197 <span class="keyword">typename</span> tmat3x3<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00198"></a>00198
|
||||
<a name="l00199"></a>00199 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00200"></a>00200 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> operator/ (
|
||||
<a name="l00201"></a>00201 <span class="keyword">typename</span> tmat3x3<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00202"></a>00202 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00203"></a>00203
|
||||
<a name="l00204"></a>00204 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00205"></a>00205 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat3x3<T>::col_type</a> operator/ (
|
||||
<a name="l00206"></a>00206 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00207"></a>00207 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat3x3<T>::row_type</a> <span class="keyword">const</span> & v);
|
||||
<a name="l00208"></a>00208
|
||||
<a name="l00209"></a>00209 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00210"></a>00210 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat3x3<T>::row_type</a> operator/ (
|
||||
<a name="l00211"></a>00211 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat3x3<T>::col_type</a> <span class="keyword">const</span> & v,
|
||||
<a name="l00212"></a>00212 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00213"></a>00213
|
||||
<a name="l00214"></a>00214 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00215"></a>00215 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> operator/ (
|
||||
<a name="l00216"></a>00216 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00217"></a>00217 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00218"></a>00218
|
||||
<a name="l00219"></a>00219 <span class="comment">// Unary constant operators</span>
|
||||
<a name="l00220"></a>00220 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00221"></a>00221 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> operator- (
|
||||
<a name="l00222"></a>00222 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00223"></a>00223
|
||||
<a name="l00224"></a>00224 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00225"></a>00225 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> operator-- (
|
||||
<a name="l00226"></a>00226 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00227"></a>00227 <span class="keywordtype">int</span>);
|
||||
<a name="l00228"></a>00228
|
||||
<a name="l00229"></a>00229 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00230"></a>00230 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> operator++ (
|
||||
<a name="l00231"></a>00231 <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00232"></a>00232 <span class="keywordtype">int</span>);
|
||||
<a name="l00233"></a>00233
|
||||
<a name="l00234"></a>00234 } <span class="comment">//namespace detail</span>
|
||||
<a name="l00235"></a>00235
|
||||
<a name="l00236"></a>00236 <span class="keyword">namespace </span>core{
|
||||
<a name="l00237"></a>00237 <span class="keyword">namespace </span>type{
|
||||
<a name="l00238"></a>00238 <span class="keyword">namespace </span>precision
|
||||
<a name="l00239"></a>00239 {
|
||||
<a name="l00244"></a><a class="code" href="a00236.html#ga5bbef8a57946dd7a91c9e0260d9edfbf">00244</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<lowp_float></a> <a class="code" href="a00236.html#ga5bbef8a57946dd7a91c9e0260d9edfbf" title="3 columns of 3 components matrix of low precision floating-point numbers.">lowp_mat3</a>;
|
||||
<a name="l00249"></a><a class="code" href="a00236.html#ga0957c911430959270e296b6abf1463c3">00249</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<mediump_float></a> <a class="code" href="a00236.html#ga0957c911430959270e296b6abf1463c3" title="3 columns of 3 components matrix of medium precision floating-point numbers.">mediump_mat3</a>;
|
||||
<a name="l00254"></a><a class="code" href="a00236.html#ga95c93f032b4713aff2886a39f96822e1">00254</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<highp_float></a> <a class="code" href="a00236.html#ga95c93f032b4713aff2886a39f96822e1" title="3 columns of 3 components matrix of high precision floating-point numbers.">highp_mat3</a>;
|
||||
<a name="l00255"></a>00255
|
||||
<a name="l00260"></a><a class="code" href="a00236.html#ga0bb652c1f4401b9b3359ae6b2bf13678">00260</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<lowp_float></a> <a class="code" href="a00236.html#ga0bb652c1f4401b9b3359ae6b2bf13678" title="3 columns of 3 components matrix of low precision floating-point numbers.">lowp_mat3x3</a>;
|
||||
<a name="l00261"></a>00261
|
||||
<a name="l00266"></a><a class="code" href="a00236.html#ga76c68d8cad333d1f5ba1b20a40415cda">00266</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<mediump_float></a> <a class="code" href="a00236.html#ga76c68d8cad333d1f5ba1b20a40415cda" title="3 columns of 3 components matrix of medium precision floating-point numbers.">mediump_mat3x3</a>;
|
||||
<a name="l00267"></a>00267
|
||||
<a name="l00272"></a><a class="code" href="a00236.html#ga20aa8e5c6061576079c10e86cd743c8d">00272</a> <span class="keyword">typedef</span> <a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<highp_float></a> <a class="code" href="a00236.html#ga20aa8e5c6061576079c10e86cd743c8d" title="3 columns of 3 components matrix of high precision floating-point numbers.">highp_mat3x3</a>;
|
||||
<a name="l00273"></a>00273
|
||||
<a name="l00274"></a>00274 }<span class="comment">//namespace precision</span>
|
||||
<a name="l00275"></a>00275 }<span class="comment">//namespace type</span>
|
||||
<a name="l00276"></a>00276 }<span class="comment">//namespace core</span>
|
||||
<a name="l00277"></a>00277 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00278"></a>00278
|
||||
<a name="l00279"></a>00279 <span class="preprocessor">#ifndef GLM_EXTERNAL_TEMPLATE</span>
|
||||
<a name="l00280"></a>00280 <span class="preprocessor"></span><span class="preprocessor">#include "type_mat3x3.inl"</span>
|
||||
<a name="l00281"></a>00281 <span class="preprocessor">#endif</span>
|
||||
<a name="l00282"></a>00282 <span class="preprocessor"></span>
|
||||
<a name="l00283"></a>00283 <span class="preprocessor">#endif //glm_core_type_mat3x3</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,264 +0,0 @@
|
||||
<!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>type_mat3x4.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">type_mat3x4.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2006-08-05</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-05</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/type_mat3x4.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_type_mat3x4</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_type_mat3x4</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "type_mat.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>detail
|
||||
<a name="l00017"></a>00017 {
|
||||
<a name="l00018"></a>00018 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec1;
|
||||
<a name="l00019"></a>00019 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec2;
|
||||
<a name="l00020"></a>00020 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec3;
|
||||
<a name="l00021"></a>00021 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec4;
|
||||
<a name="l00022"></a>00022 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x2;
|
||||
<a name="l00023"></a>00023 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x3;
|
||||
<a name="l00024"></a>00024 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x4;
|
||||
<a name="l00025"></a>00025 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x2;
|
||||
<a name="l00026"></a>00026 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x3;
|
||||
<a name="l00027"></a>00027 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x4;
|
||||
<a name="l00028"></a>00028 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x2;
|
||||
<a name="l00029"></a>00029 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x3;
|
||||
<a name="l00030"></a>00030 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x4;
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00034"></a>00034 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00035"></a><a class="code" href="a00015.html">00035</a> <span class="keyword">struct </span><a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4</a>
|
||||
<a name="l00036"></a>00036 {
|
||||
<a name="l00037"></a>00037 <span class="keyword">enum</span> ctor{null};
|
||||
<a name="l00038"></a>00038 <span class="keyword">typedef</span> T value_type;
|
||||
<a name="l00039"></a>00039 <span class="keyword">typedef</span> std::size_t size_type;
|
||||
<a name="l00040"></a>00040 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">tvec4<T></a> <a class="code" href="a00022.html" title="Basic 4D vector type.">col_type</a>;
|
||||
<a name="l00041"></a>00041 <span class="keyword">typedef</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tvec3<T></a> <a class="code" href="a00021.html" title="Basic 3D vector type.">row_type</a>;
|
||||
<a name="l00042"></a>00042 <span class="keyword">static</span> GLM_FUNC_DECL size_type col_size();
|
||||
<a name="l00043"></a>00043 <span class="keyword">static</span> GLM_FUNC_DECL size_type row_size();
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">type</a>;
|
||||
<a name="l00046"></a>00046 <span class="keyword">typedef</span> <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">tmat4x3<T></a> <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">transpose_type</a>;
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00048"></a>00048 <span class="keyword">private</span>:
|
||||
<a name="l00049"></a>00049 <span class="comment">// Data </span>
|
||||
<a name="l00050"></a>00050 <a class="code" href="a00022.html" title="Basic 4D vector type.">col_type</a> value[3];
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="keyword">public</span>:
|
||||
<a name="l00053"></a>00053 <span class="comment">// Constructors</span>
|
||||
<a name="l00054"></a>00054 GLM_FUNC_DECL <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4</a>();
|
||||
<a name="l00055"></a>00055 GLM_FUNC_DECL tmat3x4(tmat3x4 <span class="keyword">const</span> & m);
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00057"></a>00057 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(
|
||||
<a name="l00058"></a>00058 ctor Null);
|
||||
<a name="l00059"></a>00059 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(
|
||||
<a name="l00060"></a>00060 value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00061"></a>00061 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(
|
||||
<a name="l00062"></a>00062 value_type <span class="keyword">const</span> & x0, value_type <span class="keyword">const</span> & y0, value_type <span class="keyword">const</span> & z0, value_type <span class="keyword">const</span> & w0,
|
||||
<a name="l00063"></a>00063 value_type <span class="keyword">const</span> & x1, value_type <span class="keyword">const</span> & y1, value_type <span class="keyword">const</span> & z1, value_type <span class="keyword">const</span> & w1,
|
||||
<a name="l00064"></a>00064 value_type <span class="keyword">const</span> & x2, value_type <span class="keyword">const</span> & y2, value_type <span class="keyword">const</span> & z2, value_type <span class="keyword">const</span> & w2);
|
||||
<a name="l00065"></a>00065 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(
|
||||
<a name="l00066"></a>00066 <a class="code" href="a00022.html" title="Basic 4D vector type.">col_type</a> <span class="keyword">const</span> & v0,
|
||||
<a name="l00067"></a>00067 <a class="code" href="a00022.html" title="Basic 4D vector type.">col_type</a> <span class="keyword">const</span> & v1,
|
||||
<a name="l00068"></a>00068 <a class="code" href="a00022.html" title="Basic 4D vector type.">col_type</a> <span class="keyword">const</span> & v2);
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00071"></a>00071 <span class="comment">// Conversions</span>
|
||||
<a name="l00072"></a>00072 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00073"></a>00073 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(
|
||||
<a name="l00074"></a>00074 U <span class="keyword">const</span> & x);
|
||||
<a name="l00075"></a>00075
|
||||
<a name="l00076"></a>00076 <span class="keyword">template</span>
|
||||
<a name="l00077"></a>00077 <
|
||||
<a name="l00078"></a>00078 <span class="keyword">typename</span> X1, <span class="keyword">typename</span> Y1, <span class="keyword">typename</span> Z1, <span class="keyword">typename</span> W1,
|
||||
<a name="l00079"></a>00079 <span class="keyword">typename</span> X2, <span class="keyword">typename</span> Y2, <span class="keyword">typename</span> Z2, <span class="keyword">typename</span> W2,
|
||||
<a name="l00080"></a>00080 <span class="keyword">typename</span> X3, <span class="keyword">typename</span> Y3, <span class="keyword">typename</span> Z3, <span class="keyword">typename</span> W3
|
||||
<a name="l00081"></a>00081 >
|
||||
<a name="l00082"></a>00082 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(
|
||||
<a name="l00083"></a>00083 X1 <span class="keyword">const</span> & x1, Y1 <span class="keyword">const</span> & y1, Z1 <span class="keyword">const</span> & z1, W1 <span class="keyword">const</span> & w1,
|
||||
<a name="l00084"></a>00084 X2 <span class="keyword">const</span> & x2, Y2 <span class="keyword">const</span> & y2, Z2 <span class="keyword">const</span> & z2, W2 <span class="keyword">const</span> & w2,
|
||||
<a name="l00085"></a>00085 X3 <span class="keyword">const</span> & x3, Y3 <span class="keyword">const</span> & y3, Z3 <span class="keyword">const</span> & z3, W3 <span class="keyword">const</span> & w3);
|
||||
<a name="l00086"></a>00086
|
||||
<a name="l00087"></a>00087 <span class="keyword">template</span> <<span class="keyword">typename</span> V1, <span class="keyword">typename</span> V2, <span class="keyword">typename</span> V3>
|
||||
<a name="l00088"></a>00088 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(
|
||||
<a name="l00089"></a>00089 <a class="code" href="a00022.html" title="Basic 4D vector type.">tvec4<V1></a> <span class="keyword">const</span> & v1,
|
||||
<a name="l00090"></a>00090 <a class="code" href="a00022.html" title="Basic 4D vector type.">tvec4<V2></a> <span class="keyword">const</span> & v2,
|
||||
<a name="l00091"></a>00091 <a class="code" href="a00022.html" title="Basic 4D vector type.">tvec4<V3></a> <span class="keyword">const</span> & v3);
|
||||
<a name="l00092"></a>00092
|
||||
<a name="l00093"></a>00093 <span class="comment">// Matrix conversion</span>
|
||||
<a name="l00094"></a>00094 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00095"></a>00095 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(<a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00096"></a>00096
|
||||
<a name="l00097"></a>00097 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(<a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00098"></a>00098 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(<a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00099"></a>00099 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">tmat4x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00100"></a>00100 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(<a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00101"></a>00101 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(<a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00102"></a>00102 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(<a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00103"></a>00103 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(<a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00104"></a>00104 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat3x4(<a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">tmat4x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00105"></a>00105
|
||||
<a name="l00106"></a>00106 <span class="comment">// Accesses</span>
|
||||
<a name="l00107"></a>00107 <a class="code" href="a00022.html" title="Basic 4D vector type.">col_type</a> & operator[](size_type i);
|
||||
<a name="l00108"></a>00108 <a class="code" href="a00022.html" title="Basic 4D vector type.">col_type</a> <span class="keyword">const</span> & operator[](size_type i) <span class="keyword">const</span>;
|
||||
<a name="l00109"></a>00109
|
||||
<a name="l00110"></a>00110 <span class="comment">// Unary updatable operators</span>
|
||||
<a name="l00111"></a>00111 GLM_FUNC_DECL <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> & operator= (<a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00112"></a>00112 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00113"></a>00113 GLM_FUNC_DECL <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> & operator= (<a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00114"></a>00114 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00115"></a>00115 GLM_FUNC_DECL <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> & operator+= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00116"></a>00116 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00117"></a>00117 GLM_FUNC_DECL <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> & operator+= (<a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00118"></a>00118 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00119"></a>00119 GLM_FUNC_DECL <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> & operator-= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00120"></a>00120 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00121"></a>00121 GLM_FUNC_DECL <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> & operator-= (<a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00122"></a>00122 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00123"></a>00123 GLM_FUNC_DECL <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> & operator*= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00124"></a>00124 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00125"></a>00125 GLM_FUNC_DECL <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> & operator*= (<a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00126"></a>00126 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00127"></a>00127 GLM_FUNC_DECL <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> & operator/= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00128"></a>00128
|
||||
<a name="l00129"></a>00129 GLM_FUNC_DECL <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> & operator++ ();
|
||||
<a name="l00130"></a>00130 GLM_FUNC_DECL <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> & operator-- ();
|
||||
<a name="l00131"></a>00131 };
|
||||
<a name="l00132"></a>00132
|
||||
<a name="l00133"></a>00133 <span class="comment">// Binary operators</span>
|
||||
<a name="l00134"></a>00134 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00135"></a>00135 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> operator+ (
|
||||
<a name="l00136"></a>00136 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00137"></a>00137 <span class="keyword">typename</span> tmat3x4<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00138"></a>00138
|
||||
<a name="l00139"></a>00139 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00140"></a>00140 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> operator+ (
|
||||
<a name="l00141"></a>00141 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00142"></a>00142 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00143"></a>00143
|
||||
<a name="l00144"></a>00144 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00145"></a>00145 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> operator- (
|
||||
<a name="l00146"></a>00146 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00147"></a>00147 <span class="keyword">typename</span> tmat3x4<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00148"></a>00148
|
||||
<a name="l00149"></a>00149 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00150"></a>00150 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> operator- (
|
||||
<a name="l00151"></a>00151 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00152"></a>00152 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00153"></a>00153
|
||||
<a name="l00154"></a>00154 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00155"></a>00155 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> operator* (
|
||||
<a name="l00156"></a>00156 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00157"></a>00157 <span class="keyword">typename</span> tmat3x4<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00158"></a>00158
|
||||
<a name="l00159"></a>00159 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00160"></a>00160 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> operator* (
|
||||
<a name="l00161"></a>00161 <span class="keyword">typename</span> tmat3x4<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00162"></a>00162 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00163"></a>00163
|
||||
<a name="l00164"></a>00164 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00165"></a>00165 <span class="keyword">typename</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">tmat3x4<T>::col_type</a> operator* (
|
||||
<a name="l00166"></a>00166 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00167"></a>00167 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat3x4<T>::row_type</a> <span class="keyword">const</span> & v);
|
||||
<a name="l00168"></a>00168
|
||||
<a name="l00169"></a>00169 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00170"></a>00170 <span class="keyword">typename</span> <a class="code" href="a00021.html" title="Basic 3D vector type.">tmat3x4<T>::row_type</a> operator* (
|
||||
<a name="l00171"></a>00171 <span class="keyword">typename</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">tmat3x4<T>::col_type</a> <span class="keyword">const</span> & v,
|
||||
<a name="l00172"></a>00172 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00173"></a>00173
|
||||
<a name="l00174"></a>00174 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00175"></a>00175 <a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">tmat4x4<T></a> operator* (
|
||||
<a name="l00176"></a>00176 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00177"></a>00177 <a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">tmat4x3<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00178"></a>00178
|
||||
<a name="l00179"></a>00179 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00180"></a>00180 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> operator/ (
|
||||
<a name="l00181"></a>00181 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00182"></a>00182 <span class="keyword">typename</span> tmat3x4<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00183"></a>00183
|
||||
<a name="l00184"></a>00184 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00185"></a>00185 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> operator/ (
|
||||
<a name="l00186"></a>00186 <span class="keyword">typename</span> tmat3x4<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00187"></a>00187 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00188"></a>00188
|
||||
<a name="l00189"></a>00189 <span class="comment">// Unary constant operators</span>
|
||||
<a name="l00190"></a>00190 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00191"></a>00191 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> operator- (
|
||||
<a name="l00192"></a>00192 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00193"></a>00193
|
||||
<a name="l00194"></a>00194 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00195"></a>00195 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> operator-- (
|
||||
<a name="l00196"></a>00196 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00197"></a>00197 <span class="keywordtype">int</span>);
|
||||
<a name="l00198"></a>00198
|
||||
<a name="l00199"></a>00199 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00200"></a>00200 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> operator++ (
|
||||
<a name="l00201"></a>00201 <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00202"></a>00202 <span class="keywordtype">int</span>);
|
||||
<a name="l00203"></a>00203
|
||||
<a name="l00204"></a>00204 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00205"></a>00205
|
||||
<a name="l00206"></a>00206 <span class="keyword">namespace </span>core{
|
||||
<a name="l00207"></a>00207 <span class="keyword">namespace </span>type{
|
||||
<a name="l00208"></a>00208 <span class="keyword">namespace </span>precision
|
||||
<a name="l00209"></a>00209 {
|
||||
<a name="l00213"></a><a class="code" href="a00156.html#a2e7a430ab7df03b63b5c7b776f7675a1">00213</a> <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4<lowp_float></a> <a class="code" href="a00156.html#a2e7a430ab7df03b63b5c7b776f7675a1" title="3 columns of 4 components matrix of low precision floating-point numbers.">lowp_mat3x4</a>;
|
||||
<a name="l00217"></a><a class="code" href="a00156.html#a167125bb484e539a3c56f7b7aa0409f8">00217</a> <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4<mediump_float></a> <a class="code" href="a00156.html#a167125bb484e539a3c56f7b7aa0409f8" title="3 columns of 4 components matrix of medium precision floating-point numbers.">mediump_mat3x4</a>;
|
||||
<a name="l00221"></a><a class="code" href="a00156.html#a8efc769b3edb7a3f420d6344e2308c72">00221</a> <span class="keyword">typedef</span> <a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4<highp_float></a> <a class="code" href="a00156.html#a8efc769b3edb7a3f420d6344e2308c72" title="3 columns of 4 components matrix of high precision floating-point numbers.">highp_mat3x4</a>;
|
||||
<a name="l00222"></a>00222
|
||||
<a name="l00223"></a>00223 }<span class="comment">//namespace precision</span>
|
||||
<a name="l00224"></a>00224 }<span class="comment">//namespace type</span>
|
||||
<a name="l00225"></a>00225 }<span class="comment">//namespace core</span>
|
||||
<a name="l00226"></a>00226 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00227"></a>00227
|
||||
<a name="l00228"></a>00228 <span class="preprocessor">#ifndef GLM_EXTERNAL_TEMPLATE</span>
|
||||
<a name="l00229"></a>00229 <span class="preprocessor"></span><span class="preprocessor">#include "type_mat3x4.inl"</span>
|
||||
<a name="l00230"></a>00230 <span class="preprocessor">#endif</span>
|
||||
<a name="l00231"></a>00231 <span class="preprocessor"></span>
|
||||
<a name="l00232"></a>00232 <span class="preprocessor">#endif //glm_core_type_mat3x4</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,271 +0,0 @@
|
||||
<!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>type_mat4x2.hpp Source File</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.4 -->
|
||||
<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="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">type_mat4x2.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)</span>
|
||||
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2006-10-01</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// Updated : 2010-02-11</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">// File : glm/core/type_mat4x2.hpp</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"></span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef glm_core_type_mat4x2</span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define glm_core_type_mat4x2</span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor"></span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "type_mat.hpp"</span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00016"></a>00016 <span class="keyword">namespace </span>detail
|
||||
<a name="l00017"></a>00017 {
|
||||
<a name="l00018"></a>00018 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec1;
|
||||
<a name="l00019"></a>00019 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec2;
|
||||
<a name="l00020"></a>00020 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec3;
|
||||
<a name="l00021"></a>00021 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tvec4;
|
||||
<a name="l00022"></a>00022 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x2;
|
||||
<a name="l00023"></a>00023 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x3;
|
||||
<a name="l00024"></a>00024 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat2x4;
|
||||
<a name="l00025"></a>00025 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x2;
|
||||
<a name="l00026"></a>00026 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x3;
|
||||
<a name="l00027"></a>00027 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat3x4;
|
||||
<a name="l00028"></a>00028 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x2;
|
||||
<a name="l00029"></a>00029 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x3;
|
||||
<a name="l00030"></a>00030 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">struct </span>tmat4x4;
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00034"></a>00034 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00035"></a><a class="code" href="a00016.html">00035</a> <span class="keyword">struct </span><a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2</a>
|
||||
<a name="l00036"></a>00036 {
|
||||
<a name="l00037"></a>00037 <span class="keyword">enum</span> ctor{null};
|
||||
<a name="l00038"></a>00038 <span class="keyword">typedef</span> T value_type;
|
||||
<a name="l00039"></a>00039 <span class="keyword">typedef</span> std::size_t size_type;
|
||||
<a name="l00040"></a>00040 <span class="keyword">typedef</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<T></a> <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a>;
|
||||
<a name="l00041"></a>00041 <span class="keyword">typedef</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">tvec4<T></a> <a class="code" href="a00022.html" title="Basic 4D vector type.">row_type</a>;
|
||||
<a name="l00042"></a>00042 <span class="keyword">static</span> GLM_FUNC_DECL size_type col_size();
|
||||
<a name="l00043"></a>00043 <span class="keyword">static</span> GLM_FUNC_DECL size_type row_size();
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">type</a>;
|
||||
<a name="l00046"></a>00046 <span class="keyword">typedef</span> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">transpose_type</a>;
|
||||
<a name="l00047"></a>00047
|
||||
<a name="l00048"></a>00048 <span class="keyword">private</span>:
|
||||
<a name="l00049"></a>00049 <span class="comment">// Data </span>
|
||||
<a name="l00050"></a>00050 <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> value[4];
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <span class="keyword">public</span>:
|
||||
<a name="l00053"></a>00053 <span class="comment">// Constructors</span>
|
||||
<a name="l00054"></a>00054 GLM_FUNC_DECL <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2</a>();
|
||||
<a name="l00055"></a>00055 GLM_FUNC_DECL tmat4x2(tmat4x2 <span class="keyword">const</span> & m);
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00057"></a>00057 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(
|
||||
<a name="l00058"></a>00058 ctor Null);
|
||||
<a name="l00059"></a>00059 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(
|
||||
<a name="l00060"></a>00060 value_type <span class="keyword">const</span> & x);
|
||||
<a name="l00061"></a>00061 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(
|
||||
<a name="l00062"></a>00062 value_type <span class="keyword">const</span> & x0, value_type <span class="keyword">const</span> & y0,
|
||||
<a name="l00063"></a>00063 value_type <span class="keyword">const</span> & x1, value_type <span class="keyword">const</span> & y1,
|
||||
<a name="l00064"></a>00064 value_type <span class="keyword">const</span> & x2, value_type <span class="keyword">const</span> & y2,
|
||||
<a name="l00065"></a>00065 value_type <span class="keyword">const</span> & x3, value_type <span class="keyword">const</span> & y3);
|
||||
<a name="l00066"></a>00066 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(
|
||||
<a name="l00067"></a>00067 <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> <span class="keyword">const</span> & v0,
|
||||
<a name="l00068"></a>00068 <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> <span class="keyword">const</span> & v1,
|
||||
<a name="l00069"></a>00069 <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> <span class="keyword">const</span> & v2,
|
||||
<a name="l00070"></a>00070 <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> <span class="keyword">const</span> & v3);
|
||||
<a name="l00071"></a>00071
|
||||
<a name="l00073"></a>00073 <span class="comment">// Conversions</span>
|
||||
<a name="l00074"></a>00074 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00075"></a>00075 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(
|
||||
<a name="l00076"></a>00076 U <span class="keyword">const</span> & x);
|
||||
<a name="l00077"></a>00077
|
||||
<a name="l00078"></a>00078 <span class="keyword">template</span>
|
||||
<a name="l00079"></a>00079 <
|
||||
<a name="l00080"></a>00080 <span class="keyword">typename</span> X1, <span class="keyword">typename</span> Y1,
|
||||
<a name="l00081"></a>00081 <span class="keyword">typename</span> X2, <span class="keyword">typename</span> Y2,
|
||||
<a name="l00082"></a>00082 <span class="keyword">typename</span> X3, <span class="keyword">typename</span> Y3,
|
||||
<a name="l00083"></a>00083 <span class="keyword">typename</span> X4, <span class="keyword">typename</span> Y4
|
||||
<a name="l00084"></a>00084 >
|
||||
<a name="l00085"></a>00085 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(
|
||||
<a name="l00086"></a>00086 X1 <span class="keyword">const</span> & x1, Y1 <span class="keyword">const</span> & y1,
|
||||
<a name="l00087"></a>00087 X2 <span class="keyword">const</span> & x2, Y2 <span class="keyword">const</span> & y2,
|
||||
<a name="l00088"></a>00088 X3 <span class="keyword">const</span> & x3, Y3 <span class="keyword">const</span> & y3,
|
||||
<a name="l00089"></a>00089 X4 <span class="keyword">const</span> & x4, Y4 <span class="keyword">const</span> & y4);
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00091"></a>00091 <span class="keyword">template</span> <<span class="keyword">typename</span> V1, <span class="keyword">typename</span> V2, <span class="keyword">typename</span> V3, <span class="keyword">typename</span> V4>
|
||||
<a name="l00092"></a>00092 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(
|
||||
<a name="l00093"></a>00093 <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<V1></a> <span class="keyword">const</span> & v1,
|
||||
<a name="l00094"></a>00094 <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<V2></a> <span class="keyword">const</span> & v2,
|
||||
<a name="l00095"></a>00095 <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<V3></a> <span class="keyword">const</span> & v3,
|
||||
<a name="l00096"></a>00096 <a class="code" href="a00020.html" title="The basic 2D vector type.">tvec2<V4></a> <span class="keyword">const</span> & v4);
|
||||
<a name="l00097"></a>00097
|
||||
<a name="l00098"></a>00098 <span class="comment">// Matrix conversions</span>
|
||||
<a name="l00099"></a>00099 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00100"></a>00100 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(<a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00101"></a>00101
|
||||
<a name="l00102"></a>00102 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(<a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00103"></a>00103 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(<a class="code" href="a00014.html" title="Template for 3 * 3 matrix of floating-point numbers.">tmat3x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00104"></a>00104 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(<a class="code" href="a00018.html" title="Template for 4 * 4 matrix of floating-point numbers.">tmat4x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00105"></a>00105 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(<a class="code" href="a00011.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">tmat2x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00106"></a>00106 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(<a class="code" href="a00013.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">tmat3x2<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00107"></a>00107 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(<a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00108"></a>00108 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(<a class="code" href="a00017.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">tmat4x3<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00109"></a>00109 GLM_FUNC_DECL <span class="keyword">explicit</span> tmat4x2(<a class="code" href="a00015.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">tmat3x4<T></a> <span class="keyword">const</span> & x);
|
||||
<a name="l00110"></a>00110
|
||||
<a name="l00111"></a>00111 <span class="comment">// Accesses</span>
|
||||
<a name="l00112"></a>00112 GLM_FUNC_DECL <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> & operator[](size_type i);
|
||||
<a name="l00113"></a>00113 GLM_FUNC_DECL <a class="code" href="a00020.html" title="The basic 2D vector type.">col_type</a> <span class="keyword">const</span> & operator[](size_type i) <span class="keyword">const</span>;
|
||||
<a name="l00114"></a>00114
|
||||
<a name="l00115"></a>00115 <span class="comment">// Unary updatable operators</span>
|
||||
<a name="l00116"></a>00116 GLM_FUNC_DECL <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a>& operator= (<a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00117"></a>00117 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00118"></a>00118 GLM_FUNC_DECL <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a>& operator= (<a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00119"></a>00119 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00120"></a>00120 GLM_FUNC_DECL <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a>& operator+= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00121"></a>00121 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00122"></a>00122 GLM_FUNC_DECL <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a>& operator+= (<a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00123"></a>00123 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00124"></a>00124 GLM_FUNC_DECL <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a>& operator-= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00125"></a>00125 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00126"></a>00126 GLM_FUNC_DECL <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a>& operator-= (<a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00127"></a>00127 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00128"></a>00128 GLM_FUNC_DECL <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a>& operator*= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00129"></a>00129 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00130"></a>00130 GLM_FUNC_DECL <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a>& operator*= (<a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<U></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00131"></a>00131 <span class="keyword">template</span> <<span class="keyword">typename</span> U>
|
||||
<a name="l00132"></a>00132 GLM_FUNC_DECL <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a>& operator/= (U <span class="keyword">const</span> & s);
|
||||
<a name="l00133"></a>00133
|
||||
<a name="l00134"></a>00134 GLM_FUNC_DECL <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a>& operator++ ();
|
||||
<a name="l00135"></a>00135 GLM_FUNC_DECL <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a>& operator-- ();
|
||||
<a name="l00136"></a>00136 };
|
||||
<a name="l00137"></a>00137
|
||||
<a name="l00138"></a>00138 <span class="comment">// Binary operators</span>
|
||||
<a name="l00139"></a>00139 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00140"></a>00140 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> operator+ (
|
||||
<a name="l00141"></a>00141 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00142"></a>00142 <span class="keyword">typename</span> tmat4x2<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00143"></a>00143
|
||||
<a name="l00144"></a>00144 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00145"></a>00145 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> operator+ (
|
||||
<a name="l00146"></a>00146 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00147"></a>00147 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00148"></a>00148
|
||||
<a name="l00149"></a>00149 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00150"></a>00150 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> operator- (
|
||||
<a name="l00151"></a>00151 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00152"></a>00152 <span class="keyword">typename</span> tmat4x2<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00153"></a>00153
|
||||
<a name="l00154"></a>00154 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00155"></a>00155 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> operator- (
|
||||
<a name="l00156"></a>00156 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00157"></a>00157 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00158"></a>00158
|
||||
<a name="l00159"></a>00159 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00160"></a>00160 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> operator* (
|
||||
<a name="l00161"></a>00161 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00162"></a>00162 <span class="keyword">typename</span> tmat4x2<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00163"></a>00163
|
||||
<a name="l00164"></a>00164 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00165"></a>00165 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> operator* (
|
||||
<a name="l00166"></a>00166 <span class="keyword">typename</span> tmat4x2<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00167"></a>00167 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00168"></a>00168
|
||||
<a name="l00169"></a>00169 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00170"></a>00170 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat4x2<T>::col_type</a> operator* (
|
||||
<a name="l00171"></a>00171 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00172"></a>00172 <span class="keyword">typename</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">tmat4x2<T>::row_type</a> <span class="keyword">const</span> & v);
|
||||
<a name="l00173"></a>00173
|
||||
<a name="l00174"></a>00174 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00175"></a>00175 <span class="keyword">typename</span> <a class="code" href="a00022.html" title="Basic 4D vector type.">tmat4x2<T>::row_type</a> operator* (
|
||||
<a name="l00176"></a>00176 <span class="keyword">typename</span> <a class="code" href="a00020.html" title="The basic 2D vector type.">tmat4x2<T>::col_type</a> <span class="keyword">const</span> & v,
|
||||
<a name="l00177"></a>00177 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00178"></a>00178
|
||||
<a name="l00179"></a>00179 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00180"></a>00180 <a class="code" href="a00010.html" title="Template for 2 * 2 matrix of floating-point numbers.">tmat2x2<T></a> operator* (
|
||||
<a name="l00181"></a>00181 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m1,
|
||||
<a name="l00182"></a>00182 <a class="code" href="a00012.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">tmat2x4<T></a> <span class="keyword">const</span> & m2);
|
||||
<a name="l00183"></a>00183
|
||||
<a name="l00184"></a>00184 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00185"></a>00185 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> operator/ (
|
||||
<a name="l00186"></a>00186 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00187"></a>00187 <span class="keyword">typename</span> tmat4x2<T>::value_type <span class="keyword">const</span> & s);
|
||||
<a name="l00188"></a>00188
|
||||
<a name="l00189"></a>00189 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00190"></a>00190 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> operator/ (
|
||||
<a name="l00191"></a>00191 <span class="keyword">typename</span> tmat4x2<T>::value_type <span class="keyword">const</span> & s,
|
||||
<a name="l00192"></a>00192 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00193"></a>00193
|
||||
<a name="l00194"></a>00194 <span class="comment">// Unary constant operators</span>
|
||||
<a name="l00195"></a>00195 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00196"></a>00196 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> operator- (
|
||||
<a name="l00197"></a>00197 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m);
|
||||
<a name="l00198"></a>00198
|
||||
<a name="l00199"></a>00199 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00200"></a>00200 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> operator-- (
|
||||
<a name="l00201"></a>00201 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00202"></a>00202 <span class="keywordtype">int</span>);
|
||||
<a name="l00203"></a>00203
|
||||
<a name="l00204"></a>00204 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00205"></a>00205 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> operator++ (
|
||||
<a name="l00206"></a>00206 <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">tmat4x2<T></a> <span class="keyword">const</span> & m,
|
||||
<a name="l00207"></a>00207 <span class="keywordtype">int</span>);
|
||||
<a name="l00208"></a>00208
|
||||
<a name="l00209"></a>00209 } <span class="comment">//namespace detail</span>
|
||||
<a name="l00210"></a>00210
|
||||
<a name="l00211"></a>00211 <span class="keyword">namespace </span>core{
|
||||
<a name="l00212"></a>00212 <span class="keyword">namespace </span>type{
|
||||
<a name="l00213"></a>00213 <span class="keyword">namespace </span>precision
|
||||
<a name="l00214"></a>00214 {
|
||||
<a name="l00219"></a><a class="code" href="a00236.html#gac88de3260a910584e02b98f087a34502">00219</a> <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2<lowp_float></a> <a class="code" href="a00236.html#gac88de3260a910584e02b98f087a34502" title="4 columns of 2 components matrix of low precision floating-point numbers.">lowp_mat4x2</a>;
|
||||
<a name="l00220"></a>00220
|
||||
<a name="l00225"></a><a class="code" href="a00236.html#ga31b1d523c1dc83c0ef9cded942950666">00225</a> <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2<mediump_float></a> <a class="code" href="a00236.html#ga31b1d523c1dc83c0ef9cded942950666" title="4 columns of 2 components matrix of medium precision floating-point numbers.">mediump_mat4x2</a>;
|
||||
<a name="l00226"></a>00226
|
||||
<a name="l00231"></a><a class="code" href="a00236.html#ga3178de2c189bfdda4c73d6af8017f5d3">00231</a> <span class="keyword">typedef</span> <a class="code" href="a00016.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2<highp_float></a> <a class="code" href="a00236.html#ga3178de2c189bfdda4c73d6af8017f5d3" title="4 columns of 2 components matrix of high precision floating-point numbers.">highp_mat4x2</a>;
|
||||
<a name="l00232"></a>00232
|
||||
<a name="l00233"></a>00233 }<span class="comment">//namespace precision</span>
|
||||
<a name="l00234"></a>00234 }<span class="comment">//namespace type</span>
|
||||
<a name="l00235"></a>00235 }<span class="comment">//namespace core</span>
|
||||
<a name="l00236"></a>00236 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00237"></a>00237
|
||||
<a name="l00238"></a>00238 <span class="preprocessor">#ifndef GLM_EXTERNAL_TEMPLATE</span>
|
||||
<a name="l00239"></a>00239 <span class="preprocessor"></span><span class="preprocessor">#include "type_mat4x2.inl"</span>
|
||||
<a name="l00240"></a>00240 <span class="preprocessor">#endif</span>
|
||||
<a name="l00241"></a>00241 <span class="preprocessor"></span>
|
||||
<a name="l00242"></a>00242 <span class="preprocessor">#endif //glm_core_type_mat4x2</span>
|
||||
</pre></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.4 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user