📄 fixedmath_8h.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: fixedmath.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><div class="nav"><a class="el" href="dir_000003.htm">include</a></div><h1>fixedmath.h File Reference</h1><p><a href="fixedmath_8h-source.htm">Go to the source code of this file.</a><h2>Functions</h2><ul><li>MG_EXPORT <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga3">fixsqrt</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x)<dl class="el"><dd class="mdescRight">Returns the non-negative square root of a fixed point value. <a href="group__fixed__math__fns.htm#ga3"></a><br></dl><li>MG_EXPORT <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga4">fixhypot</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x, <a class="el" href="group__gdi__types.htm#ga10">fixed</a> y)<dl class="el"><dd class="mdescRight">Returns the Euclidean distance from the origin. <a href="group__fixed__math__fns.htm#ga4"></a><br></dl><li>MG_EXPORT <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga5">fixatan</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x)<dl class="el"><dd class="mdescRight">Calculates the arc tangent of a fixed point value. <a href="group__fixed__math__fns.htm#ga5"></a><br></dl><li>MG_EXPORT <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga6">fixatan2</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> y, <a class="el" href="group__gdi__types.htm#ga10">fixed</a> x)<dl class="el"><dd class="mdescRight">Calculates the arc tangent of two fixed point variables. <a href="group__fixed__math__fns.htm#ga6"></a><br></dl><li>static <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga7">ftofix</a> (double x)<dl class="el"><dd class="mdescRight">Converts a float point value to a fixed point value. <a href="group__fixed__math__fns.htm#ga7"></a><br></dl><li>static double <a class="el" href="group__fixed__math__fns.htm#ga8">fixtof</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x)<dl class="el"><dd class="mdescRight">Converts a fixed point value to a float point value. <a href="group__fixed__math__fns.htm#ga8"></a><br></dl><li>static <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga9">fixadd</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x, <a class="el" href="group__gdi__types.htm#ga10">fixed</a> y)<dl class="el"><dd class="mdescRight">Returns the sum of two fixed point values. <a href="group__fixed__math__fns.htm#ga9"></a><br></dl><li>static <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga10">fixsub</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x, <a class="el" href="group__gdi__types.htm#ga10">fixed</a> y)<dl class="el"><dd class="mdescRight">Subtract a fixed point value from another. <a href="group__fixed__math__fns.htm#ga10"></a><br></dl><li>static <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga11">fixmul</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x, <a class="el" href="group__gdi__types.htm#ga10">fixed</a> y)<dl class="el"><dd class="mdescRight">Returns the product of two fixed point values. <a href="group__fixed__math__fns.htm#ga11"></a><br></dl><li>static <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga12">fixdiv</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x, <a class="el" href="group__gdi__types.htm#ga10">fixed</a> y)<dl class="el"><dd class="mdescRight">Returns the quotient of two fixed point values. <a href="group__fixed__math__fns.htm#ga12"></a><br></dl><li>static int <a class="el" href="group__fixed__math__fns.htm#ga13">fixceil</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x)<dl class="el"><dd class="mdescRight">Rounds a fixed point value to the nearest integer. <a href="group__fixed__math__fns.htm#ga13"></a><br></dl><li>static <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga14">itofix</a> (int x)<dl class="el"><dd class="mdescRight">Converts an integer to a fixed point value. <a href="group__fixed__math__fns.htm#ga14"></a><br></dl><li>static int <a class="el" href="group__fixed__math__fns.htm#ga15">fixtoi</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x)<dl class="el"><dd class="mdescRight">Converts an fixed point value to an integer. <a href="group__fixed__math__fns.htm#ga15"></a><br></dl><li>static <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga16">fixcos</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x)<dl class="el"><dd class="mdescRight">Returns the cosine of a fixed point. <a href="group__fixed__math__fns.htm#ga16"></a><br></dl><li>static <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga17">fixsin</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x)<dl class="el"><dd class="mdescRight">Returns the sine of a fixed point. <a href="group__fixed__math__fns.htm#ga17"></a><br></dl><li>static <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga18">fixtan</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x)<dl class="el"><dd class="mdescRight">Returns the tangent of a fixed point. <a href="group__fixed__math__fns.htm#ga18"></a><br></dl><li>static <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga19">fixacos</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x)<dl class="el"><dd class="mdescRight">Calculates and returns the arc cosine of a fixed point. <a href="group__fixed__math__fns.htm#ga19"></a><br></dl><li>static <a class="el" href="group__gdi__types.htm#ga10">fixed</a> <a class="el" href="group__fixed__math__fns.htm#ga20">fixasin</a> (<a class="el" href="group__gdi__types.htm#ga10">fixed</a> x)<dl class="el"><dd class="mdescRight">Calculates and returns the arc sine of a fixed point. <a href="group__fixed__math__fns.htm#ga20"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2><dl compact><dt><b>Author:</b></dt><dd>Wei Yongming <<a href="mailto:ymwei@minigui.org">ymwei@minigui.org</a>> </dd></dl><dl compact><dt><b>Date:</b></dt><dd>2002/01/12</dd></dl>This file includes fixed point and three-dimension math routines.<p><div class="fragment"><pre class="fragment"> Copyright (C) 2002-2007 Feynman Software. Copyright (C) 1998-2002 Wei Yongming. All rights reserved by Feynman Software. This file is part of MiniGUI, a compact cross-platform Graphics User Interface (GUI) support system for real-time embedded systems. </pre></div> <p>Definition in file <a class="el" href="fixedmath_8h-source.htm">fixedmath.h</a>.<hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:51 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -