Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bad97183153701b09df5fae1052b1c30 > files > 1998

crystalspace-doc-1.2.1-5mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Crystal Space 1.2.1: csgeom/math.h File Reference (Crystal Space 1.2.1 Public API Reference)</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
 <tr height="59">
  <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td>
  <td class="head"><h2>Public API Reference</h2></td>
 </tr>
 <tr height="11">
  <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
 </tr>
</table>
<div class="content">
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;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="classes.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<h1>csgeom/math.h File Reference</h1>Generic mathematic utility functions. <a href="#_details">More...</a>
<p>
<code>#include &quot;<a class="el" href="algorithms_8h-source.html">csutil/algorithms.h</a>&quot;</code><br>

<p>
<a href="math_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template&lt;class T&gt; </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#g1c0100d274735df4706c4b903c9ba6f5">csClamp</a> (const T &amp;a, T max, T min)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clamp a between max and min.  <a href="group__geom__utils.html#g1c0100d274735df4706c4b903c9ba6f5"></a><br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template&lt;class T, class Tfactor&gt; </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#gc34fecd9e6f85e9fcfc2bb081b160b81">csLerp</a> (const T &amp;a, const T &amp;b, const Tfactor &amp;f)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Performs a linear interpolation between <em>a</em> and <em>b</em> with the factor <em>f</em>.  <a href="group__geom__utils.html#gc34fecd9e6f85e9fcfc2bb081b160b81"></a><br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template&lt;class T&gt; </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">const T &amp;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#g79291314e7548d3eb1df274158908235">csMax</a> (const T &amp;a, const T &amp;b)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns bigger of a and b.  <a href="group__geom__utils.html#g79291314e7548d3eb1df274158908235"></a><br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template&lt;class T&gt; </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">const T &amp;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#g16a5d316a30efbd72510b608e3233ea1">csMin</a> (const T &amp;a, const T &amp;b)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns smaller of a and b.  <a href="group__geom__utils.html#g16a5d316a30efbd72510b608e3233ea1"></a><br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template&lt;class T&gt; </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#g5aa770bf13eb4b8ee00f34ae9ef64567">csSmoothStep</a> (const T &amp;a, T max, T min)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Performs a smooth interpolation of a on range min to max.  <a href="group__geom__utils.html#g5aa770bf13eb4b8ee00f34ae9ef64567"></a><br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template&lt;class T, class U&gt; </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#g1286eb4497b8d01ea5f8272509b7e99a">csSort</a> (T &amp;a, T &amp;b, U &amp;x, U &amp;y)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sort a and b in order of size.  <a href="group__geom__utils.html#g1286eb4497b8d01ea5f8272509b7e99a"></a><br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template&lt;class T&gt; </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#g3192df8378b422cf7c3e4320a3c838bf">csSort</a> (T &amp;a, T &amp;b)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sort a and b in order of size.  <a href="group__geom__utils.html#g3192df8378b422cf7c3e4320a3c838bf"></a><br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template&lt;class T&gt; </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#g7e2758395886579dcca2faba48e67f94">csSquare</a> (const T &amp;x)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the square of the argument.  <a href="group__geom__utils.html#g7e2758395886579dcca2faba48e67f94"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#gb84e24b220cd40059738cc8aea20ea18">csFinite</a> (double d)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks if a double-precision floating point value is finite.  <a href="group__geom__utils.html#gb84e24b220cd40059738cc8aea20ea18"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#ge589d6b05b27636b5c3d5d2ecc7af508">csFinite</a> (float f)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks if a floating point value is finite.  <a href="group__geom__utils.html#ge589d6b05b27636b5c3d5d2ecc7af508"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#ga452ffc07132608369d7b1f941638325">csNaN</a> (double d)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks if a double-precision floating point value is not-a-number.  <a href="group__geom__utils.html#ga452ffc07132608369d7b1f941638325"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#g5a443dfc570b99a0a3e3eec1141b0ffc">csNaN</a> (float f)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks if a floating point value is not-a-number.  <a href="group__geom__utils.html#g5a443dfc570b99a0a3e3eec1141b0ffc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#g28088446394ecb4b3a0a40443b4bf76f">csNormal</a> (double d)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks if a double-precision floating point value is normal.  <a href="group__geom__utils.html#g28088446394ecb4b3a0a40443b4bf76f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__geom__utils.html#gc1760aed89ed0cc61c40d2826ab21c2c">csNormal</a> (float f)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks if a floating point value is normal (not infinite or nan).  <a href="group__geom__utils.html#gc1760aed89ed0cc61c40d2826ab21c2c"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Generic mathematic utility functions. 
<p>

<p>Definition in file <a class="el" href="math_8h-source.html">math.h</a>.</p>
<hr size="1"><address><small>Generated for Crystal Space 1.2.1 by 
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 
</small></address> </div></body> </html>