GEOS  3.8.0dev
Area.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2018 Paul Ramsey <pramsey@cleverlephant.ca>
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Public Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  **********************************************************************
14  *
15  * Last port: algorithm/Area.java @ 2017-09-04
16  *
17  **********************************************************************/
18 
19 #ifndef GEOS_ALGORITHM_AREA_H
20 #define GEOS_ALGORITHM_AREA_H
21 
22 #include <geos/export.h>
23 #include <geos/geom/Coordinate.h>
24 #include <geos/geom/CoordinateSequence.h>
25 
26 namespace geos {
27 namespace algorithm { // geos::algorithm
28 
29 
30 class GEOS_DLL Area {
31 public:
32 
39  static double ofRing(const std::vector<geom::Coordinate>& ring);
40 
47  static double ofRing(const geom::CoordinateSequence* ring);
48 
58  static double ofRingSigned(const std::vector<geom::Coordinate>& ring);
59 
69  static double ofRingSigned(const geom::CoordinateSequence* ring);
70 
71 };
72 
73 
74 } // namespace geos::algorithm
75 } // namespace geos
76 
77 
78 #endif // GEOS_ALGORITHM_AREA_H
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25