82 lines
25 KiB
HTML
82 lines
25 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: Centroid.h Source File</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
|
||
|
 <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 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><a href="annotated.html"><span>Classes</span></a></li>
|
||
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div id="navrow2" class="tabs2">
|
||
|
<ul class="tablist">
|
||
|
<li><a href="files.html"><span>File List</span></a></li>
|
||
|
<li><a href="globals.html"><span>File Members</span></a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div id="nav-path" class="navpath">
|
||
|
<ul>
|
||
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0bc14b2fb119a11b6a0f32f4d350db61.html">geos</a></li><li class="navelem"><a class="el" href="dir_fba022f40ef995f34b1af53ee3c8dd03.html">algorithm</a></li> </ul>
|
||
|
</div>
|
||
|
</div><!-- top -->
|
||
|
<div class="header">
|
||
|
<div class="headertitle">
|
||
|
<div class="title">Centroid.h</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
<a href="Centroid_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/**********************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * GEOS - Geometry Engine Open Source</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * http://geos.osgeo.org</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Copyright (C) 2013 Sandro Santilli <strk@kbt.io></span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * This is free software; you can redistribute and/or modify it under</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * the terms of the GNU Lesser General Public Licence as published</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * by the Free Software Foundation.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * See the COPYING file for more information.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> **********************************************************************</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * Last port: algorithm/Centroid.java r728 (JTS-0.13+)</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> *</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> **********************************************************************/</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#ifndef GEOS_ALGORITHM_CENTROID_H</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#define GEOS_ALGORITHM_CENTROID_H</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="export_8h.html">geos/export.h</a>></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="Coordinate_8h.html">geos/geom/Coordinate.h</a>></span> <span class="comment">// for composition</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <memory></span> <span class="comment">// for std::unique_ptr</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">// Forward declarations</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">namespace </span><a class="code" href="namespac
|
||
|
<div class="ttc" id="classgeos_1_1algorithm_1_1Centroid_html_a16af303b7f76b2f732e09eb3cbb80152"><div class="ttname"><a href="classgeos_1_1algorithm_1_1Centroid.html#a16af303b7f76b2f732e09eb3cbb80152">geos::algorithm::Centroid::lineCentSum</a></div><div class="ttdeci">geom::Coordinate lineCentSum</div><div class="ttdef"><b>Definition:</b> <a href="Centroid_8h_source.html#l00103">Centroid.h:103</a></div></div>
|
||
|
<div class="ttc" id="classgeos_1_1geom_1_1Coordinate_html"><div class="ttname"><a href="classgeos_1_1geom_1_1Coordinate.html">geos::geom::Coordinate</a></div><div class="ttdoc">Coordinate is the lightweight class used to store coordinates. </div><div class="ttdef"><b>Definition:</b> <a href="Coordinate_8h_source.html#l00060">Coordinate.h:60</a></div></div>
|
||
|
<div class="ttc" id="export_8h_html"><div class="ttname"><a href="export_8h.html">export.h</a></div></div>
|
||
|
<div class="ttc" id="classgeos_1_1algorithm_1_1Centroid_html_ada1341dc956f040facb809ca89e73a74"><div class="ttname"><a href="classgeos_1_1algorithm_1_1Centroid.html#ada1341dc956f040facb809ca89e73a74">geos::algorithm::Centroid::ptCount</a></div><div class="ttdeci">int ptCount</div><div class="ttdef"><b>Definition:</b> <a href="Centroid_8h_source.html#l00107">Centroid.h:107</a></div></div>
|
||
|
<div class="ttc" id="classgeos_1_1algorithm_1_1Centroid_html_a4f98b633fdda1e829ab5f2b8316a7339"><div class="ttname"><a href="classgeos_1_1algorithm_1_1Centroid.html#a4f98b633fdda1e829ab5f2b8316a7339">geos::algorithm::Centroid::ptCentSum</a></div><div class="ttdeci">geom::Coordinate ptCentSum</div><div class="ttdef"><b>Definition:</b> <a href="Centroid_8h_source.html#l00104">Centroid.h:104</a></div></div>
|
||
|
<div class="ttc" id="classgeos_1_1algorithm_1_1Centroid_html_a288c5d7a0daf8e599b9f95fbcfc9fce5"><div class="ttname"><a href="classgeos_1_1algorithm_1_1Centroid.html#a288c5d7a0daf8e599b9f95fbcfc9fce5">geos::algorithm::Centroid::areaBasePt</a></div><div class="ttdeci">std::unique_ptr< geom::Coordinate > areaBasePt</div><div class="ttdef"><b>Definition:</b> <a href="Centroid_8h_source.html#l00100">Centroid.h:100</a></div></div>
|
||
|
<div class="ttc" id="classgeos_1_1geom_1_1Geometry_html"><div class="ttname"><a href="classgeos_1_1geom_1_1Geometry.html">geos::geom::Geometry</a></div><div class="ttdoc">Basic implementation of Geometry, constructed and destructed by GeometryFactory. </div><div class="ttdef"><b>Definition:</b> <a href="Geometry_8h_source.html#l00188">Geometry.h:188</a></div></div>
|
||
|
<div class="ttc" id="classgeos_1_1algorithm_1_1Centroid_html_a004060aaa21454f3dfc50cd859e78b16"><div class="ttname"><a href="classgeos_1_1algorithm_1_1Centroid.html#a004060aaa21454f3dfc50cd859e78b16">geos::algorithm::Centroid::Centroid</a></div><div class="ttdeci">Centroid(const geom::Geometry &geom)</div><div class="ttdoc">Creates a new instance for computing the centroid of a geometry. </div><div class="ttdef"><b>Definition:</b> <a href="Centroid_8h_source.html#l00079">Centroid.h:79</a></div></div>
|
||
|
<div class="ttc" id="classgeos_1_1geom_1_1Polygon_html"><div class="ttname"><a href="classgeos_1_1geom_1_1Polygon.html">geos::geom::Polygon</a></div><div class="ttdoc">Represents a linear polygon, which may include holes. </div><div class="ttdef"><b>Definition:</b> <a href="Polygon_8h_source.html#l00064">Polygon.h:64</a></div></div>
|
||
|
<div class="ttc" id="namespacegeos_html"><div class="ttname"><a href="namespacegeos.html">geos</a></div><div class="ttdoc">Basic namespace for all GEOS functionalities. </div><div class="ttdef"><b>Definition:</b> <a href="IndexedNestedRingTester_8h_source.html#l00026">IndexedNestedRingTester.h:26</a></div></div>
|
||
|
<div class="ttc" id="classgeos_1_1algorithm_1_1Centroid_html_a33d6ed4f752f5061eab08ffd94448c36"><div class="ttname"><a href="classgeos_1_1algorithm_1_1Centroid.html#a33d6ed4f752f5061eab08ffd94448c36">geos::algorithm::Centroid::totalLength</a></div><div class="ttdeci">double totalLength</div><div class="ttdef"><b>Definition:</b> <a href="Centroid_8h_source.html#l00106">Centroid.h:106</a></div></div>
|
||
|
<div class="ttc" id="classgeos_1_1algorithm_1_1Centroid_html_a2af51982d521a3775f3ca9c2b263eaea"><div class="ttname"><a href="classgeos_1_1algorithm_1_1Centroid.html#a2af51982d521a3775f3ca9c2b263eaea">geos::algorithm::Centroid::triangleCent3</a></div><div class="ttdeci">geom::Coordinate triangleCent3</div><div class="ttdef"><b>Definition:</b> <a href="Centroid_8h_source.html#l00101">Centroid.h:101</a></div></div>
|
||
|
<div class="ttc" id="classgeos_1_1geom_1_1CoordinateSequence_html"><div class="ttname"><a href="classgeos_1_1geom_1_1CoordinateSequence.html">geos::geom::CoordinateSequence</a></div><div class="ttdoc">The internal representation of a list of coordinates inside a Geometry. </div><div class="ttdef"><b>Definition:</b> <a href="CoordinateSequence_8h_source.html#l00058">CoordinateSequence.h:58</a></div></div>
|
||
|
<div class="ttc" id="Coordinate_8h_html"><div class="ttname"><a href="Coordinate_8h.html">Coordinate.h</a></div></div>
|
||
|
<div class="ttc" id="classgeos_1_1algorithm_1_1Centroid_html"><div class="ttname"><a href="classgeos_1_1algorithm_1_1Centroid.html">geos::algorithm::Centroid</a></div><div class="ttdoc">Computes the centroid of a Geometry of any dimension. </div><div class="ttdef"><b>Definition:</b> <a href="Centroid_8h_source.html#l00061">Centroid.h:61</a></div></div>
|
||
|
<div class="ttc" id="classgeos_1_1algorithm_1_1Centroid_html_a4e8ba6c730aed0b4fd88e97857046ebc"><div class="ttname"><a href="classgeos_1_1algorithm_1_1Centroid.html#a4e8ba6c730aed0b4fd88e97857046ebc">geos::algorithm::Centroid::areasum2</a></div><div class="ttdeci">double areasum2</div><div class="ttdef"><b>Definition:</b> <a href="Centroid_8h_source.html#l00105">Centroid.h:105</a></div></div>
|
||
|
<div class="ttc" id="classgeos_1_1algorithm_1_1Centroid_html_aef256a4f2184a44809db3d8ddb3f79de"><div class="ttname"><a href="classgeos_1_1algorithm_1_1Centroid.html#aef256a4f2184a44809db3d8ddb3f79de">geos::algorithm::Centroid::cg3</a></div><div class="ttdeci">geom::Coordinate cg3</div><div class="ttdef"><b>Definition:</b> <a href="Centroid_8h_source.html#l00102">Centroid.h:102</a></div></div>
|
||
|
</div><!-- fragment --></div><!-- contents -->
|
||
|
<!-- start footer part -->
|
||
|
<hr class="footer"/><address class="footer"><small>
|
||
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
||
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||
|
</a> 1.8.11
|
||
|
</small></address>
|
||
|
</body>
|
||
|
</html>
|