geos_390_docs/classgeos_1_1geom_1_1Coordi...

583 lines
38 KiB
HTML

<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>GEOS: geos::geom::Coordinate Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">GEOS
&#160;<span id="projectnumber">3.9.1dev</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;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 id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacegeos.html">geos</a></li><li class="navelem"><a class="el" href="namespacegeos_1_1geom.html">geom</a></li><li class="navelem"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a> &#124;
<a href="classgeos_1_1geom_1_1Coordinate-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">geos::geom::Coordinate Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates. ">Coordinate</a> is the lightweight class used to store coordinates.
<a href="classgeos_1_1geom_1_1Coordinate.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="Coordinate_8h_source.html">geos.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for geos::geom::Coordinate:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1geom_1_1Coordinate__coll__graph.svg" width="286" height="39"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structgeos_1_1geom_1_1Coordinate_1_1HashCode.html">HashCode</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a92d121905d46be35fe34bc342957d895"><td class="memItemLeft" align="right" valign="top">typedef std::set&lt; const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> *, <a class="el" href="structgeos_1_1geom_1_1CoordinateLessThen.html">CoordinateLessThen</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a92d121905d46be35fe34bc342957d895">ConstSet</a></td></tr>
<tr class="memdesc:a92d121905d46be35fe34bc342957d895"><td class="mdescLeft">&#160;</td><td class="mdescRight">A set of const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates. ">Coordinate</a> pointers. <a href="#a92d121905d46be35fe34bc342957d895">More...</a><br /></td></tr>
<tr class="separator:a92d121905d46be35fe34bc342957d895"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59a363dbe699943a46ea014355e63cac"><td class="memItemLeft" align="right" valign="top">typedef std::vector&lt; const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a59a363dbe699943a46ea014355e63cac">ConstVect</a></td></tr>
<tr class="memdesc:a59a363dbe699943a46ea014355e63cac"><td class="mdescLeft">&#160;</td><td class="mdescRight">A vector of const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates. ">Coordinate</a> pointers. <a href="#a59a363dbe699943a46ea014355e63cac">More...</a><br /></td></tr>
<tr class="separator:a59a363dbe699943a46ea014355e63cac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a933fc24747d76da8799945f9e5fd1644"><td class="memItemLeft" align="right" valign="top">typedef std::stack&lt; const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a933fc24747d76da8799945f9e5fd1644">ConstStack</a></td></tr>
<tr class="memdesc:a933fc24747d76da8799945f9e5fd1644"><td class="mdescLeft">&#160;</td><td class="mdescRight">A stack of const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates. ">Coordinate</a> pointers. <a href="#a933fc24747d76da8799945f9e5fd1644">More...</a><br /></td></tr>
<tr class="separator:a933fc24747d76da8799945f9e5fd1644"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59345d3a409b5d2ebe01fcfcdcca92cb"><td class="memItemLeft" align="right" valign="top">typedef std::vector&lt; <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a59345d3a409b5d2ebe01fcfcdcca92cb">Vect</a></td></tr>
<tr class="memdesc:a59345d3a409b5d2ebe01fcfcdcca92cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">A vector of <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates. ">Coordinate</a> objects (real object, not pointers) <a href="#a59345d3a409b5d2ebe01fcfcdcca92cb">More...</a><br /></td></tr>
<tr class="separator:a59345d3a409b5d2ebe01fcfcdcca92cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a97bb820b994c6a77cbe50db79f80a2c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a97bb820b994c6a77cbe50db79f80a2c2">setNull</a> ()</td></tr>
<tr class="separator:a97bb820b994c6a77cbe50db79f80a2c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2090c511f26246ceddf8ecc29889beec"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a2090c511f26246ceddf8ecc29889beec">isNull</a> () const </td></tr>
<tr class="separator:a2090c511f26246ceddf8ecc29889beec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a612dede1256ac33d34e883830987707a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a612dede1256ac33d34e883830987707a">Coordinate</a> (double xNew=0.0, double yNew=0.0, double zNew=<a class="el" href="namespacegeos.html#a3207604faf2271d877e558c0c7fd2dcc">DoubleNotANumber</a>)</td></tr>
<tr class="separator:a612dede1256ac33d34e883830987707a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c21bb7a17fd64f70d6ee55990cb87b9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a2c21bb7a17fd64f70d6ee55990cb87b9">equals2D</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;other) const </td></tr>
<tr class="separator:a2c21bb7a17fd64f70d6ee55990cb87b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb42140c4c88c2d91d9ec231b6d08b21"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#afb42140c4c88c2d91d9ec231b6d08b21">equals</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;other) const </td></tr>
<tr class="memdesc:afb42140c4c88c2d91d9ec231b6d08b21"><td class="mdescLeft">&#160;</td><td class="mdescRight">2D only <a href="#afb42140c4c88c2d91d9ec231b6d08b21">More...</a><br /></td></tr>
<tr class="separator:afb42140c4c88c2d91d9ec231b6d08b21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48dd998aac25658a9f29065642d9de7f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a48dd998aac25658a9f29065642d9de7f">compareTo</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;other) const </td></tr>
<tr class="memdesc:a48dd998aac25658a9f29065642d9de7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">TODO: deprecate this, move logic to <a class="el" href="structgeos_1_1geom_1_1CoordinateLessThen.html" title="Strict weak ordering Functor for Coordinate. ">CoordinateLessThen</a> instead. <a href="#a48dd998aac25658a9f29065642d9de7f">More...</a><br /></td></tr>
<tr class="separator:a48dd998aac25658a9f29065642d9de7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93a622593e64bf9491e3e1c88a737f7d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a93a622593e64bf9491e3e1c88a737f7d">equals3D</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;other) const </td></tr>
<tr class="memdesc:a93a622593e64bf9491e3e1c88a737f7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">3D comparison <a href="#a93a622593e64bf9491e3e1c88a737f7d">More...</a><br /></td></tr>
<tr class="separator:a93a622593e64bf9491e3e1c88a737f7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6330f12ee3977d5a7a0fd729ea29a41f"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a6330f12ee3977d5a7a0fd729ea29a41f">toString</a> () const </td></tr>
<tr class="memdesc:a6330f12ee3977d5a7a0fd729ea29a41f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a string of the form <em>(x,y,z)</em> . <a href="#a6330f12ee3977d5a7a0fd729ea29a41f">More...</a><br /></td></tr>
<tr class="separator:a6330f12ee3977d5a7a0fd729ea29a41f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a30687133579e261178d099a238ef19"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a9a30687133579e261178d099a238ef19">distance</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;p) const </td></tr>
<tr class="separator:a9a30687133579e261178d099a238ef19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af351abe86cf377f506413aa869f8959a"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#af351abe86cf377f506413aa869f8959a">distanceSquared</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;p) const </td></tr>
<tr class="separator:af351abe86cf377f506413aa869f8959a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a45201240fe444687d56c1e3cb751d8df"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a45201240fe444687d56c1e3cb751d8df">getNull</a> ()</td></tr>
<tr class="separator:a45201240fe444687d56c1e3cb751d8df"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ad809a77e5715e490a7e5f95c8611737e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#ad809a77e5715e490a7e5f95c8611737e">x</a></td></tr>
<tr class="memdesc:ad809a77e5715e490a7e5f95c8611737e"><td class="mdescLeft">&#160;</td><td class="mdescRight">x-coordinate <a href="#ad809a77e5715e490a7e5f95c8611737e">More...</a><br /></td></tr>
<tr class="separator:ad809a77e5715e490a7e5f95c8611737e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdeb58356624ebe25cbbf5b6021c3d9d"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#acdeb58356624ebe25cbbf5b6021c3d9d">y</a></td></tr>
<tr class="memdesc:acdeb58356624ebe25cbbf5b6021c3d9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">y-coordinate <a href="#acdeb58356624ebe25cbbf5b6021c3d9d">More...</a><br /></td></tr>
<tr class="separator:acdeb58356624ebe25cbbf5b6021c3d9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0c1b234c851ae467c371dea8861612f"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#af0c1b234c851ae467c371dea8861612f">z</a></td></tr>
<tr class="memdesc:af0c1b234c851ae467c371dea8861612f"><td class="mdescLeft">&#160;</td><td class="mdescRight">z-coordinate <a href="#af0c1b234c851ae467c371dea8861612f">More...</a><br /></td></tr>
<tr class="separator:af0c1b234c851ae467c371dea8861612f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr class="memitem:a6e9071d39c9202f485fd6fafece53eeb"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a6e9071d39c9202f485fd6fafece53eeb">_nullCoord</a></td></tr>
<tr class="separator:a6e9071d39c9202f485fd6fafece53eeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates. ">Coordinate</a> is the lightweight class used to store coordinates. </p>
<p>It is distinct from <a class="el" href="classgeos_1_1geom_1_1Point.html">Point</a>, which is a subclass of <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory. ">Geometry</a>. Unlike objects of type <a class="el" href="classgeos_1_1geom_1_1Point.html">Point</a> (which contain additional information such as an envelope, a precision model, and spatial reference system information), a <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates. ">Coordinate</a> only contains ordinate values and accessor methods.</p>
<p><a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates. ">Coordinate</a> objects are two-dimensional points, with an additional z-ordinate. JTS does not support any operations on the z-ordinate except the basic accessor functions.</p>
<p>Constructed coordinates will have a z-ordinate of DoubleNotANumber. The standard comparison functions will ignore the z-ordinate. </p>
<p>Definition at line <a class="el" href="Coordinate_8h_source.html#l00060">60</a> of file <a class="el" href="Coordinate_8h_source.html">Coordinate.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a92d121905d46be35fe34bc342957d895"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef std::set&lt;const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a>*, <a class="el" href="structgeos_1_1geom_1_1CoordinateLessThen.html">CoordinateLessThen</a>&gt; <a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a92d121905d46be35fe34bc342957d895">geos::geom::Coordinate::ConstSet</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>A set of const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates. ">Coordinate</a> pointers. </p>
<p>Definition at line <a class="el" href="Coordinate_8h_source.html#l00068">68</a> of file <a class="el" href="Coordinate_8h_source.html">Coordinate.h</a>.</p>
</div>
</div>
<a class="anchor" id="a933fc24747d76da8799945f9e5fd1644"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef std::stack&lt;const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a>*&gt; <a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a933fc24747d76da8799945f9e5fd1644">geos::geom::Coordinate::ConstStack</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>A stack of const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates. ">Coordinate</a> pointers. </p>
<p>Definition at line <a class="el" href="Coordinate_8h_source.html#l00074">74</a> of file <a class="el" href="Coordinate_8h_source.html">Coordinate.h</a>.</p>
</div>
</div>
<a class="anchor" id="a59a363dbe699943a46ea014355e63cac"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef std::vector&lt;const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a>*&gt; <a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a59a363dbe699943a46ea014355e63cac">geos::geom::Coordinate::ConstVect</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>A vector of const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates. ">Coordinate</a> pointers. </p>
<p>Definition at line <a class="el" href="Coordinate_8h_source.html#l00071">71</a> of file <a class="el" href="Coordinate_8h_source.html">Coordinate.h</a>.</p>
</div>
</div>
<a class="anchor" id="a59345d3a409b5d2ebe01fcfcdcca92cb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef std::vector&lt;<a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a>&gt; <a class="el" href="classgeos_1_1geom_1_1Coordinate.html#a59345d3a409b5d2ebe01fcfcdcca92cb">geos::geom::Coordinate::Vect</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>A vector of <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates. ">Coordinate</a> objects (real object, not pointers) </p>
<p>Definition at line <a class="el" href="Coordinate_8h_source.html#l00077">77</a> of file <a class="el" href="Coordinate_8h_source.html">Coordinate.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a612dede1256ac33d34e883830987707a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">geos::geom::Coordinate::Coordinate </td>
<td>(</td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>xNew</em> = <code>0.0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>yNew</em> = <code>0.0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>zNew</em> = <code><a class="el" href="namespacegeos.html#a3207604faf2271d877e558c0c7fd2dcc">DoubleNotANumber</a></code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a48dd998aac25658a9f29065642d9de7f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int geos::geom::Coordinate::compareTo </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>TODO: deprecate this, move logic to <a class="el" href="structgeos_1_1geom_1_1CoordinateLessThen.html" title="Strict weak ordering Functor for Coordinate. ">CoordinateLessThen</a> instead. </p>
<p>Referenced by <a class="el" href="operation_2overlayng_2Edge_8h_source.html#l00159">geos::operation::overlayng::Edge::compareTo()</a>.</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1geom_1_1Coordinate_a48dd998aac25658a9f29065642d9de7f_icgraph.svg" width="426" height="55"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a9a30687133579e261178d099a238ef19"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double geos::geom::Coordinate::distance </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>p</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>TODO: obsoleted this, can use PrecisionModel::makePrecise(Coordinate*) instead </p>
<p>Referenced by <a class="el" href="Vertex_8h_source.html#l00122">geos::triangulate::quadedge::Vertex::equals()</a>, and <a class="el" href="OffsetSegmentString_8h_source.html#l00067">geos::operation::buffer::OffsetSegmentString::isRedundant()</a>.</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="classgeos_1_1geom_1_1Coordinate_a9a30687133579e261178d099a238ef19_icgraph.svg" width="100%" height="404"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="af351abe86cf377f506413aa869f8959a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double geos::geom::Coordinate::distanceSquared </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>p</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Referenced by <a class="el" href="CentralEndpointIntersector_8h_source.html#l00140">geos::algorithm::CentralEndpointIntersector::findNearestPoint()</a>, <a class="el" href="PointPairDistance_8h_source.html#l00053">geos::algorithm::distance::PointPairDistance::initialize()</a>, <a class="el" href="PointPairDistance_8h_source.html#l00087">geos::algorithm::distance::PointPairDistance::setMaximum()</a>, and <a class="el" href="PointPairDistance_8h_source.html#l00106">geos::algorithm::distance::PointPairDistance::setMinimum()</a>.</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1geom_1_1Coordinate_af351abe86cf377f506413aa869f8959a_icgraph.svg" width="498" height="259"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="afb42140c4c88c2d91d9ec231b6d08b21"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool geos::geom::Coordinate::equals </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>2D only </p>
<p>Referenced by <a class="el" href="OffsetSegmentString_8h_source.html#l00162">geos::operation::buffer::OffsetSegmentString::closeRing()</a>.</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1geom_1_1Coordinate_afb42140c4c88c2d91d9ec231b6d08b21_icgraph.svg" width="616" height="71"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a2c21bb7a17fd64f70d6ee55990cb87b9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool geos::geom::Coordinate::equals2D </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Referenced by <a class="el" href="NodedSegmentString_8h_source.html#l00125">geos::noding::NodedSegmentString::addIntersectionNode()</a>, <a class="el" href="SegmentPointComparator_8h_source.html#l00053">geos::noding::SegmentPointComparator::compare()</a>, <a class="el" href="CoordinateList_8h_source.html#l00136">geos::geom::CoordinateList::insert()</a>, and <a class="el" href="geomgraph_2Node_8h_source.html#l00157">geos::geomgraph::Node::testInvariant()</a>.</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1geom_1_1Coordinate_a2c21bb7a17fd64f70d6ee55990cb87b9_icgraph.svg" width="448" height="259"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a93a622593e64bf9491e3e1c88a737f7d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool geos::geom::Coordinate::equals3D </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>3D comparison </p>
</div>
</div>
<a class="anchor" id="a45201240fe444687d56c1e3cb751d8df"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a>&amp; geos::geom::Coordinate::getNull </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Referenced by <a class="el" href="CentralEndpointIntersector_8h_source.html#l00140">geos::algorithm::CentralEndpointIntersector::findNearestPoint()</a>.</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1geom_1_1Coordinate_a45201240fe444687d56c1e3cb751d8df_icgraph.svg" width="498" height="55"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a2090c511f26246ceddf8ecc29889beec"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool geos::geom::Coordinate::isNull </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a97bb820b994c6a77cbe50db79f80a2c2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void geos::geom::Coordinate::setNull </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Referenced by <a class="el" href="MinimumBoundingCircle_8h_source.html#l00064">geos::algorithm::MinimumBoundingCircle::MinimumBoundingCircle()</a>.</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1geom_1_1Coordinate_a97bb820b994c6a77cbe50db79f80a2c2_icgraph.svg" width="482" height="71"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a6330f12ee3977d5a7a0fd729ea29a41f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string geos::geom::Coordinate::toString </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a string of the form <em>(x,y,z)</em> . </p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a6e9071d39c9202f485fd6fafece53eeb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> geos::geom::Coordinate::_nullCoord</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="Coordinate_8h_source.html#l00064">64</a> of file <a class="el" href="Coordinate_8h_source.html">Coordinate.h</a>.</p>
</div>
</div>
<a class="anchor" id="ad809a77e5715e490a7e5f95c8611737e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double geos::geom::Coordinate::x</td>
</tr>
</table>
</div><div class="memdoc">
<p>x-coordinate </p>
<p>Definition at line <a class="el" href="Coordinate_8h_source.html#l00080">80</a> of file <a class="el" href="Coordinate_8h_source.html">Coordinate.h</a>.</p>
<p>Referenced by <a class="el" href="CentralEndpointIntersector_8h_source.html#l00112">geos::algorithm::CentralEndpointIntersector::average()</a>, <a class="el" href="SegmentPointComparator_8h_source.html#l00053">geos::noding::SegmentPointComparator::compare()</a>, <a class="el" href="Envelope_8h_source.html#l00354">geos::geom::Envelope::contains()</a>, <a class="el" href="Vertex_8h_source.html#l00191">geos::triangulate::quadedge::Vertex::cross()</a>, <a class="el" href="Vertex_8h_source.html#l00139">geos::triangulate::quadedge::Vertex::crossProduct()</a>, <a class="el" href="HalfEdge_8h_source.html#l00172">geos::edgegraph::HalfEdge::directionX()</a>, <a class="el" href="Vertex_8h_source.html#l00151">geos::triangulate::quadedge::Vertex::dot()</a>, <a class="el" href="Vertex_8h_source.html#l00113">geos::triangulate::quadedge::Vertex::equals()</a>, <a class="el" href="PrecisionUtil_8h_source.html#l00227">geos::operation::overlayng::PrecisionUtil::InherentScaleFilter::filter_ro()</a>, <a class="el" href="KdNode_8h_source.html#l00045">geos::index::kdtree::KdNode::getX()</a>, <a class="el" href="Vertex_8h_source.html#l00083">geos::triangulate::quadedge::Vertex::getX()</a>, <a class="el" href="Vertex_8h_source.html#l00223">geos::triangulate::quadedge::Vertex::isCCW()</a>, <a class="el" href="Vertex_8h_source.html#l00184">geos::triangulate::quadedge::Vertex::magn()</a>, <a class="el" href="LineSegment_8h_source.html#l00365">geos::geom::LineSegment::HashCode::operator()()</a>, <a class="el" href="Vertex_8h_source.html#l00177">geos::triangulate::quadedge::Vertex::sub()</a>, <a class="el" href="Vertex_8h_source.html#l00170">geos::triangulate::quadedge::Vertex::sum()</a>, and <a class="el" href="Vertex_8h_source.html#l00163">geos::triangulate::quadedge::Vertex::times()</a>.</p>
</div>
</div>
<a class="anchor" id="acdeb58356624ebe25cbbf5b6021c3d9d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double geos::geom::Coordinate::y</td>
</tr>
</table>
</div><div class="memdoc">
<p>y-coordinate </p>
<p>Definition at line <a class="el" href="Coordinate_8h_source.html#l00083">83</a> of file <a class="el" href="Coordinate_8h_source.html">Coordinate.h</a>.</p>
<p>Referenced by <a class="el" href="CentralEndpointIntersector_8h_source.html#l00112">geos::algorithm::CentralEndpointIntersector::average()</a>, <a class="el" href="SegmentPointComparator_8h_source.html#l00053">geos::noding::SegmentPointComparator::compare()</a>, <a class="el" href="Envelope_8h_source.html#l00354">geos::geom::Envelope::contains()</a>, <a class="el" href="Vertex_8h_source.html#l00191">geos::triangulate::quadedge::Vertex::cross()</a>, <a class="el" href="Vertex_8h_source.html#l00139">geos::triangulate::quadedge::Vertex::crossProduct()</a>, <a class="el" href="HalfEdge_8h_source.html#l00179">geos::edgegraph::HalfEdge::directionY()</a>, <a class="el" href="Vertex_8h_source.html#l00151">geos::triangulate::quadedge::Vertex::dot()</a>, <a class="el" href="Vertex_8h_source.html#l00113">geos::triangulate::quadedge::Vertex::equals()</a>, <a class="el" href="PrecisionUtil_8h_source.html#l00227">geos::operation::overlayng::PrecisionUtil::InherentScaleFilter::filter_ro()</a>, <a class="el" href="KdNode_8h_source.html#l00046">geos::index::kdtree::KdNode::getY()</a>, <a class="el" href="Vertex_8h_source.html#l00089">geos::triangulate::quadedge::Vertex::getY()</a>, <a class="el" href="Vertex_8h_source.html#l00223">geos::triangulate::quadedge::Vertex::isCCW()</a>, <a class="el" href="Vertex_8h_source.html#l00184">geos::triangulate::quadedge::Vertex::magn()</a>, <a class="el" href="LineSegment_8h_source.html#l00365">geos::geom::LineSegment::HashCode::operator()()</a>, <a class="el" href="Vertex_8h_source.html#l00177">geos::triangulate::quadedge::Vertex::sub()</a>, <a class="el" href="Vertex_8h_source.html#l00170">geos::triangulate::quadedge::Vertex::sum()</a>, and <a class="el" href="Vertex_8h_source.html#l00163">geos::triangulate::quadedge::Vertex::times()</a>.</p>
</div>
</div>
<a class="anchor" id="af0c1b234c851ae467c371dea8861612f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double geos::geom::Coordinate::z</td>
</tr>
</table>
</div><div class="memdoc">
<p>z-coordinate </p>
<p>Definition at line <a class="el" href="Coordinate_8h_source.html#l00086">86</a> of file <a class="el" href="Coordinate_8h_source.html">Coordinate.h</a>.</p>
<p>Referenced by <a class="el" href="Vertex_8h_source.html#l00095">geos::triangulate::quadedge::Vertex::getZ()</a>, and <a class="el" href="Vertex_8h_source.html#l00101">geos::triangulate::quadedge::Vertex::setZ()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="Coordinate_8h_source.html">Coordinate.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>