⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__fixed__math__fns.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<p>Calculates the arc tangent of two fixed point variables. <p>This function calculates the arc tangent of the two variables <em>x</em> and <em>y</em>. It is similar to calculating the arc tangent of <em>y</em> / <em>x</em>, except that the signs of both arguments are used to determine the quadrant of the result.<p><dl compact><dt><b>Returns:</b></dt><dd>Returns the result in radians, which is between -PI and PI (inclusive).</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fixed__math__fns.htm#ga5">fixatan</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga13" doxytag="fixedmath.h::fixceil"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int fixceil           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>x</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline, static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Rounds a fixed point value to the nearest integer. <p>This function rounds the fixed point value <em>x</em> to the nearest integer and returns it.<p><dl compact><dt><b>Returns:</b></dt><dd>The rounded integer value. </dd></dl><p>Definition at line <a class="el" href="fixedmath_8h-source.htm#l00304">304</a> of file <a class="el" href="fixedmath_8h-source.htm">fixedmath.h</a>.    </td>  </tr></table><a class="anchor" name="ga16" doxytag="fixedmath.h::fixcos"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> fixcos           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>x</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline, static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the cosine of a fixed point. <p>This function returns the cosine of the fixed point <em>x</em>, where <em>x</em> is given in radians.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fixed__math__fns.htm#ga19">fixacos</a> </dd></dl><p>Definition at line <a class="el" href="fixedmath_8h-source.htm#l00353">353</a> of file <a class="el" href="fixedmath_8h-source.htm">fixedmath.h</a>.    </td>  </tr></table><a class="anchor" name="ga12" doxytag="fixedmath.h::fixdiv"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> fixdiv           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a>&nbsp;</td>          <td class="mdname" nowrap> <em>x</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__gdi__types.htm#ga10">fixed</a>&nbsp;</td>          <td class="mdname" nowrap> <em>y</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [inline, static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the quotient of two fixed point values. <p>This function returns the quotient of two fixed point values <em>x</em> and <em>y</em>.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>The dividend. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>The divisor. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The quotient. If the result runs out of range of fixed point, this function sets <em>errno</em> to <em>ERANGE</em>.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fixed__math__fns.htm#ga11">fixmul</a> </dd></dl><p>Definition at line <a class="el" href="fixedmath_8h-source.htm#l00284">284</a> of file <a class="el" href="fixedmath_8h-source.htm">fixedmath.h</a>.<p>References <a class="el" href="fixedmath_8h-source.htm#l00174">fixtof()</a>, and <a class="el" href="fixedmath_8h-source.htm#l00150">ftofix()</a>.    </td>  </tr></table><a class="anchor" name="ga4" doxytag="fixedmath.h::fixhypot"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> fixhypot           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a>&nbsp;</td>          <td class="mdname" nowrap> <em>x</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__gdi__types.htm#ga10">fixed</a>&nbsp;</td>          <td class="mdname" nowrap> <em>y</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the Euclidean distance from the origin. <p>The function returns the <em>sqrt</em>(x*x+y*y). This is the length of the hypotenuse of a right-angle triangle with sides of length <em>x</em> and <em>y</em>, or the distance of the point <em></em>(x,y) from the origin.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fixed__math__fns.htm#ga3">fixsqrt</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga11" doxytag="fixedmath.h::fixmul"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> fixmul           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a>&nbsp;</td>          <td class="mdname" nowrap> <em>x</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__gdi__types.htm#ga10">fixed</a>&nbsp;</td>          <td class="mdname" nowrap> <em>y</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [inline, static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the product of two fixed point values. <p>This function returns the product of two fixed point values <em>x</em> and <em>y</em>.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>The faciend. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>The multiplicato. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The prodcut. If the result runs out of range of fixed point, this function sets <em>errno</em> to <em>ERANGE</em>.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fixed__math__fns.htm#ga12">fixdiv</a> </dd></dl><p>Definition at line <a class="el" href="fixedmath_8h-source.htm#l00266">266</a> of file <a class="el" href="fixedmath_8h-source.htm">fixedmath.h</a>.<p>References <a class="el" href="fixedmath_8h-source.htm#l00174">fixtof()</a>, and <a class="el" href="fixedmath_8h-source.htm#l00150">ftofix()</a>.    </td>  </tr></table><a class="anchor" name="ga17" doxytag="fixedmath.h::fixsin"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> fixsin           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>x</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline, static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the sine of a fixed point. <p>This function returns the sine of the fixed point <em>x</em>, where <em>x</em> is given in radians.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fixed__math__fns.htm#ga20">fixasin</a> </dd></dl><p>Definition at line <a class="el" href="fixedmath_8h-source.htm#l00367">367</a> of file <a class="el" href="fixedmath_8h-source.htm">fixedmath.h</a>.    </td>  </tr></table><a class="anchor" name="ga3" doxytag="fixedmath.h::fixsqrt"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -