GEOS  3.13.1
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 #pragma once
20 
21 #include <geos/export.h>
22 #include <geos/geom/Coordinate.h>
23 #include <geos/geom/CoordinateSequence.h>
24 
25 namespace geos {
26 
27 namespace geom {
28 class Curve;
29 }
30 
31 namespace algorithm { // geos::algorithm
32 
33 
34 class GEOS_DLL Area {
35 public:
36 
37  static double ofClosedCurve(const geom::Curve& ring);
38 
45  static double ofRing(const std::vector<geom::Coordinate>& ring);
46 
53  static double ofRing(const geom::CoordinateSequence* ring);
54 
64  static double ofRingSigned(const std::vector<geom::Coordinate>& ring);
65 
75  static double ofRingSigned(const geom::CoordinateSequence* ring);
76 
77 };
78 
79 
80 } // namespace geos::algorithm
81 } // namespace geos
82 
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25