<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_xmath_8h" xml:lang="en-US">
<title>xmath.h File Reference</title>
<indexterm><primary>xmath.h</primary></indexterm>
<simplesect>
    <title>Macros    </title>
        <itemizedlist>
            <listitem><para>#<link linkend="_class_timer">define</link> <link linkend="_xmath_8h_1a7c9dbdd84b78ee80460b20557d0ef3dc">NCLAMP</link>(<link linkend="_class_timer">x</link>,  <link linkend="_class_timer">min</link>,  <link linkend="_class_timer">max</link>)&#160;&#160;&#160;(<link linkend="_class_timer">x</link> - <link linkend="_class_timer">min</link>) / (<link linkend="_class_timer">max</link> - <link linkend="_class_timer">min</link>)</para>
</listitem>
            <listitem><para>#<link linkend="_class_timer">define</link> <link linkend="_xmath_8h_1ab7a632da6fe068777633505c6a4d2353">RANGE</link>(<link linkend="_class_timer">i</link>,  <link linkend="_class_timer">min</link>,  <link linkend="_class_timer">max</link>)&#160;&#160;&#160;((<link linkend="_class_timer">i</link> &gt; <link linkend="_class_timer">min</link>) &amp;&amp; (<link linkend="_class_timer">i</link> &lt; <link linkend="_class_timer">max</link>)) ? <link linkend="_class_timer">true</link> : <link linkend="_class_timer">false</link></para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Macro Definition Documentation</title>
<anchor xml:id="_xmath_8h_1a7c9dbdd84b78ee80460b20557d0ef3dc"/><section>
    <title>NCLAMP</title>
<indexterm><primary>NCLAMP</primary><secondary>xmath.h</secondary></indexterm>
<indexterm><primary>xmath.h</primary><secondary>NCLAMP</secondary></indexterm>
<para><computeroutput>#<link linkend="_class_timer">define</link> NCLAMP( <link linkend="_class_timer">x</link>,  <link linkend="_class_timer">min</link>,  <link linkend="_class_timer">max</link>)&#160;&#160;&#160;(<link linkend="_class_timer">x</link> - <link linkend="_class_timer">min</link>) / (<link linkend="_class_timer">max</link> - <link linkend="_class_timer">min</link>)</computeroutput></para><para>
Definition at line <link linkend="_xmath_8h_source_1l00018">18</link> of file <link linkend="_xmath_8h_source">xmath.h</link>.</para>
</section>
<anchor xml:id="_xmath_8h_1ab7a632da6fe068777633505c6a4d2353"/><section>
    <title>RANGE</title>
<indexterm><primary>RANGE</primary><secondary>xmath.h</secondary></indexterm>
<indexterm><primary>xmath.h</primary><secondary>RANGE</secondary></indexterm>
<para><computeroutput>#<link linkend="_class_timer">define</link> RANGE( <link linkend="_class_timer">i</link>,  <link linkend="_class_timer">min</link>,  <link linkend="_class_timer">max</link>)&#160;&#160;&#160;((<link linkend="_class_timer">i</link> &gt; <link linkend="_class_timer">min</link>) &amp;&amp; (<link linkend="_class_timer">i</link> &lt; <link linkend="_class_timer">max</link>)) ? <link linkend="_class_timer">true</link> : <link linkend="_class_timer">false</link></computeroutput></para><para>
Definition at line <link linkend="_xmath_8h_source_1l00016">16</link> of file <link linkend="_xmath_8h_source">xmath.h</link>.</para>
</section>
</section>
</section>
