mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 02:04:35 +00:00
154 lines
7.3 KiB
HTML
154 lines
7.3 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<title>GLM: glm::gtx::integer Namespace Reference</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.6.1 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="namespaces.html"><span>Namespace List</span></a></li>
|
|
<li><a href="namespacemembers.html"><span>Namespace Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="navpath"><a class="el" href="a00124.html">glm</a>::<a class="el" href="a00150.html">gtx</a>::<a class="el" href="a00173.html">integer</a>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>glm::gtx::integer Namespace Reference</h1>
|
|
<p>GLM_GTX_integer extension: Add support for <a class="el" href="a00173.html" title="GLM_GTX_integer extension: Add support for integer for core functions.">integer</a> for <a class="el" href="a00125.html" title="GLM core. Namespace that includes all the feature define by GLSL 1.30.8 specification...">core</a> functions.
|
|
<a href="#_details">More...</a></p>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td colspan="2"><h2>Functions</h2></td></tr>
|
|
<tr><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr><td class="memTemplItemLeft" align="right" valign="top">genType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00173.html#ab45d1385cbb477a5684f80b0e24807e4">factorial</a> (genType const &x)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the factorial value of a number (!12 max, <a class="el" href="a00173.html" title="GLM_GTX_integer extension: Add support for integer for core functions.">integer</a> only) From GLM_GTX_integer extension. <a href="#ab45d1385cbb477a5684f80b0e24807e4"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00173.html#af48bc86895ab82c0e1f6f282d5cb6861">mod</a> (int x, int y)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Modulus. <a href="#af48bc86895ab82c0e1f6f282d5cb6861"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00173.html#af34adb6543aab76a364f40bb77dbaeb8">pow</a> (int x, int y)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns x raised to the y power. <a href="#af34adb6543aab76a364f40bb77dbaeb8"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00173.html#ac6ee2be886e1f3be68adc5ee0552bad7">sqrt</a> (int x)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the positive square root of x. <a href="#ac6ee2be886e1f3be68adc5ee0552bad7"></a><br/></td></tr>
|
|
</table>
|
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
|
<p>GLM_GTX_integer extension: Add support for <a class="el" href="a00173.html" title="GLM_GTX_integer extension: Add support for integer for core functions.">integer</a> for <a class="el" href="a00125.html" title="GLM core. Namespace that includes all the feature define by GLSL 1.30.8 specification...">core</a> functions. </p>
|
|
<hr/><h2>Function Documentation</h2>
|
|
<a class="anchor" id="ab45d1385cbb477a5684f80b0e24807e4"></a><!-- doxytag: member="glm::gtx::integer::factorial" ref="ab45d1385cbb477a5684f80b0e24807e4" args="(genType const &x)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">genType glm::gtx::integer::factorial </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genType const & </td>
|
|
<td class="paramname"> <em>x</em></td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Return the factorial value of a number (!12 max, <a class="el" href="a00173.html" title="GLM_GTX_integer extension: Add support for integer for core functions.">integer</a> only) From GLM_GTX_integer extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af48bc86895ab82c0e1f6f282d5cb6861"></a><!-- doxytag: member="glm::gtx::integer::mod" ref="af48bc86895ab82c0e1f6f282d5cb6861" args="(int x, int y)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int glm::gtx::integer::mod </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>y</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Modulus. </p>
|
|
<p>Returns x - y * floor(x / y) for each component in x using the floating point value y. From GLM_GTX_integer extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af34adb6543aab76a364f40bb77dbaeb8"></a><!-- doxytag: member="glm::gtx::integer::pow" ref="af34adb6543aab76a364f40bb77dbaeb8" args="(int x, int y)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int glm::gtx::integer::pow </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>y</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns x raised to the y power. </p>
|
|
<p>From GLM_GTX_integer extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac6ee2be886e1f3be68adc5ee0552bad7"></a><!-- doxytag: member="glm::gtx::integer::sqrt" ref="ac6ee2be886e1f3be68adc5ee0552bad7" args="(int x)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int glm::gtx::integer::sqrt </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>x</em></td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the positive square root of x. </p>
|
|
<p>From GLM_GTX_integer extension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr size="1"/><address style="text-align: right;"><small>Generated on Mon Nov 16 11:23:24 2009 for GLM by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
|
|
</body>
|
|
</html>
|