<!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>GEOS: geos::noding::Octant Class Reference</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.7.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="namespacegeos.html">geos</a> </li> <li><a class="el" href="namespacegeos_1_1noding.html">noding</a> </li> <li><a class="el" href="classgeos_1_1noding_1_1Octant.html">geos::noding::Octant</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-static-methods">Static Public Member Functions</a> </div> <div class="headertitle"> <h1>geos::noding::Octant Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::noding::Octant" --> <p>Methods for computing and working with octants of the Cartesian plane. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="Octant_8h_source.html">Octant.h</a>></code></p> <p><a href="classgeos_1_1noding_1_1Octant-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1Octant.html#a350e883accdfa65dc98a557d95badf7e">octant</a> (double dx, double dy)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1Octant.html#a1aea0d1d6ad3989179cd22087ea88b42">octant</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &p0, const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &p1)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ab2f05c322d09a51c7becfb0ed32542"></a><!-- doxytag: member="geos::noding::Octant::octant" ref="a9ab2f05c322d09a51c7becfb0ed32542" args="(const geom::Coordinate *p0, const geom::Coordinate *p1)" --> static int </td><td class="memItemRight" valign="bottom"><b>octant</b> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> *p0, const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> *p1)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Methods for computing and working with octants of the Cartesian plane. </p> <p>Octants are numbered as follows:</p> <p>2|1 3 | 0 ---+-- 4 | 7 5|6</p> <p>If line segments lie along a coordinate axis, the octant is the lower of the two possible values.</p> <p>Last port: noding/Octant.java rev. 1.2 (JTS-1.7) </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a350e883accdfa65dc98a557d95badf7e"></a><!-- doxytag: member="geos::noding::Octant::octant" ref="a350e883accdfa65dc98a557d95badf7e" args="(double dx, double dy)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static int geos::noding::Octant::octant </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>dx</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>dy</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the octant of a directed line segment (specified as x and y displacements, which cannot both be 0). </p> </div> </div> <a class="anchor" id="a1aea0d1d6ad3989179cd22087ea88b42"></a><!-- doxytag: member="geos::noding::Octant::octant" ref="a1aea0d1d6ad3989179cd22087ea88b42" args="(const geom::Coordinate &p0, const geom::Coordinate &p1)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static int geos::noding::Octant::octant </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> & </td> <td class="paramname"> <em>p0</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> & </td> <td class="paramname"> <em>p1</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the octant of a directed line segment from p0 to p1. </p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="Octant_8h_source.html">Octant.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Jul 22 2010 for GEOS by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>