1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <!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>UAS2: E:/uas2/Server/calc_funcs.h Source File</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.2 -->
- <div class="navigation" id="top">
- <div class="tabs">
- <ul>
- <li><a href="main.html"><span>Main Page</span></a></li>
- <li><a href="annotated.html"><span>Classes</span></a></li>
- <li class="current"><a href="files.html"><span>Files</span></a></li>
- </ul>
- </div>
- <div class="tabs">
- <ul>
- <li><a href="files.html"><span>File List</span></a></li>
- <li><a href="globals.html"><span>File Members</span></a></li>
- </ul>
- </div>
- <h1>E:/uas2/Server/calc_funcs.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* calc_funcs.h </span>
- <a name="l00002"></a>00002 <span class="comment"> * </span>
- <a name="l00003"></a>00003 <span class="comment"> * Header file for calc_funcs.c </span>
- <a name="l00004"></a>00004 <span class="comment"> * </span>
- <a name="l00005"></a>00005 <span class="comment"> * Ver 3.2 2002.05.25 Deryck Morales </span>
- <a name="l00006"></a>00006 <span class="comment"> * <deryck@alumni.carnegiemellon.edu> </span>
- <a name="l00007"></a>00007 <span class="comment"> * Nick Jong </span>
- <a name="l00008"></a>00008 <span class="comment"> * <nkj@andrew.cmu.edu> </span>
- <a name="l00009"></a>00009 <span class="comment"> */</span>
- <a name="l00010"></a>00010 <span class="preprocessor">#ifndef _CALC_FUNCS_H_</span>
- <a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define _CALC_FUNCS_H_</span>
- <a name="l00012"></a>00012 <span class="preprocessor"></span>
- <a name="l00013"></a>00013 <span class="preprocessor">#include <math.h></span>
- <a name="l00014"></a>00014
- <a name="l00015"></a>00015 <span class="preprocessor">#define PAI 3.14159265</span>
- <a name="l00016"></a>00016 <span class="preprocessor"></span>
- <a name="l00017"></a>00017 <span class="keywordtype">int</span> fix_angle(<span class="keywordtype">int</span> angle);
- <a name="l00018"></a>00018 <span class="keywordtype">int</span> calc_sup_angle(<span class="keywordtype">int</span> dir1, <span class="keywordtype">int</span> dir2);
- <a name="l00019"></a>00019 <span class="keywordtype">int</span> calc_diff_angle(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
- <a name="l00020"></a>00020 <span class="keywordtype">int</span> calc_middle_angle(<span class="keywordtype">int</span> dir1, <span class="keywordtype">int</span> dir2);
- <a name="l00021"></a>00021 <span class="keywordtype">int</span> <a class="code" href="_war_spell_8cpp.html#a0f68e5d2082ea88cacfd2e5891359f5f">deg_to_index_160</a>(<span class="keywordtype">int</span> val);
- <a name="l00022"></a>00022 <span class="keywordtype">int</span> index_160_to_deg(<span class="keywordtype">int</span> idx);
- <a name="l00023"></a>00023 <span class="keywordtype">int</span> calc_vec_to_deg(<span class="keywordtype">int</span> vx, <span class="keywordtype">int</span> vy);
- <a name="l00024"></a>00024
- <a name="l00025"></a>00025 <span class="keywordtype">void</span> calc_XY_from_deg_val(<span class="keywordtype">int</span> ,<span class="keywordtype">int</span> , <span class="keywordtype">int</span> *, <span class="keywordtype">int</span> *);
- <a name="l00026"></a>00026 <span class="keywordtype">void</span> calc_vertical_point_on_line(<span class="keywordtype">int</span> px, <span class="keywordtype">int</span> py, <span class="keywordtype">int</span> lx, <span class="keywordtype">int</span> ly, <span class="keywordtype">int</span> ldir, <span class="keywordtype">int</span> *result_x, <span class="keywordtype">int</span> *result_y);
- <a name="l00027"></a>00027 <span class="keywordtype">void</span> calc_rotation(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> ang, <span class="keywordtype">int</span> *nx, <span class="keywordtype">int</span> *ny);
- <a name="l00028"></a>00028
- <a name="l00029"></a>00029
- <a name="l00030"></a>00030 <span class="preprocessor">#endif</span>
- <a name="l00031"></a>00031 <span class="preprocessor"></span>
- </pre></div></div>
- <hr size="1"/><address style="text-align: right;"><small>Generated by
- <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
- </body>
- </html>
|