geometry_8c.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 798 行 · 第 1/3 页
HTML
798 行
<td class="md" nowrap valign="top">ostream & </td> <td class="mdname" nowrap> <em>os</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classLine.html">Line</a> </td> <td class="mdname" nowrap> <em>l</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This function prints the line to the specified output stream in the format y = ax + b. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>os</em> </td><td>output stream to which output is written </td></tr><tr><td valign=top><em>l</em> </td><td>line that is written to output stream </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>output sream to which output is appended. </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01245">1245</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l01484">Line::getACoefficient</a>(), <a class="el" href="Geometry_8C-source.html#l01491">Line::getBCoefficient</a>(), and <a class="el" href="Geometry_8C-source.html#l01498">Line::getCCoefficient</a>(). </td> </tr></table><a name="a14" doxytag="Geometry.C::operator<<"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> ostream& operator<< </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">ostream & </td> <td class="mdname" nowrap> <em>os</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classVecPosition.html">VecPosition</a> </td> <td class="mdname" nowrap> <em>v</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Overloaded version of the C++ output operator for VecPositions. This operator makes it possible to use VecPositions in output statements (e.g. cout << v). The x- and y-coordinates of the <a class="el" href="classVecPosition.html">VecPosition</a> are printed in the format (x,y). <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>os</em> </td><td>output stream to which information should be written </td></tr><tr><td valign=top><em>v</em> </td><td>a <a class="el" href="classVecPosition.html">VecPosition</a> which must be printed </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>output stream containing (x,y) </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00495">495</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00103">VecPosition::m_x</a>, and <a class="el" href="Geometry_8h-source.html#l00104">VecPosition::m_y</a>. </td> </tr></table><a name="a3" doxytag="Geometry.C::Rad2Deg"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="Geometry_8h.html#a2">AngDeg</a> Rad2Deg </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="Geometry_8h.html#a1">AngRad</a> </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This function converts an angle in radians to the corresponding angle in degrees. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>x</em> </td><td>an angle in radians </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the corresponding angle in degrees </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00085">85</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, and <a class="el" href="Geometry_8h-source.html#l00051">AngRad</a>. </td> </tr></table><a name="a0" doxytag="Geometry.C::sign"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int sign </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname1" valign="top" nowrap> <em>d1</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This function returns the sign of a give double. 1 is positive, -1 is negative <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>d1</em> </td><td>first parameter </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the sign of this double </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00057">57</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>. </td> </tr></table><a name="a6" doxytag="Geometry.C::sinDeg"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> double sinDeg </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="Geometry_8h.html#a2">AngDeg</a> </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This function returns the sine of a given angle in degrees using the built-in sine function that works with angles in radians. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>x</em> </td><td>an angle in degrees </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the sine of the given angle </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00112">112</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, and <a class="el" href="Geometry_8C-source.html#l00094">Deg2Rad</a>(). </td> </tr></table><a name="a7" doxytag="Geometry.C::tanDeg"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> double tanDeg </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="Geometry_8h.html#a2">AngDeg</a> </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This function returns the tangent of a given angle in degrees using the built-in tangent function that works with angles in radians. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>x</em> </td><td>an angle in degrees </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the tangent of the given angle </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00121">121</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, and <a class="el" href="Geometry_8C-source.html#l00094">Deg2Rad</a>(). </td> </tr></table><hr><address><small>Generated on Thu Mar 7 00:37:46 2002 for UvA Trilearn 2001 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.12 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?