<!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::geom::Triangle 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_1geom.html">geom</a> </li> <li><a class="el" href="classgeos_1_1geom_1_1Triangle.html">geos::geom::Triangle</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-attribs">Public Attributes</a> </div> <div class="headertitle"> <h1>geos::geom::Triangle Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::geom::Triangle" --> <p>Represents a planar triangle, and provides methods for calculating various properties of triangles. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="Triangle_8h_source.html">Triangle.h</a>></code></p> <p><a href="classgeos_1_1geom_1_1Triangle-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a068233b8bc8d7b7aed1260beb36d4852"></a><!-- doxytag: member="geos::geom::Triangle::Triangle" ref="a068233b8bc8d7b7aed1260beb36d4852" args="(const Coordinate &nP0, const Coordinate &nP1, const Coordinate &nP2)" --> </td><td class="memItemRight" valign="bottom"><b>Triangle</b> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &nP0, const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &nP1, const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &nP2)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Triangle.html#ad5b0905bee3ed78c709e6f22b3062c7e">inCentre</a> (<a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &resultPoint)</td></tr> <tr><td colspan="2"><h2><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab30ed7979f268c708c92d92c77e35f23"></a><!-- doxytag: member="geos::geom::Triangle::p0" ref="ab30ed7979f268c708c92d92c77e35f23" args="" --> <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> </td><td class="memItemRight" valign="bottom"><b>p0</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab5e0e2421b7462f9abe892da69f18953"></a><!-- doxytag: member="geos::geom::Triangle::p1" ref="ab5e0e2421b7462f9abe892da69f18953" args="" --> <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> </td><td class="memItemRight" valign="bottom"><b>p1</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab381328587badbe69cc847133f56c79e"></a><!-- doxytag: member="geos::geom::Triangle::p2" ref="ab381328587badbe69cc847133f56c79e" args="" --> <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> </td><td class="memItemRight" valign="bottom"><b>p2</b></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Represents a planar triangle, and provides methods for calculating various properties of triangles. </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="ad5b0905bee3ed78c709e6f22b3062c7e"></a><!-- doxytag: member="geos::geom::Triangle::inCentre" ref="ad5b0905bee3ed78c709e6f22b3062c7e" args="(Coordinate &resultPoint)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void geos::geom::Triangle::inCentre </td> <td>(</td> <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> & </td> <td class="paramname"> <em>resultPoint</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>The inCentre of a triangle is the point which is equidistant from the sides of the triangle. This is also the point at which the bisectors of the angles meet.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>resultPoint</em> </td><td>the point into which to write the inCentre of the triangle </td></tr> </table> </dd> </dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="Triangle_8h_source.html">Triangle.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>